Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWM_KILLFOCUS / WM_SETFOCUS Pin
PJ Arends13-Feb-05 10:17
professionalPJ Arends13-Feb-05 10:17 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
Ryan Binns13-Feb-05 17:14
Ryan Binns13-Feb-05 17:14 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
PJ Arends14-Feb-05 9:30
professionalPJ Arends14-Feb-05 9:30 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
Ryan Binns14-Feb-05 12:15
Ryan Binns14-Feb-05 12:15 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
PJ Arends14-Feb-05 20:56
professionalPJ Arends14-Feb-05 20:56 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
Ryan Binns14-Feb-05 22:57
Ryan Binns14-Feb-05 22:57 
GeneralAnimateWindow & OnPaint problem Pin
Anonymous13-Feb-05 8:49
Anonymous13-Feb-05 8:49 
Generalrun-time dll linking - getting a variable Pin
Kuniva13-Feb-05 8:18
Kuniva13-Feb-05 8:18 
Hi, my scenario is like this:

I link a dll at run-time by calling LoadLibrary() and then I call GetProcAddress to get the location of a function within that DLL so i can call it. This works fine. But now I wanted to get the location of a variable, and address that, but it doesn't work. In my DLL I have a declaration as follows:

extern "C" { char * szLogFile = "C:\\log.txt"; }


So I try to address the variable from my program as follows:

char * test = (char*)GetProcAddress(hinstDLL, "szLogFile");


But when I then try to show the variable test using a messagebox I just get garbage so the pointer must be wrong.

Any ideas whats wrong?

Kuniva
--------------------------------------------
GeneralRe: run-time dll linking - getting a variable Pin
Neville Franks13-Feb-05 9:43
Neville Franks13-Feb-05 9:43 
GeneralRe: run-time dll linking - getting a variable Pin
Kuniva13-Feb-05 12:40
Kuniva13-Feb-05 12:40 
GeneralUDP sockets -> select() not working .. Please HELP! Pin
Member 172877313-Feb-05 7:51
Member 172877313-Feb-05 7:51 
QuestionGetting size of file? Pin
Moochie513-Feb-05 7:48
Moochie513-Feb-05 7:48 
AnswerRe: Getting size of file? Pin
Ravi Bhavnani13-Feb-05 8:29
professionalRavi Bhavnani13-Feb-05 8:29 
GeneralRe: Getting size of file? Pin
Neville Franks13-Feb-05 9:38
Neville Franks13-Feb-05 9:38 
AnswerRe: Getting size of file? Pin
David Crow14-Feb-05 3:51
David Crow14-Feb-05 3:51 
GeneralRe: Getting size of file? Pin
Moochie514-Feb-05 16:24
Moochie514-Feb-05 16:24 
GeneralRebar problems! Pin
Temuri13-Feb-05 6:38
Temuri13-Feb-05 6:38 
GeneralRe: Rebar problems! Pin
Neville Franks13-Feb-05 9:57
Neville Franks13-Feb-05 9:57 
GeneralRe: Rebar problems! Pin
Temuri13-Feb-05 20:19
Temuri13-Feb-05 20:19 
GeneralRe: Rebar problems! Pin
Neville Franks13-Feb-05 20:29
Neville Franks13-Feb-05 20:29 
GeneralRe: Rebar problems! Pin
Temuri13-Feb-05 21:40
Temuri13-Feb-05 21:40 
GeneralRe: Rebar problems! Pin
Neville Franks14-Feb-05 9:29
Neville Franks14-Feb-05 9:29 
GeneralSQLConnect With Custom ODBC Driver Pin
KalliMan13-Feb-05 6:06
KalliMan13-Feb-05 6:06 
QuestionHow to read/write an object of MyClass from/to a file. Pin
six_billion13-Feb-05 5:59
six_billion13-Feb-05 5:59 
AnswerRe: How to read/write an object of MyClass from/to a file. Pin
KalliMan13-Feb-05 6:12
KalliMan13-Feb-05 6:12 

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.