Click here to Skip to main content
16,015,218 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDirectX - DrawIndexedPrimitive Pin
Marekh13-May-05 0:57
Marekh13-May-05 0:57 
GeneralDLL memory issue Pin
Andrew Hoole13-May-05 0:48
Andrew Hoole13-May-05 0:48 
GeneralRe: DLL memory issue Pin
lynchspawn13-May-05 1:54
lynchspawn13-May-05 1:54 
GeneralRe: DLL memory issue Pin
Andrew Hoole13-May-05 2:39
Andrew Hoole13-May-05 2:39 
GeneralRe: DLL memory issue Pin
Andrew Hoole13-May-05 2:54
Andrew Hoole13-May-05 2:54 
GeneralRe: DLL memory issue Pin
Blake Miller13-May-05 4:03
Blake Miller13-May-05 4:03 
GeneralRe: DLL memory issue Pin
Andrew Hoole13-May-05 5:04
Andrew Hoole13-May-05 5:04 
GeneralRe: DLL memory issue Pin
Blake Miller13-May-05 6:05
Blake Miller13-May-05 6:05 
Sorry, option 2 is the one I meant.

When you pass in the HWND of the 'parent' window to the function, you attach this passed HWND to an internal CWnd object, and that CWnd can be the 'parent' for your internal dialog class. After DoModal returns and you collected up all the data, you can detach the temporary CWnd from the passed HWND.

This way, the entire interface into the DLL to 'call' the dialog is a pointer to your data structure and an HWND. You only need to give the user a header file with the definition of your data structure and a function prototpye - the function exported from your DLL.

I do this all the time to get InstallShield or legacy Win32 applications to be able to call MFC dialogs.

Generalbyte to hex string Pin
richiemac12-May-05 23:50
richiemac12-May-05 23:50 
GeneralRe: byte to hex string Pin
toxcct12-May-05 23:54
toxcct12-May-05 23:54 
GeneralRe: byte to hex string Pin
richiemac13-May-05 0:13
richiemac13-May-05 0:13 
GeneralRe: byte to hex string Pin
toxcct13-May-05 0:51
toxcct13-May-05 0:51 
GeneralRe: byte to hex string Pin
richiemac13-May-05 1:37
richiemac13-May-05 1:37 
GeneralRe: byte to hex string Pin
David Crow13-May-05 2:15
David Crow13-May-05 2:15 
GeneralRe: byte to hex string Pin
toxcct13-May-05 2:20
toxcct13-May-05 2:20 
GeneralRe: byte to hex string Pin
itkid13-May-05 1:47
itkid13-May-05 1:47 
GeneralRe: byte to hex string Pin
David Crow13-May-05 2:19
David Crow13-May-05 2:19 
GeneralRe: byte to hex string Pin
richiemac13-May-05 3:18
richiemac13-May-05 3:18 
GeneralRe: byte to hex string Pin
David Crow13-May-05 3:26
David Crow13-May-05 3:26 
GeneralRe: byte to hex string Pin
richiemac13-May-05 4:02
richiemac13-May-05 4:02 
GeneralRe: byte to hex string Pin
toxcct13-May-05 4:14
toxcct13-May-05 4:14 
GeneralRe: byte to hex string Pin
David Crow13-May-05 4:21
David Crow13-May-05 4:21 
GeneralRe: byte to hex string Pin
richiemac13-May-05 4:26
richiemac13-May-05 4:26 
GeneralCMap lookup Pin
rgchezhian12-May-05 23:19
rgchezhian12-May-05 23:19 
GeneralRe: CMap lookup Pin
Jack Puppy13-May-05 0:49
Jack Puppy13-May-05 0:49 

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.