Click here to Skip to main content
15,509,982 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: one question abt dll..... Pin
Blake Miller25-Feb-05 4:54
Blake Miller25-Feb-05 4:54 
GeneralEmbedding text file in an exe Pin
_marsim_24-Feb-05 23:25
_marsim_24-Feb-05 23:25 
GeneralRe: Embedding text file in an exe Pin
David Crow25-Feb-05 3:53
David Crow25-Feb-05 3:53 
Generalabout Interface..... Pin
teremin24-Feb-05 23:03
teremin24-Feb-05 23:03 
GeneralRe: about Interface..... Pin
ThatsAlok25-Feb-05 1:02
ThatsAlok25-Feb-05 1:02 
QuestionHow to convert music CD into mp3? Pin
rushing24-Feb-05 22:58
rushing24-Feb-05 22:58 
AnswerRe: How to convert music CD into mp3? Pin
Ravi Bhavnani25-Feb-05 4:40
professionalRavi Bhavnani25-Feb-05 4:40 
QuestionHow to get the current instance handle Pin
Per Nilsson24-Feb-05 22:11
Per Nilsson24-Feb-05 22: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 3:54
David Crow25-Feb-05 3:54 
GeneralRe: How to get the current instance handle Pin
Per Nilsson25-Feb-05 4:15
Per Nilsson25-Feb-05 4:15 
GeneralRe: How to get the current instance handle Pin
Blake Miller25-Feb-05 5:06
Blake Miller25-Feb-05 5:06 
GeneralRe: How to get the current instance handle Pin
David Crow25-Feb-05 6:49
David Crow25-Feb-05 6:49 
GeneralRe: How to get the current instance handle Pin
Per Nilsson25-Feb-05 22:06
Per Nilsson25-Feb-05 22:06 
GeneralRe: How to get the current instance handle Pin
David Crow26-Feb-05 4:11
David Crow26-Feb-05 4:11 
GeneralOne more problem with buttons. Pin
scanf24-Feb-05 21:05
scanf24-Feb-05 21:05 
GeneralRe: One more problem with buttons. Pin
Branislav25-Feb-05 2:03
Branislav25-Feb-05 2:03 
GeneralRe: One more problem with buttons. Pin
Ravi Bhavnani25-Feb-05 4:42
professionalRavi Bhavnani25-Feb-05 4:42 
QuestionHow to invork iexplorer.exe Pin
mrfine24-Feb-05 20:13
mrfine24-Feb-05 20:13 
AnswerRe: How to invork iexplorer.exe Pin
Yulianto.24-Feb-05 20:58
Yulianto.24-Feb-05 20:58 
GeneralRe: How to invork iexplorer.exe Pin
mrfine24-Feb-05 21:00
mrfine24-Feb-05 21:00 
AnswerRe: How to invork iexplorer.exe Pin
ThatsAlok24-Feb-05 21:00
ThatsAlok24-Feb-05 21:00 
GeneralExiting a Thread Nicely Pin
LighthouseJ24-Feb-05 18:44
LighthouseJ24-Feb-05 18:44 
GeneralRe: Exiting a Thread Nicely Pin
S. Senthil Kumar24-Feb-05 19:12
S. Senthil Kumar24-Feb-05 19:12 
GeneralRe: Exiting a Thread Nicely Pin
David Crow25-Feb-05 3:58
David Crow25-Feb-05 3:58 
GeneralRe: Exiting a Thread Nicely Pin
LighthouseJ25-Feb-05 8:59
LighthouseJ25-Feb-05 8: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.