Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralYou convinced me guys Pin
6-Jun-01 21:35
suss6-Jun-01 21:35 
QuestionSDI to MDI ??? Pin
mr20036-Jun-01 2:21
mr20036-Jun-01 2:21 
GeneralSending Short Message Service Pin
Nagajothi6-Jun-01 1:40
Nagajothi6-Jun-01 1:40 
GeneralHTML to RTF Pin
6-Jun-01 0:22
suss6-Jun-01 0:22 
GeneralWizard bug? (DAO and Combo boxes.) Pin
Erik Essegard6-Jun-01 0:06
Erik Essegard6-Jun-01 0:06 
QuestionHow to print UNICODE string in Window 98? Pin
zhishao5-Jun-01 23:26
zhishao5-Jun-01 23:26 
AnswerRe: How to print UNICODE string in Window 98? Pin
Michael Dunn6-Jun-01 9:28
sitebuilderMichael Dunn6-Jun-01 9:28 
GeneralPopping up a message box from a library in C code used in a C++ program Pin
hearties5-Jun-01 21:48
hearties5-Jun-01 21:48 
I am writing a c++ .exe MFC program, using a library written in C code.

from the C code, I want a message box to pop up when an error has been detected. I tried using MessageBox function but it says too few actual parameters. The function prototype the MessageBox function is:

int MessageBox(
HWND hWnd, // handle to owner window
LPCTSTR lpText, // text in message box
LPCTSTR lpCaption, // message box title
UINT uType // message box style
);

does the problem lies with the hWnd handle? how can i get the handle to the window from the library in C code?

Pls help.

hearties
GeneralRe: Popping up a message box from a library in C code used in a C++ program Pin
Michael P Butler7-Jun-01 0:44
Michael P Butler7-Jun-01 0:44 
GeneralPointer to parent dialog. Pin
David Fleming5-Jun-01 21:41
David Fleming5-Jun-01 21:41 
GeneralRe: Pointer to parent dialog. Pin
Christian Graus5-Jun-01 22:12
protectorChristian Graus5-Jun-01 22:12 
GeneralRe: Pointer to parent dialog. Pin
David Fleming6-Jun-01 23:43
David Fleming6-Jun-01 23:43 
GeneralProblem running SMTP as a WIN32 service Pin
Pramodh5-Jun-01 21:24
Pramodh5-Jun-01 21:24 
GeneralAuto Fill Html Forms/Fields Pin
5-Jun-01 20:09
suss5-Jun-01 20:09 
GeneralDisconnected Recordset Pin
yamini5-Jun-01 20:02
yamini5-Jun-01 20:02 
GeneralRe: Disconnected Recordset Pin
Mangesh Sardesai5-Jun-01 21:40
Mangesh Sardesai5-Jun-01 21:40 
GeneralRe: Disconnected Recordset Pin
yamini5-Jun-01 22:17
yamini5-Jun-01 22:17 
GeneralRe: Disconnected Recordset Pin
Mangesh Sardesai5-Jun-01 23:32
Mangesh Sardesai5-Jun-01 23:32 
GeneralRe: Disconnected Recordset Pin
yamini6-Jun-01 19:10
yamini6-Jun-01 19:10 
GeneralMMC Snapin Pin
5-Jun-01 17:02
suss5-Jun-01 17:02 
GeneralRe: MMC Snapin Pin
Igor Sukhov6-Jun-01 7:50
Igor Sukhov6-Jun-01 7:50 
Generalquestion about the X button of the title bar Pin
5-Jun-01 14:53
suss5-Jun-01 14:53 
GeneralRe: question about the X button of the title bar Pin
Michael Dunn5-Jun-01 16:40
sitebuilderMichael Dunn5-Jun-01 16:40 
GeneralRe: Check WindowProc function! Pin
Masaaki Onishi5-Jun-01 17:46
Masaaki Onishi5-Jun-01 17:46 
QuestionIs there any good class for Outlook-bar control ?? Pin
5-Jun-01 14:35
suss5-Jun-01 14:35 

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.