Click here to Skip to main content
15,905,420 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
AnswerRe: receiving windows messages Pin
Ward20-Dec-05 19:51
Ward20-Dec-05 19:51 
QuestionRe: receiving windows messages Pin
David Crow20-Dec-05 10:16
David Crow20-Dec-05 10:16 
QuestionCSliderCtrl - dotted focus rect Pin
AJ12320-Dec-05 7:32
AJ12320-Dec-05 7:32 
AnswerRe: CSliderCtrl - dotted focus rect Pin
0verflow14-Oct-12 20:21
0verflow14-Oct-12 20:21 
QuestionHome-grown tooltip window Pin
#realJSOP20-Dec-05 7:14
professional#realJSOP20-Dec-05 7:14 
AnswerRe: Home-grown tooltip window Pin
PJ Arends20-Dec-05 7:36
professionalPJ Arends20-Dec-05 7:36 
QuestionGetSysColor Weirdness Pin
#realJSOP20-Dec-05 6:59
professional#realJSOP20-Dec-05 6:59 
AnswerRe: GetSysColor Weirdness Pin
Jack Puppy20-Dec-05 7:20
Jack Puppy20-Dec-05 7:20 
GeneralRe: GetSysColor Weirdness Pin
#realJSOP20-Dec-05 7:58
professional#realJSOP20-Dec-05 7:58 
GeneralRe: GetSysColor Weirdness Pin
PJ Arends20-Dec-05 8:15
professionalPJ Arends20-Dec-05 8:15 
GeneralRe: GetSysColor Weirdness Pin
#realJSOP20-Dec-05 10:37
professional#realJSOP20-Dec-05 10:37 
QuestionCTreeCtrl Pin
Ivan Cachicatari20-Dec-05 6:39
Ivan Cachicatari20-Dec-05 6:39 
AnswerRe: CTreeCtrl Pin
RChin20-Dec-05 9:54
RChin20-Dec-05 9:54 
AnswerRe: CTreeCtrl Pin
Jack Puppy20-Dec-05 10:46
Jack Puppy20-Dec-05 10:46 
GeneralRe: CTreeCtrl Pin
Ivan Cachicatari26-Dec-05 8:26
Ivan Cachicatari26-Dec-05 8:26 
Questionto find and close empty word document out of many instances of word document Pin
anku12320-Dec-05 6:23
anku12320-Dec-05 6:23 
QuestionFunction to find out what files there are in a folder? Pin
KevinSheedy20-Dec-05 5:11
KevinSheedy20-Dec-05 5:11 

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.