Click here to Skip to main content
15,892,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionconvert integer value to string objcet? Pin
Yonggoo31-Jan-07 8:59
Yonggoo31-Jan-07 8:59 
AnswerRe: convert integer value to string objcet? Pin
lucy31-Jan-07 9:02
lucy31-Jan-07 9:02 
GeneralRe: convert integer value to string objcet? Pin
Sceptic Mole31-Jan-07 9:13
Sceptic Mole31-Jan-07 9:13 
GeneralRe: convert integer value to string objcet? Pin
CPallini31-Jan-07 9:51
mveCPallini31-Jan-07 9:51 
GeneralRe: convert integer value to string objcet? Pin
Hamid_RT31-Jan-07 19:59
Hamid_RT31-Jan-07 19:59 
AnswerRe: convert integer value to string objcet? Pin
Christian Graus31-Jan-07 9:14
protectorChristian Graus31-Jan-07 9:14 
Questionexponential notation question Pin
Victor Monteverde31-Jan-07 8:35
Victor Monteverde31-Jan-07 8:35 
QuestionHINSTANCE adventures Pin
dabs31-Jan-07 6:26
dabs31-Jan-07 6:26 
Hi,

I'm maintaining an MFC ISAPI dll, and need to:
  • access the HINSTANCE of the dll to be able to:
  • get the full path of the dll through GetModuleFileName, to be able to:
  • register the dll to be able to add Event Log messages.


I've tried accessing theApp.m_hInstance, but it's NULL. I've also tried calling AfxGetInstanceHandle( ), which also returns NULL. I've tried adding the AFX_MANAGE_STATE( AfxGetStaticModuleState( ) ) to the top of the function which tries to locate the HINSTANCE, but to no avail. Since this is an MFC ISAPI extension, I don't have access to the DllMain function, otherwise I would probably just store it in a global variable...

Any ideas?

Regards,
Daníel



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!

AnswerRe: HINSTANCE adventures Pin
Mark Salsbery31-Jan-07 6:52
Mark Salsbery31-Jan-07 6:52 
AnswerRe: HINSTANCE adventures Pin
James R. Twine31-Jan-07 8:52
James R. Twine31-Jan-07 8:52 
GeneralRe: HINSTANCE adventures Pin
Stephen Hewitt31-Jan-07 13:45
Stephen Hewitt31-Jan-07 13:45 
GeneralRe: HINSTANCE adventures Pin
James R. Twine31-Jan-07 15:07
James R. Twine31-Jan-07 15:07 
AnswerRe: HINSTANCE adventures Pin
Stephen Hewitt31-Jan-07 11:48
Stephen Hewitt31-Jan-07 11:48 
Questionproblem with 2d array Pin
ikbahrian31-Jan-07 5:50
ikbahrian31-Jan-07 5:50 
AnswerRe: problem with 2d array [edited] Pin
toxcct31-Jan-07 5:56
toxcct31-Jan-07 5:56 
GeneralRe: problem with 2d array Pin
ikbahrian31-Jan-07 6:02
ikbahrian31-Jan-07 6:02 
GeneralRe: problem with 2d array Pin
toxcct31-Jan-07 6:18
toxcct31-Jan-07 6:18 
Questiondatabase connection Pin
jagdishbhai31-Jan-07 5:10
jagdishbhai31-Jan-07 5:10 
AnswerRe: database connection Pin
led mike31-Jan-07 5:48
led mike31-Jan-07 5:48 
QuestionRe: database connection Pin
slipnit31-Jan-07 9:24
slipnit31-Jan-07 9:24 
AnswerRe: database connection Pin
led mike31-Jan-07 11:52
led mike31-Jan-07 11:52 
GeneralRe: database connection Pin
slipnit1-Feb-07 4:26
slipnit1-Feb-07 4:26 
AnswerRe: database connection Pin
Hamid_RT31-Jan-07 20:26
Hamid_RT31-Jan-07 20:26 
QuestionRadio Buttons in VS2005 Pin
#realJSOP31-Jan-07 5:00
mve#realJSOP31-Jan-07 5:00 
JokeRe: Radio Buttons in VS2005 Pin
James R. Twine31-Jan-07 5:06
James R. Twine31-Jan-07 5:06 

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.