Click here to Skip to main content
15,924,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRandom "session" string Pin
shultas9-Feb-04 16:21
shultas9-Feb-04 16:21 
GeneralRe: Random "session" string Pin
Christian Graus9-Feb-04 17:36
protectorChristian Graus9-Feb-04 17:36 
GeneralRe: Random "session" string Pin
shultas9-Feb-04 19:04
shultas9-Feb-04 19:04 
GeneralRe: Random "session" string Pin
David Crow10-Feb-04 3:24
David Crow10-Feb-04 3:24 
GeneralGlobally hook WM_KILLFOCUS Pin
Anonymous9-Feb-04 14:03
Anonymous9-Feb-04 14:03 
GeneralIt isn't a simple problem..!! Pin
Amr Abdel-Mohsen9-Feb-04 13:05
Amr Abdel-Mohsen9-Feb-04 13:05 
GeneralRe: It isn't a simple problem..!! Pin
David Crow10-Feb-04 3:31
David Crow10-Feb-04 3:31 
GeneralCustom Control in dialog which is created in DLL Pin
sjcomp9-Feb-04 11:56
sjcomp9-Feb-04 11:56 
Hello, there.

I have a dll, which is loaded by the host application, and in the exported function I show a dialog. I had no problem until I put a custom control in the dialog. If custom control is present in the dialog m_dlg.Create(IDD_DIALOG1) returns 0. (does not properly create a dialog).

I traced the problem down to the
hWnd=::CreateDialogIndirect(hInst,lpDialogTemplate,pParentWnd->GetSafeHwnd(),AfxDlgProc);

All parameters has some values (not NULLs), but, if a custom control is present in the dialog, returned value is 0, which makes hWnd to be NULL. If custom control is deleted everything is just fine!
Immidiatly after that there is ::GetLastError(), but it also returns 0 (operation is successful) even though hWnd is NULL.

I do not associate custom control with any class. I just drop it down on the dialog (it does not work with an associated custom control either).

Any ideas? Thanks in advance.

Regards,
Alexander.
GeneralMFC question Pin
Anonymous9-Feb-04 11:26
Anonymous9-Feb-04 11:26 
GeneralRe: MFC question Pin
sps-itsec469-Feb-04 11:57
sps-itsec469-Feb-04 11:57 
GeneralRe: MFC question Pin
Anonymous9-Feb-04 12:11
Anonymous9-Feb-04 12:11 
GeneralRe: MFC question Pin
toxcct10-Feb-04 4:01
toxcct10-Feb-04 4:01 
GeneralDatatype conversion Pin
krugger9-Feb-04 9:44
krugger9-Feb-04 9:44 
GeneralRe: Datatype conversion Pin
2249179-Feb-04 18:11
2249179-Feb-04 18:11 
GeneralRe: Datatype conversion Pin
Steve S9-Feb-04 22:24
Steve S9-Feb-04 22:24 
GeneralWebBrowser in document Pin
krugger9-Feb-04 9:38
krugger9-Feb-04 9:38 
GeneralRe: WebBrowser in document Pin
Ger Hayden10-Feb-04 9:51
Ger Hayden10-Feb-04 9:51 
Generalchecking the type of an input in C++ Pin
Anonymous9-Feb-04 8:34
Anonymous9-Feb-04 8:34 
GeneralRe: checking the type of an input in C++ Pin
Maximilien9-Feb-04 8:52
Maximilien9-Feb-04 8:52 
GeneralRe: checking the type of an input in C++ Pin
David Crow9-Feb-04 8:55
David Crow9-Feb-04 8:55 
GeneralRe: checking the type of an input in C++ Pin
Maximilien9-Feb-04 9:01
Maximilien9-Feb-04 9:01 
GeneralRe: checking the type of an input in C++ Pin
David Crow9-Feb-04 8:53
David Crow9-Feb-04 8:53 
GeneralRe: checking the type of an input in C++ Pin
Garth J Lancaster9-Feb-04 10:35
professionalGarth J Lancaster9-Feb-04 10:35 
GeneralRe: checking the type of an input in C++ Pin
antlers9-Feb-04 11:28
antlers9-Feb-04 11:28 
GeneralRe: checking the type of an input in C++ Pin
John Carson10-Feb-04 4:06
John Carson10-Feb-04 4:06 

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.