-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Simple task: Send a windows message with dynamically allocated data, e.g. an arbitrary length string. How would you manage the responsibility to free this data?
The receiver(s) of the windows message could be responsible to free this data. But: How can you guarantee that all messages will actually…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Probably just a gross oversight of some sort, but I'm not receiving any WM_SIZE messages in the message loop. However, I do receive them in the WndProc. I thought the windows loop gave messages out to WndProc?
LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
{
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
How do I go about sending a Windows Message to a form in my application that is not the MainForm? Using the code below gives me an Access Violation.
procedure TMainForm.SendMessageToAnotherForm;
begin
SendMessage(MyForm.Handle,WM_MY_MESSAGE,0,0);
end;
MyForm has already been created and is the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I created an application to receive a broadcasted windows message which works fine. When I turn it into a service, install it, and start the service, the service doesn't receive the message.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am currently using WM_DEVICECHANGE to be notified when new USB drives are connected to the computer. This works great for devices like thumb-drives where as soon as the device arrives it is ready to have files read from it. For devices like SD card readers it does not because the message is sent…
>>> More