Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to add a dual interface to a non-ATL, non-MFC Application Pin
Nemanja Trifunovic16-Nov-09 7:05
Nemanja Trifunovic16-Nov-09 7:05 
GeneralRe: How to add a dual interface to a non-ATL, non-MFC Application Pin
CPallini16-Nov-09 8:36
mveCPallini16-Nov-09 8:36 
GeneralRe: How to add a dual interface to a non-ATL, non-MFC Application Pin
jmen@moc16-Nov-09 8:38
jmen@moc16-Nov-09 8:38 
GeneralRe: How to add a dual interface to a non-ATL, non-MFC Application Pin
CPallini16-Nov-09 9:38
mveCPallini16-Nov-09 9:38 
GeneralRe: Off topic Pin
Richard MacCutchan16-Nov-09 7:34
mveRichard MacCutchan16-Nov-09 7:34 
GeneralRe: Off topic Pin
CPallini16-Nov-09 9:22
mveCPallini16-Nov-09 9:22 
QuestionWin32 DLL Resource not found Error Pin
Nitheesh George16-Nov-09 1:56
Nitheesh George16-Nov-09 1:56 
AnswerRe: Win32 DLL Resource not found Error Pin
Iain Clarke, Warrior Programmer16-Nov-09 2:13
Iain Clarke, Warrior Programmer16-Nov-09 2:13 
For pure Win32...

The DialogBox function has a first parameter of
hInstance
, which is the HINSTANCE of the DLL where you get the resource from.

If you loaded the DLL using LoadLibrary, then you already have that parameter. If not, then when the DllMain function of the DLL is called at load time, then the HINSTANCE is passed then. Just remember it!
(ie, in a extern variable that all the CPP files in the DLL have access to.

That's how I did it in the old days!

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]

GeneralRe: Win32 DLL Resource not found Error Pin
Nitheesh George16-Nov-09 2:55
Nitheesh George16-Nov-09 2:55 
GeneralRe: Win32 DLL Resource not found Error Pin
Iain Clarke, Warrior Programmer16-Nov-09 3:02
Iain Clarke, Warrior Programmer16-Nov-09 3:02 
GeneralRe: Win32 DLL Resource not found Error Pin
Randor 16-Nov-09 11:43
professional Randor 16-Nov-09 11:43 
QuestionVTK & Windows Forms Pin
moon8416-Nov-09 1:02
moon8416-Nov-09 1:02 
Questionrunning program information Pin
itay1016-Nov-09 0:55
itay1016-Nov-09 0:55 
AnswerRe: running program information Pin
Richard MacCutchan16-Nov-09 1:28
mveRichard MacCutchan16-Nov-09 1:28 
GeneralRe: running program information Pin
itay1016-Nov-09 3:15
itay1016-Nov-09 3:15 
GeneralRe: running program information Pin
David Crow16-Nov-09 3:28
David Crow16-Nov-09 3:28 
GeneralRe: running program information Pin
itay1016-Nov-09 4:02
itay1016-Nov-09 4:02 
GeneralRe: running program information Pin
Richard MacCutchan16-Nov-09 4:09
mveRichard MacCutchan16-Nov-09 4:09 
GeneralRe: running program information Pin
itay1016-Nov-09 21:44
itay1016-Nov-09 21:44 
GeneralRe: running program information Pin
Richard MacCutchan16-Nov-09 21:57
mveRichard MacCutchan16-Nov-09 21:57 
QuestionDLL creation problem Pin
Game-point16-Nov-09 0:19
Game-point16-Nov-09 0:19 
AnswerRe: DLL creation problem Pin
Richard MacCutchan16-Nov-09 0:24
mveRichard MacCutchan16-Nov-09 0:24 
GeneralRe: DLL creation problem Pin
Game-point16-Nov-09 0:34
Game-point16-Nov-09 0:34 
GeneralRe: DLL creation problem Pin
Richard MacCutchan16-Nov-09 0:53
mveRichard MacCutchan16-Nov-09 0:53 
AnswerRe: DLL creation problem Pin
Iain Clarke, Warrior Programmer16-Nov-09 0:41
Iain Clarke, Warrior Programmer16-Nov-09 0:41 

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.