Oh by the way, you will need to recompile the library for later versions of Visual Studio than VC6. Otherwise it'll report nothing. Since it was written in VC6, it contains a great deal of code which is not standards compliant. If you'll mail me, I will reply with source code that compiles and works well with Visual Studio 2003.
No humans were probed in the making of this episode
// Handle device arrival
// treat lParam a pointer to a standard structure DEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR)(m->LParam);
// check if an volume device arrival
if (lpdb->dbch_devicetype == DBT_DEVTYP_VOLUME)
I received error:
error C2440: 'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Is it possible to do message maps calls like post and peakmessage from a non-GUI (no window) application? I have an MFC dll with callbacks that i presume can be invoked using message map calls. But as i understand these calls requires a window handle and as there is no window/UI (its a service) I am not sure how i can invoke these callback from the dll.
Are there any related sample code or articles that i can look at?
PS: I am not very experienced with mfc programming so please bare with my silly questions.
When I send a CString to my multiline read only edit control it displays boxes for all of the newline characters. Is there a way to make it automatically move the text to the next line when it encounters a '\n' instead of displaying the newline character?
I am showing tooltip by sending
message to Tooltip control.
When I want to close this, I am sending
SendMessage(hwndch,TTM_TRACKACTIVATE, (WPARAM)(BOOL)FALSE, (LPARAM)
But How to close this tooltip without sending 2 nd message?. Is there any option which create tooltip with Close Icon(x) in it so that I can close using that icon.
Is there any other options.
in this way i am able to print serveraddress,and sessionid.But if i want to print all the string comming from server how to do that.What should i do,Should copy the whole string and then print.
cstrDisplayData.Format(_T("==>Connected to server[%s],[%s]"),serveradd,sessionid);<br />
yes i am able to print serveradd,sessionid...But know i want the no of fields to print
how to do that....
by passing a sessionid i have to get all these fields from server and then print....but How???
Last Visit: 31-Dec-99 18:00 Last Update: 1-Aug-21 21:15