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

C / C++ / MFC

 
GeneralRe: format of Windows .TXT files Pin
CPallini2-Jan-08 9:57
mveCPallini2-Jan-08 9:57 
GeneralA project made from XPCOM components and VC++6.0 (I desperately need for any ideas) Pin
cuesdean florin2-Jan-08 5:44
cuesdean florin2-Jan-08 5:44 
GeneralRe: A project made from XPCOM components and VC++6.0 (I desperately need for any ideas) Pin
led mike2-Jan-08 8:19
led mike2-Jan-08 8:19 
GeneralHelp on DLL export Pin
tiwal2-Jan-08 5:19
tiwal2-Jan-08 5:19 
GeneralRe: Help on DLL export Pin
CPallini2-Jan-08 5:36
mveCPallini2-Jan-08 5:36 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 21:58
tiwal2-Jan-08 21:58 
GeneralRe: Help on DLL export Pin
CPallini2-Jan-08 22:29
mveCPallini2-Jan-08 22:29 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 23:49
tiwal2-Jan-08 23:49 
What you say is interesting : maybe GetProcAddress () has to be handled differently in a C++ environment.
By the way , I adapted my (very simple) code to your example , but it didn't work either.
I mean, I included a header file with __declspec(dllimport) and extern "C" directives in the calling code, but the error code is always the same (127).
I shouldn't need to use a header file and a dllimport directive in my case, since I'm linking my dll explicitly, and as far as I know this is only needed when you do it implicitly (that is , with a .lib for the export of symbols).
As the dll is loaded by the LoadLibrary, the system should look into its export table and check the symbol you specified in GetProcAddress () against those in that table : once it finds it, it should return the RVA associated with that symbol , so why use a header file and a dllimport statement ?
The fact instead, that GetProcAddress () couldn't be able to handle mangled names , is interesting : even if I really don't know how to work around it ....
GeneralRe: Help on DLL export Pin
CPallini3-Jan-08 0:04
mveCPallini3-Jan-08 0:04 
GeneralRe: Help on DLL export Pin
tiwal3-Jan-08 21:31
tiwal3-Jan-08 21:31 
GeneralRe: Help on DLL export Pin
CPallini3-Jan-08 21:49
mveCPallini3-Jan-08 21:49 
GeneralRe: Help on DLL export Pin
led mike2-Jan-08 5:36
led mike2-Jan-08 5:36 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 22:00
tiwal2-Jan-08 22:00 
GeneralRe: Help on DLL export Pin
Matthew Faithfull2-Jan-08 5:43
Matthew Faithfull2-Jan-08 5:43 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 22:13
tiwal2-Jan-08 22:13 
GeneralRe: Help on DLL export Pin
CPallini2-Jan-08 22:33
mveCPallini2-Jan-08 22:33 
QuestionRe: Help on DLL export Pin
David Crow2-Jan-08 8:45
David Crow2-Jan-08 8:45 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 22:19
tiwal2-Jan-08 22:19 
QuestionRe: Help on DLL export Pin
David Crow3-Jan-08 6:53
David Crow3-Jan-08 6:53 
GeneralRe: Help on DLL export Pin
tiwal3-Jan-08 21:49
tiwal3-Jan-08 21:49 
GeneralHi David Pin
Hamid_RT3-Jan-08 6:09
Hamid_RT3-Jan-08 6:09 
GeneralRe: Hi David Pin
David Crow3-Jan-08 6:45
David Crow3-Jan-08 6:45 
GeneralRe: Help on DLL export Pin
Hamid_RT2-Jan-08 18:16
Hamid_RT2-Jan-08 18:16 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 22:21
tiwal2-Jan-08 22:21 
GeneralFile map performance Pin
George_George2-Jan-08 5:03
George_George2-Jan-08 5:03 

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.