Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: one question abt dll..... Pin
Blake Miller25-Feb-05 3:54
Blake Miller25-Feb-05 3:54 
GeneralEmbedding text file in an exe Pin
_marsim_24-Feb-05 22:25
_marsim_24-Feb-05 22:25 
GeneralRe: Embedding text file in an exe Pin
David Crow25-Feb-05 2:53
David Crow25-Feb-05 2:53 
Generalabout Interface..... Pin
teremin24-Feb-05 22:03
teremin24-Feb-05 22:03 
GeneralRe: about Interface..... Pin
ThatsAlok25-Feb-05 0:02
ThatsAlok25-Feb-05 0:02 
QuestionHow to convert music CD into mp3? Pin
rushing24-Feb-05 21:58
rushing24-Feb-05 21:58 
AnswerRe: How to convert music CD into mp3? Pin
Ravi Bhavnani25-Feb-05 3:40
professionalRavi Bhavnani25-Feb-05 3:40 
QuestionHow to get the current instance handle Pin
Per Nilsson24-Feb-05 21:11
Per Nilsson24-Feb-05 21:11 
I have searched for a way to get the instance handle of the module that my code is executing in.

AfxGetInstanceHandle function available, but only when running as an MFC dll.

GetModuleHadndle is available, but requires the path of the dllm which I don't have.

I cannot inject code in DllMain to "remember" the instance handle because I don't have
access to it.


I have a solution that is quite extensive using "Process Helper", "PE Image Helper" APIs and are quite time consuming. I hope to find a better way of doing it. Probably there exist a way for it, but I haven't found it yet.

Does anybody have a solution for it?


AnswerRe: How to get the current instance handle Pin
David Crow25-Feb-05 2:54
David Crow25-Feb-05 2:54 
GeneralRe: How to get the current instance handle Pin
Per Nilsson25-Feb-05 3:15
Per Nilsson25-Feb-05 3:15 
GeneralRe: How to get the current instance handle Pin
Blake Miller25-Feb-05 4:06
Blake Miller25-Feb-05 4:06 
GeneralRe: How to get the current instance handle Pin
David Crow25-Feb-05 5:49
David Crow25-Feb-05 5:49 
GeneralRe: How to get the current instance handle Pin
Per Nilsson25-Feb-05 21:06
Per Nilsson25-Feb-05 21:06 
GeneralRe: How to get the current instance handle Pin
David Crow26-Feb-05 3:11
David Crow26-Feb-05 3:11 
GeneralOne more problem with buttons. Pin
scanf24-Feb-05 20:05
scanf24-Feb-05 20:05 
GeneralRe: One more problem with buttons. Pin
Branislav25-Feb-05 1:03
Branislav25-Feb-05 1:03 
GeneralRe: One more problem with buttons. Pin
Ravi Bhavnani25-Feb-05 3:42
professionalRavi Bhavnani25-Feb-05 3:42 
QuestionHow to invork iexplorer.exe Pin
mrfine24-Feb-05 19:13
mrfine24-Feb-05 19:13 
AnswerRe: How to invork iexplorer.exe Pin
Yulianto.24-Feb-05 19:58
Yulianto.24-Feb-05 19:58 
GeneralRe: How to invork iexplorer.exe Pin
mrfine24-Feb-05 20:00
mrfine24-Feb-05 20:00 
AnswerRe: How to invork iexplorer.exe Pin
ThatsAlok24-Feb-05 20:00
ThatsAlok24-Feb-05 20:00 
GeneralExiting a Thread Nicely Pin
LighthouseJ24-Feb-05 17:44
LighthouseJ24-Feb-05 17:44 
GeneralRe: Exiting a Thread Nicely Pin
S. Senthil Kumar24-Feb-05 18:12
S. Senthil Kumar24-Feb-05 18:12 
GeneralRe: Exiting a Thread Nicely Pin
David Crow25-Feb-05 2:58
David Crow25-Feb-05 2:58 
GeneralRe: Exiting a Thread Nicely Pin
LighthouseJ25-Feb-05 7:59
LighthouseJ25-Feb-05 7:59 

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.