Click here to Skip to main content
16,005,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: (Bitmaps again...) Error!!!---Not Anymore Pin
Dennis L25-Feb-03 6:30
Dennis L25-Feb-03 6:30 
GeneralWin2k/XP Open/Save common dialogs under NT4 Pin
ASBR25-Feb-03 5:16
ASBR25-Feb-03 5:16 
GeneralRe: Win2k/XP Open/Save common dialogs under NT4 Pin
Alvaro Mendez25-Feb-03 5:21
Alvaro Mendez25-Feb-03 5:21 
GeneralRe: Win2k/XP Open/Save common dialogs under NT4 Pin
François Gasnier25-Feb-03 6:27
François Gasnier25-Feb-03 6:27 
GeneralEXE access problem Pin
will138325-Feb-03 5:10
will138325-Feb-03 5:10 
GeneralRe: EXE access problem Pin
Alvaro Mendez25-Feb-03 5:18
Alvaro Mendez25-Feb-03 5:18 
GeneralRe: EXE access problem Pin
will138325-Feb-03 5:24
will138325-Feb-03 5:24 
GeneralRe: EXE access problem Pin
Alvaro Mendez25-Feb-03 5:48
Alvaro Mendez25-Feb-03 5:48 
Hmmmm, I've actually done something similar to this, but not using LoadLibrary. I've linked the DLL with the LIB file from the EXE. So when the DLL is loaded it also loads the EXE, but since the EXE is already running -- the EXE brings up the DLL with LoadLibrary -- then it uses that instance of the EXE instead of loading a separate one.

In your case I'm not really sure of the problem, but it appears as though loading the EXE this way does not load its global variables. Your compile_time variable is global. This may be the root of the problem.

Try doing this instead:

EXPORT char *get_compile_time()
{
  return __TIME__;
}


Regards,
Alvaro


The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. -- Albert Einstein
GeneralRe: EXE access problem Pin
will138325-Feb-03 6:49
will138325-Feb-03 6:49 
GeneralRe: EXE access problem Pin
Alvaro Mendez25-Feb-03 7:12
Alvaro Mendez25-Feb-03 7:12 
GeneralRe: EXE access problem Pin
will138325-Feb-03 7:20
will138325-Feb-03 7:20 
GeneralRe: EXE access problem Pin
Alvaro Mendez25-Feb-03 7:32
Alvaro Mendez25-Feb-03 7:32 
GeneralRe: EXE access problem Pin
will138325-Feb-03 7:49
will138325-Feb-03 7:49 
GeneralRe: EXE access problem Pin
Alvaro Mendez25-Feb-03 10:04
Alvaro Mendez25-Feb-03 10:04 
GeneralRe: EXE access problem Pin
Neville Franks25-Feb-03 9:33
Neville Franks25-Feb-03 9:33 
GeneralActive View Pin
jeremysay25-Feb-03 4:56
jeremysay25-Feb-03 4:56 
GeneralRe: Active View Pin
Alvaro Mendez25-Feb-03 5:16
Alvaro Mendez25-Feb-03 5:16 
GeneralRe: Active View Pin
jeremysay25-Feb-03 6:54
jeremysay25-Feb-03 6:54 
GeneralRe: Active View Pin
Alvaro Mendez25-Feb-03 7:06
Alvaro Mendez25-Feb-03 7:06 
GeneralRe: Active View Pin
jeremysay25-Feb-03 7:29
jeremysay25-Feb-03 7:29 
QuestionDynamic defines? Pin
rromerot25-Feb-03 4:55
rromerot25-Feb-03 4:55 
AnswerRe: Dynamic defines? Pin
Chris Losinger25-Feb-03 5:02
professionalChris Losinger25-Feb-03 5:02 
AnswerRe: Dynamic defines? Pin
Alvaro Mendez25-Feb-03 5:14
Alvaro Mendez25-Feb-03 5:14 
QuestionWhich is the best SMTP class, according to you? Pin
yasbas25-Feb-03 4:14
yasbas25-Feb-03 4:14 
AnswerRe: Which is the best SMTP class, according to you? Pin
Big Art25-Feb-03 5:42
Big Art25-Feb-03 5:42 

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.