Click here to Skip to main content
15,917,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Place a Different Caption in the AfxMessageBox(,) MFC messagebox Pin
Larry Mills Sr7-Aug-09 4:59
Larry Mills Sr7-Aug-09 4:59 
AnswerRe: How to Place a Different Caption in the AfxMessageBox(,) MFC messagebox Pin
Randor 7-Aug-09 6:46
professional Randor 7-Aug-09 6:46 
GeneralRe: How to Place a Different Caption in the AfxMessageBox(,) MFC messagebox Pin
Larry Mills Sr7-Aug-09 8:22
Larry Mills Sr7-Aug-09 8:22 
QuestionSendInput API is a mess indeed Pin
Madhu_Rani7-Aug-09 4:39
Madhu_Rani7-Aug-09 4:39 
AnswerRe: SendInput API is a mess indeed Pin
jeron17-Aug-09 4:44
jeron17-Aug-09 4:44 
GeneralRe: SendInput API is a mess indeed Pin
Madhu_Rani7-Aug-09 4:53
Madhu_Rani7-Aug-09 4:53 
QuestionCMapStringToOb works slow Pin
rkata7-Aug-09 3:29
rkata7-Aug-09 3:29 
QuestionHelp with custom message broadcasting(Inter process communication) Pin
callousfantom7-Aug-09 2:16
callousfantom7-Aug-09 2:16 
Hi I have a service written in Visual C++ 6 that needs to interact with an application written in vb.net. In my service I have used :

DWORD mymsg=RegisterWindowMessage("my_message")

to register a unique custom message.
I then use:

BOOL b=SendNotifyMessage(HWND_BROADCAST,mymsg,NULL,NULL)

to broadcast my message. However, I can't seem to be able to capture this message in the Windowproc function of my vb.net application.

Private Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Integer
Dim mymsg As Integer = RegisterWindowMessage("my_message")

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
if m.Msg=mymsg then
--do something--
end if
end sub


Please help! Sigh | :sigh:

P.S.:I need to show a pop up in my .net application when it receives this message. The message values have all registered properly in both applications and are returned to be the same when I print them. Also the SendNotitfyMessage in my service returns a non zero value(supposed to indicate success). What do I do?? What am I doing wrong?
AnswerRe: Help with custom message broadcasting(Inter process communication) Pin
«_Superman_»7-Aug-09 2:32
professional«_Superman_»7-Aug-09 2:32 
GeneralRe: Help with custom message broadcasting(Inter process communication) [modified] Pin
callousfantom9-Aug-09 20:56
callousfantom9-Aug-09 20:56 
GeneralRe: Help with custom message broadcasting(Inter process communication) Pin
callousfantom9-Aug-09 23:27
callousfantom9-Aug-09 23:27 
GeneralRe: Help with custom message broadcasting(Inter process communication) Pin
«_Superman_»10-Aug-09 3:59
professional«_Superman_»10-Aug-09 3:59 
GeneralRe: Help with custom message broadcasting(Inter process communication) Pin
callousfantom10-Aug-09 18:05
callousfantom10-Aug-09 18:05 
Questionhow to create a file shared among all users Pin
Joseph Marzbani7-Aug-09 2:03
Joseph Marzbani7-Aug-09 2:03 
AnswerRe: how to create a file shared among all users Pin
CPallini7-Aug-09 2:15
mveCPallini7-Aug-09 2:15 
GeneralRe: how to create a file shared among all users Pin
Joseph Marzbani7-Aug-09 2:24
Joseph Marzbani7-Aug-09 2:24 
GeneralRe: how to create a file shared among all users Pin
CPallini7-Aug-09 2:33
mveCPallini7-Aug-09 2:33 
GeneralRe: how to create a file shared among all users Pin
Omri1217-Aug-09 5:32
Omri1217-Aug-09 5:32 
QuestionRe: how to create a file shared among all users Pin
David Crow7-Aug-09 3:09
David Crow7-Aug-09 3:09 
QuestionReading Simplified Chinese String. [modified] Pin
gothic_coder6-Aug-09 21:23
gothic_coder6-Aug-09 21:23 
AnswerRe: Reading Simplified Chinese String. Pin
sashoalm6-Aug-09 22:04
sashoalm6-Aug-09 22:04 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder6-Aug-09 22:32
gothic_coder6-Aug-09 22:32 
GeneralRe: Reading Simplified Chinese String. Pin
sashoalm6-Aug-09 23:22
sashoalm6-Aug-09 23:22 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder6-Aug-09 23:48
gothic_coder6-Aug-09 23:48 
GeneralRe: Reading Simplified Chinese String. Pin
sashoalm7-Aug-09 0:14
sashoalm7-Aug-09 0:14 

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.