Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Classes and Multithreading Pin
rrrado8-Feb-06 3:27
rrrado8-Feb-06 3:27 
GeneralRe: Classes and Multithreading Pin
Roger Stoltz8-Feb-06 4:01
Roger Stoltz8-Feb-06 4:01 
GeneralRe: Classes and Multithreading Pin
masnu8-Feb-06 6:31
masnu8-Feb-06 6:31 
GeneralRe: Classes and Multithreading Pin
masnu8-Feb-06 7:46
masnu8-Feb-06 7:46 
GeneralRe: Classes and Multithreading Pin
Anilkumar K V8-Feb-06 18:41
Anilkumar K V8-Feb-06 18:41 
GeneralRe: Classes and Multithreading Pin
masnu9-Feb-06 9:58
masnu9-Feb-06 9:58 
GeneralRe: Classes and Multithreading Pin
masnu8-Feb-06 6:29
masnu8-Feb-06 6:29 
QuestionCreateDialogParam failing! Pin
indra208-Feb-06 3:08
indra208-Feb-06 3:08 
The scenario is this:

In a 16 bit application A.app I am calling a 32 bit dll B.dll with a method exposed "DisplayDialog(HWND hWnd)".
DisplayDialog is called through the following sequence:
hDD = LoadLibraryEx32W(B.dll);
hDisplayDialog = (DISPLAYPPROC)GetProcAddress32W(hDD, "DisplayDialog");
CallProcEx32W(1, 1, hDisplayDialog, hWnd);

The resource for the dialog which I want to diaplay is in a 2nd 32 bit dll
C.dll. I am loading C.dll in B.dll using
hInstance = LoadLibrary(C.dll).
Then to display the dialog I am using this code in B.dll:
hDlg = CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_SOME_DIALOG), hWnd, (DLGPROC)SomeDlgProc, NULL);
ShowWindow(hDlg , SW_SHOWNORMAL);
SomeDlgProc is defined in B.dll.
hDlg is comming out as NULL.
GetLastError following the function call is returning 0.
Please advice what is going wrong.

Regards,





The scenario is this:

In a 16 bit application A.app I am calling a 32 bit dll B.dll with a method exposed "DisplayDialog(HWND hWnd)".
DisplayDialog is called through the following sequence:
hDD = LoadLibraryEx32W(B.dll);
hDisplayDialog = (DISPLAYPPROC)GetProcAddress32W(hDD, "DisplayDialog");
CallProcEx32W(1, 1, hDisplayDialog, hWnd);

The resource for the dialog which I want to diaplay is in a 2nd 32 bit dll
C.dll. I am loading C.dll in B.dll using
hInstance = LoadLibrary(C.dll).
Then to display the dialog I am using this code in B.dll:
hDlg = CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_SOME_DIALOG), hWnd, (DLGPROC)SomeDlgProc, NULL);
ShowWindow(hDlg , SW_SHOWNORMAL);
SomeDlgProc is defined in B.dll.
hDlg is comming out as NULL.
GetLastError following the function call is returning 0.
Please advice what is going wrong.

Regards,




QuestionTool to assist with delivery problems Pin
JohnnyBoyWonder8-Feb-06 3:03
JohnnyBoyWonder8-Feb-06 3:03 
AnswerRe: Tool to assist with delivery problems Pin
Blake Miller8-Feb-06 4:58
Blake Miller8-Feb-06 4:58 
GeneralRe: Tool to assist with delivery problems Pin
JohnnyBoyWonder13-Feb-06 1:08
JohnnyBoyWonder13-Feb-06 1:08 
GeneralXP -> WIN2000 pain. Pin
JohnnyBoyWonder13-Feb-06 5:42
JohnnyBoyWonder13-Feb-06 5:42 
QuestionWhat is the easiest way to do a timer ? Pin
BeakX8-Feb-06 2:36
BeakX8-Feb-06 2:36 
AnswerRe: What is the easiest way to do a timer ? Pin
Rage8-Feb-06 2:44
professionalRage8-Feb-06 2:44 
GeneralRe: What is the easiest way to do a timer ? Pin
BeakX8-Feb-06 2:47
BeakX8-Feb-06 2:47 
GeneralRe: What is the easiest way to do a timer ? Pin
Maximilien8-Feb-06 3:25
Maximilien8-Feb-06 3:25 
GeneralRe: What is the easiest way to do a timer ? Pin
Mike Winter8-Feb-06 3:51
Mike Winter8-Feb-06 3:51 
AnswerRe: What is the easiest way to do a timer ? Pin
Requiem Sollar8-Feb-06 8:52
Requiem Sollar8-Feb-06 8:52 
QuestionENTER on Button Pin
RadioOpa8-Feb-06 2:31
RadioOpa8-Feb-06 2:31 
AnswerRe: ENTER on Button Pin
Roger Stoltz8-Feb-06 3:03
Roger Stoltz8-Feb-06 3:03 
GeneralRe: ENTER on Button Pin
RadioOpa8-Feb-06 3:33
RadioOpa8-Feb-06 3:33 
QuestionBinary File Question Pin
mcb368-Feb-06 2:13
mcb368-Feb-06 2:13 
AnswerRe: Binary File Question Pin
Cedric Moonen8-Feb-06 2:23
Cedric Moonen8-Feb-06 2:23 
GeneralRe: Binary File Question Pin
mcb368-Feb-06 2:34
mcb368-Feb-06 2:34 
GeneralRe: Binary File Question Pin
Cedric Moonen8-Feb-06 2:43
Cedric Moonen8-Feb-06 2:43 

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.