|
Please ignore this, as my browser had some problem.
thanks
Mahesh
|
|
|
|
|
wat functionality is needed to convert midi to wave using MFC ???
|
|
|
|
|
See this[^] thread does helpful?
|
|
|
|
|
mozilla is not supporting --
document.form1.text1.focus.
&
text1.value
where text1 ia an input type..can any one tell me the alternate plzzz
hiiiiii
|
|
|
|
|
Does this a c++ question?
|
|
|
|
|
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions:
BOOL SetClipboardText(LPCTSTR pszText)<br />
int GetClipboardText(LPTSTR pszBuf, int nLength)
but I can I get the selected text of a textbox or a selected object?
Thanks
|
|
|
|
|
|
If you are using MFC, use CEdit::Copy(), CEdit::Paste().
But I'm still wondering where have you found SetClipboardText(). There is no such windows API
rrrado
|
|
|
|
|
CDRAIN wrote: I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App
For edit controls, this is "on" by default.
CDRAIN wrote: ...can I get the selected text of a textbox or a selected object?
Are you looking for GetWindowText() ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi CDRAIN,
try GetClipboardData and SetClipboardData functions. Maybe this is what you're looking for.
cheers!
|
|
|
|
|
I want to develop a video player of my own with my own specifications but i am not sure from where should I start for, I am totally new to window programming. Can you please direct me that what can I use for this purpose?
|
|
|
|
|
First, look at an open source player such as Videolan[^].
It's a very large task unless you simply want to embed WMP.
Elaine
|
|
|
|
|
Refer "DirectShow Framework". And It was deprecated in Vista where Media Foundation, it replaces.
-- modified at 5:41 Friday 22nd June, 2007
|
|
|
|
|
|
I am creating installer for my vc++ application by compiling Windows Installer(Visual Studio Deployment) project together with my vc++ application.
When the install finish there is an icon for exe in Start Button --> All Programs menu --> Application Name. I would like to add uninstall facility also to the same place. How to do this.
Any help would be greatly appreciable.
Best Regards,
Suman
|
|
|
|
|
Hi,
You need to keep you application specific data in the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Observe the keys already there in this registry path.
Hope that helps.
Kiran.
|
|
|
|
|
Hello everybody,
i need to add a new functionnality to my application.
To drag and drop a row of a grid into a opened/existing Word document.
Before i start, is it possible to do that in MFC?
If i start the drag with the mouse and i leave the mouse-button ( the drop ) on another
application, is it possible to determine in my application on which application i made the "drop" ?
Big thanks for your help
|
|
|
|
|
baerten wrote: Before i start, is it possible to do that in MFC?
Yes. MFC integrates fine with Drag'n'Drop and the Clipboard.
baerten wrote: If i start the drag with the mouse and i leave the mouse-button ( the drop ) on another
application, is it possible to determine in my application on which application i made the "drop" ?
Not usually and if you didn't write the other app it's probably not a good idea to try anyway. If you want specific content for Word then you'll have to supply that data to the Clipboard in a Word specific format.
I'm afraid I don't have quick access to any examples/samples at this moment but it's the Clipboard that mediates this kind of task so you need the works on Clipboard formats and Clipboard programming. That's how the target application actually get data from you and it will select which of the formats you make available it wants to take from the Clipboard. Office apps will take their own private formats ahead of shared/generic ones. I don't know about Word but when I last looked at this Excel supported 21 Clipboard formats
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
many thanks for your reply.
So the steps are :
* At the start of drag and drop create the text into a Word-Format
* Determine in which application the "drop" occurs (propably by finding the Process-ID )
* Store the formatted text into the clipboard
* Perform an automatic Paste into the Word-Document
In some weeks i'll start with this project, till then i'll collect more informations before
i start it...
That's a hard stuff for a MFC-Beginner i think
|
|
|
|
|
Not quite I think. It's more like :-
At the start of drag and drop create the text into a Word-Format and optionally a generic format.
Link both texts to the clipboard as alternative formats for a dynamic item
Perform an automatic Paste into the Word-Document which will grab the Word-Format text from the clipboard by default
If it's not Word it'll grab the generic text 'cause it can't handle the Word-Format text but only if you supply it in a generic format, otherwise it will see no content, paste will be disabled.
That way you don't have to identify the target app at all which is a kind of iffy thing to do.
It does sound quite ambitious for an MFC beginner. It freaked me out the first time I debugged some Clipboard code and of course with the Clipboard locked Cut/Copy and Paste stops working in the Debugger Made me realize how much I use it.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Perform an automatic Paste into the Word-Document
That way you don't have to identify the target app at all
How can i perform the automatic paste into word from out my own application without knowing where the paste should be performed?
|
|
|
|
|
Because it's automatic. Word is already a drop target. Microsoft implemented it for you but what they do when you drop something on Word is going to depend on what type of data it's linked to, file, Word format text, plain text, image etc.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Oha! Nice
OK, i'll try it in some weeks.
Big thanks for your explains
|
|
|
|
|
I have an data-acquisition application in which data-logging is
performed constantly and data is stored in a CF Card, which acts as the primary data-storage device for the system.
The Windows CE image that i have loaded has support for automatic
detection of USB mass storage devices.
The User can retrive the data from the system (CF Card) thru USB Drive.
There is no screen or console , it is an industrial Controller.
The data acquistion goes on constantly , and the applicaiton
periodically polls the USB slot to see if the user has inserted any
USB Drive in it.
For this, i use the standard CreateFile() function in order to detect
if the user has inserted USB Pen Drive into USB slot or not. I get the
handle to the device using CreateFile(), is user has inserted it.
If he has, then all reqd. data from the CF Card is copied to the USB drive.
if ((hFile=CreateFile(_TEXT"DSK2:",GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL))!=INVALID_HANDLE_VALUE)
{Do further processing}
NOTE: Here DSK2: is the disk number of the Pen Drive
Whenever the user insertes the USB Drive, the OS detects this, and
CreateFile function therefore returns successfully with the USB dive
handle. Thus, USB Drive is detected.
Now, the problem is that sometimes, although the Pen Drive is
inserted, it is not detected by the OS, whearas at other times it is.
That is, in the Windows Explorer, where I can see the CF Card mounted
as "Hard Disk" and USB Pen Drive as "Hard Disk2", sometimes, this
"Hard Disk2" is not seen. It leads me to the conclusion that the USB
Dive is not mounted by the Windows Device Manager. Even if i remove the Pen Drive and re-insert it, it will not be detected hence-forth , once it is not detected. I don't know how to make the OS detect it then , the only way i know is rebooting the system. (Which is definetely not the solution!!)
What can possibly be causing this irregular behavior?
At such times, I cannot obtain a handle to the device using
CreateFile. Is there any alternate way to obtain access to the USB
device, rather than relying on Windows OS, and the Device Manager??
I have also completely checked the hardware, to verify that there is
no problem on hardware side, no loose connections etc. Another
important point is that the LED on the USB Pen Drive always glows when
I insert the Pen Drive, even when it is not detected by Windows CE.
Regrds,
CR
|
|
|
|
|