Click here to Skip to main content
15,914,391 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: worker and UI thread? Pin
Mark Salsbery11-Jul-07 10:13
Mark Salsbery11-Jul-07 10:13 
QuestionRun Video on web page Pin
Maynka10-Jul-07 19:38
Maynka10-Jul-07 19:38 
AnswerRe: Run Video on web page Pin
_AnsHUMAN_ 10-Jul-07 19:46
_AnsHUMAN_ 10-Jul-07 19:46 
AnswerRe: Run Video on web page Pin
eraccn10-Jul-07 22:22
eraccn10-Jul-07 22:22 
QuestionWindowProc() in debug and release mode Pin
rp_suman10-Jul-07 18:09
rp_suman10-Jul-07 18:09 
AnswerRe: WindowProc() in debug and release mode Pin
eraccn10-Jul-07 22:39
eraccn10-Jul-07 22:39 
QuestionAvoid use of the CRT? Pin
choadvach10-Jul-07 17:57
choadvach10-Jul-07 17:57 
AnswerRe: Avoid use of the CRT? Pin
Naveen10-Jul-07 18:51
Naveen10-Jul-07 18:51 
choadvach wrote:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )


To the entry point of an application, i dont think any parameters are passed in to it. That means the HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow are all junk values.

May you can try like this

int WINAPI WinMain()
{
HINSTANCE hInstance = GetModuleHandle(NULL);
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLG1), NULL, DialogProc);
return 0;
}

And let me know the result.



GeneralRe: Avoid use of the CRT? Pin
choadvach10-Jul-07 19:08
choadvach10-Jul-07 19:08 
GeneralRe: Avoid use of the CRT? Pin
Cvaji10-Jul-07 19:34
Cvaji10-Jul-07 19:34 
GeneralRe: Avoid use of the CRT? Pin
Naveen10-Jul-07 19:41
Naveen10-Jul-07 19:41 
QuestionEDIT BOX Pin
Maynka10-Jul-07 17:44
Maynka10-Jul-07 17:44 
AnswerRe: EDIT BOX Pin
Hamid_RT10-Jul-07 19:17
Hamid_RT10-Jul-07 19:17 
QuestionShellExecute Closing Application Pin
Moonis Ahmed10-Jul-07 17:03
Moonis Ahmed10-Jul-07 17:03 
AnswerRe: ShellExecute Closing Application Pin
Hamid_RT10-Jul-07 19:18
Hamid_RT10-Jul-07 19:18 
QuestionCompile- and Linking Time Tips Pin
InOut.NET10-Jul-07 13:37
InOut.NET10-Jul-07 13:37 
AnswerRe: Compile- and Linking Time Tips Pin
DevMentor.org10-Jul-07 14:44
DevMentor.org10-Jul-07 14:44 
AnswerRe: Compile- and Linking Time Tips Pin
Rick York10-Jul-07 14:54
mveRick York10-Jul-07 14:54 
GeneralRe: Compile- and Linking Time Tips Pin
InOut.NET10-Jul-07 21:56
InOut.NET10-Jul-07 21:56 
AnswerRe: Compile- and Linking Time Tips Pin
Mark Salsbery10-Jul-07 15:05
Mark Salsbery10-Jul-07 15:05 
GeneralRe: Compile- and Linking Time Tips Pin
InOut.NET10-Jul-07 21:54
InOut.NET10-Jul-07 21:54 
AnswerRe: Compile- and Linking Time Tips Pin
Stephen Hewitt10-Jul-07 15:11
Stephen Hewitt10-Jul-07 15:11 
GeneralRe: Compile- and Linking Time Tips Pin
InOut.NET10-Jul-07 22:01
InOut.NET10-Jul-07 22:01 
Questionistream problem - not reading in line of text... Pin
moonraker92810-Jul-07 13:12
moonraker92810-Jul-07 13:12 
AnswerRe: istream problem - not reading in line of text... Pin
Mark Salsbery10-Jul-07 14:07
Mark Salsbery10-Jul-07 14:07 

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.