Click here to Skip to main content
15,921,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionconverting series of Bytes to DWORD Pin
vikas amin20-Dec-05 19:35
vikas amin20-Dec-05 19:35 
AnswerRe: converting series of Bytes to DWORD Pin
Bob Stanneveld20-Dec-05 20:45
Bob Stanneveld20-Dec-05 20:45 
GeneralRe: converting series of Bytes to DWORD Pin
vikas amin20-Dec-05 21:49
vikas amin20-Dec-05 21:49 
GeneralRe: converting series of Bytes to DWORD Pin
Bob Stanneveld20-Dec-05 23:11
Bob Stanneveld20-Dec-05 23:11 
GeneralRe: converting series of Bytes to DWORD Pin
vikas amin21-Dec-05 2:15
vikas amin21-Dec-05 2:15 
GeneralRe: converting series of Bytes to DWORD Pin
Bob Stanneveld21-Dec-05 3:14
Bob Stanneveld21-Dec-05 3:14 
AnswerRe: converting series of Bytes to DWORD Pin
kakan20-Dec-05 22:14
professionalkakan20-Dec-05 22:14 
GeneralRe: converting series of Bytes to DWORD Pin
vikas amin21-Dec-05 0:06
vikas amin21-Dec-05 0:06 
GeneralRe: converting series of Bytes to DWORD Pin
kakan21-Dec-05 1:17
professionalkakan21-Dec-05 1:17 
GeneralRe: converting series of Bytes to DWORD Pin
vikas amin21-Dec-05 2:17
vikas amin21-Dec-05 2:17 
GeneralRe: converting series of Bytes to DWORD Pin
kakan21-Dec-05 2:29
professionalkakan21-Dec-05 2:29 
QuestionHelp without ATL or MFC Pin
neliocc20-Dec-05 18:22
neliocc20-Dec-05 18:22 
AnswerRe: Help without ATL or MFC Pin
vikas amin20-Dec-05 19:46
vikas amin20-Dec-05 19:46 
AnswerRe: Help without ATL or MFC Pin
ThatsAlok20-Dec-05 21:22
ThatsAlok20-Dec-05 21:22 
AnswerRe: Help without ATL or MFC Pin
TheGreatAndPowerfulOz21-Dec-05 9:46
TheGreatAndPowerfulOz21-Dec-05 9:46 
Questiondisassembly Pin
devvvy20-Dec-05 17:23
devvvy20-Dec-05 17:23 
AnswerRe: disassembly Pin
The NULL Developer21-Dec-05 0:20
professionalThe NULL Developer21-Dec-05 0:20 
GeneralRe: disassembly Pin
devvvy21-Dec-05 16:02
devvvy21-Dec-05 16:02 
GeneralRe: disassembly Pin
devvvy21-Dec-05 16:27
devvvy21-Dec-05 16:27 
QuestionHooking Explorer.exe Pin
ragavan20-Dec-05 17:19
ragavan20-Dec-05 17:19 
QuestionCListCtrl display long text problem. Pin
Zyraph20-Dec-05 16:29
Zyraph20-Dec-05 16:29 
QuestionModeless Property Sheet (Win32) Pin
VeRtRX20-Dec-05 8:22
VeRtRX20-Dec-05 8:22 
Questionreceiving windows messages Pin
Roy K20-Dec-05 8:18
Roy K20-Dec-05 8:18 
GeneralRe: receiving windows messages Pin
Ward20-Dec-05 9:44
Ward20-Dec-05 9:44 
GeneralRe: receiving windows messages Pin
Roy K20-Dec-05 13:10
Roy K20-Dec-05 13:10 
>>Can you give more information about de application that 'sends' those window messages?

this is where things get complicated, the other program is window based program written in c#. The c++ program can send a message to the c# program just fine, but i'm having trouble reversing this.

>>Give the piece of code that sends the message. Make sure both the sender and the receiver have
>>knowledge of the windowmessage (use RegisterWindowMessage for this).

this is the code from the c# program that sends the message...
[DllImport("user32.dll", SetLastError=true, EntryPoint="SendMessage", CharSet=CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg,IntPtr wParam,IntPtr lParam);
SendMessage( camController_Handle, REPLY_PICTURE_READY, IntPtr.Zero, IntPtr.Zero);

the messages being sent between the programs are registered in the following manner...
UINT REPLY_PICTURE_READY = RegisterWindowMessage("REPLY_PICTURE_READY");
^this is done in the c# program too, slighty modified, but it compiles fine.

>>Also, I have no experience with capturing window messages in a console program. Is this really >>possible? Maybe this is why you can't compile the piece of code.

This could be a very real possiblity, however I could not dig up anything to prove it. The console program can send the messages just fine, so why can't it receive them? Anyone know anything about this? Or specifically how a console program can receive custom messages?

mildly frustrated

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.