|
Hello All,
How can I change window title shown as tool tip text in the Taskbar using MFC.
With Thanks,
Karthik.
Software - Bundle of bugs covered with features.
|
|
|
|
|
What shows in the tooltip is simply the current caption of your window. So you can use SetWindowText() to change it. Note, though, that this is not always advisable, especially if writing in MFC - the MFC framework handles the window title.
|
|
|
|
|
Hi
I want to do bidirectional parallel port communication
will any plz help in this regard
uzmeed
the more u give the most u receive
|
|
|
|
|
|
|
Hello everyone,
I am wondering what is the function of .suo file? If I want to share source codes with other people, for example, using CVS or something similar, does this file mandatory to check-in? Do other people need this file to make a same build and setup the same working environment as mine?
thanks in advance,
George
|
|
|
|
|
No, you don't need to share this file. The only files that you need to save into CVS are the source files (.cpp and .h), the solution file (.sln) and the project files (.vcproj, one for each project in your solution). This is for VS2005, for VC6 the project and 'solution' files are different (.dsw and .dsp) and for VS2003, I don't know
|
|
|
|
|
Thanks Cédric,
What is the function of .suo file?
regards,
George
|
|
|
|
|
It contains information about the user settings. For example, which files are opened, which nodes in the 'explorer' window are expanded, the position of the breakpoints, ...
So, it is very user specific and doesn't need to be saved in CVS (and it shouldn't, because I think it is quite annoying to loose all this information each time).
|
|
|
|
|
The answer is great!
regards,
George
|
|
|
|
|
SUO means Solution User Options
|
|
|
|
|
Thanks toxcct!
regards,
George
|
|
|
|
|
Can you help me.
Help to be going to create Virtual IP using "iphlp" libarary raise just there is example code using c++
wait for your advice.
thank you.
ps : thanks is add "iphlp" library fils(iphlp.h , iphlp.dll ...)
|
|
|
|
|
I have created a Service exe thro VS6.0 Wizard and i am running a batch file from Run() method, in this batch file i am running java.exe.
It runs and functions correctly but if i kill java.exe thro task manager the service exe is still running.
How to make service exe also to exit when java.exe is no longer running ?
Any help would be appreciated...
Please help me....
|
|
|
|
|
That must be virus .
Attention!.
Check using nortorn anti 2007
|
|
|
|
|
|
if you are run your Java app. with CreateProcess(Ex) you can use WaitForSingleObject().
other variant is in scanning processes list for looking your java app.
|
|
|
|
|
yeah this is a very good idea...
Thanks a lot!!!
|
|
|
|
|
hi to all vc++ masters and happy teachers day
i am building an application in which there is button
and i want that when i clich on that button the CD:Drive open and when
i click on another button CD:Drive closed
please help me in this regard
and i have no idea about that
thanks
|
|
|
|
|
|
thanks sir
but actually i have no idea about this
so can u give me some other example for help
thanks
|
|
|
|
|
p_ wrote: so can u give me some other example for help
But the sample is already there in the link I provide.
The cd drive can be ejected and inserted using the DeviceIoControl() function. For eg if you want to eject the drive the below code will do
DeviceIoControl(
(HANDLE) hDevice, // handle to device
IOCTL_STORAGE_EJECT_MEDIA, // dwIoControlCode
NULL, // lpInBuffer
0, // nInBufferSize
NULL, // lpOutBuffer
0, // nOutBufferSize
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);
And for inserting change the flag to IOCTL_STORAGE_LOAD_MEDIA
|
|
|
|
|
sir i use this code on button but it does not work
DWORD bytesreturned;
DWORD IOCTL_STORAGE_EJECT_MEDIA;
void * hDevice;
DeviceIoControl(
hDevice, IOCTL_STORAGE_EJECT_MEDIA, NULL, 0, NULL, 0,
&bytesreturned, NULL );
thanks
|
|
|
|
|
p_ wrote: void * hDevice;
Now you are passing an invalid value as hDevice.
see the below code in the above link.
HANDLE OpenVolume(TCHAR cDriveLetter)<br />
{<br />
HANDLE hVolume;<br />
UINT uDriveType;<br />
TCHAR szVolumeName[8];<br />
TCHAR szRootName[5];<br />
DWORD dwAccessFlags;<br />
<br />
wsprintf(szRootName, szRootFormat, cDriveLetter);<br />
<br />
uDriveType = GetDriveType(szRootName);<br />
switch(uDriveType) {<br />
case DRIVE_REMOVABLE:<br />
dwAccessFlags = GENERIC_READ | GENERIC_WRITE;<br />
break;<br />
case DRIVE_CDROM:<br />
dwAccessFlags = GENERIC_READ;<br />
break;<br />
default:<br />
_tprintf(TEXT("Cannot eject. Drive type is incorrect.\n"));<br />
return INVALID_HANDLE_VALUE;<br />
}<br />
<br />
wsprintf(szVolumeName, szVolumeFormat, cDriveLetter);<br />
<br />
hVolume = CreateFile( szVolumeName,<br />
dwAccessFlags,<br />
FILE_SHARE_READ | FILE_SHARE_WRITE,<br />
NULL,<br />
OPEN_EXISTING,<br />
0,<br />
NULL );<br />
if (hVolume == INVALID_HANDLE_VALUE)<br />
ReportError(TEXT("CreateFile"));<br />
<br />
return hVolume;<br />
}
If you specify the drive letter of the drive, te above function will return a handle pass that handle to the DeviceIoControl() function. like
HANDLE hVolume = OpenVolume( "E:" );<br />
OpenVolume( hVolume, IOCTL_STORAGE_EJECT_MEDIA, NULL, 0, NULL, 0, &bytesreturned, NULL );
|
|
|
|
|
Try mciSendCommand() , like:
mciSendCommand(..., MCI_SET, MCI_SET_DOOR_OPEN, ...);
"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
|
|
|
|