Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Declaring classes to compiler before declarations Pin
Christian Graus8-Jul-07 9:27
protectorChristian Graus8-Jul-07 9:27 
GeneralRe: Declaring classes to compiler before declarations Pin
irrdev8-Jul-07 10:11
irrdev8-Jul-07 10:11 
AnswerRe: Declaring classes to compiler before declarations Pin
Michael Dunn8-Jul-07 10:18
sitebuilderMichael Dunn8-Jul-07 10:18 
QuestionGetting key hierarchy from HKEY... Pin
dontknowitall8-Jul-07 9:02
dontknowitall8-Jul-07 9:02 
AnswerRe: Getting key hierarchy from HKEY... Pin
Hamid_RT8-Jul-07 19:48
Hamid_RT8-Jul-07 19:48 
QuestionLoadLibrary and GetProcAddress Help Pin
vegito6168-Jul-07 8:37
vegito6168-Jul-07 8:37 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery8-Jul-07 9:03
Mark Salsbery8-Jul-07 9:03 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
dontknowitall8-Jul-07 9:10
dontknowitall8-Jul-07 9:10 
Download a tool called "Dependency Walker". If you don't have a .def file being used by the linker, you'll see underscores '_' preceding each exported function name. To fix this, add a .def file to your project and then modify the linker properties to use the .def file (Definition file). Edit the .def file to have an EXPORTS section:

EXPORTS
FirstFunctionToExport
SecondFunctionToExport
ThirdFunctionToExport
....


You get the idea.

Also, as already mentioned, don't call FreeLibrary() until you are actually done with the DLL.

If this solves your problem, take some time to try to figure out mine above. I've already dumped a couple hours into it (mostly research - maybe 45 minutes of actual coding).
QuestionRe: LoadLibrary and GetProcAddress Help Pin
Hamid_RT8-Jul-07 19:43
Hamid_RT8-Jul-07 19:43 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
vegito6168-Jul-07 20:10
vegito6168-Jul-07 20:10 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery9-Jul-07 8:43
Mark Salsbery9-Jul-07 8:43 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
vegito6169-Jul-07 23:23
vegito6169-Jul-07 23:23 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery10-Jul-07 5:37
Mark Salsbery10-Jul-07 5:37 
QuestionRedraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 5:53
dkmr8-Jul-07 5:53 
AnswerRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 9:07
Bogdan Apostol8-Jul-07 9:07 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 10:47
dkmr8-Jul-07 10:47 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 10:55
Bogdan Apostol8-Jul-07 10:55 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 11:15
dkmr8-Jul-07 11:15 
AnswerRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 15:17
Bogdan Apostol8-Jul-07 15:17 
QuestionWindbg Pin
tom groezer8-Jul-07 0:08
tom groezer8-Jul-07 0:08 
AnswerRe: Windbg [modified] Pin
mid=57418-Jul-07 0:20
mid=57418-Jul-07 0:20 
GeneralRe: Windbg Pin
tom groezer8-Jul-07 6:07
tom groezer8-Jul-07 6:07 
GeneralRe: Windbg Pin
Randor 8-Jul-07 7:19
professional Randor 8-Jul-07 7:19 
GeneralRe: Windbg Pin
David Crow9-Jul-07 3:07
David Crow9-Jul-07 3:07 
AnswerRe: Windbg Pin
Mike Dimmick8-Jul-07 11:51
Mike Dimmick8-Jul-07 11:51 

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.