Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trying to extend a CPropertyPage using one own class created from MFC CPropertyPage... Pin
Joan M2-Jan-08 20:47
professionalJoan M2-Jan-08 20:47 
GeneralChange Keyboard Layout for different process Pin
OpossumPetya2-Jan-08 9:08
OpossumPetya2-Jan-08 9:08 
Generalformat of Windows .TXT files Pin
Anthony Appleyard2-Jan-08 8:26
Anthony Appleyard2-Jan-08 8:26 
QuestionRe: format of Windows .TXT files Pin
David Crow2-Jan-08 8:39
David Crow2-Jan-08 8:39 
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 
Sorry to bother you , I searched the archive but couldn't find anything that could help ...
I'm exporting a couple of entry points from a very simple Dll, and I'm doing it (so it seems
at least) in the right way , that is :

__declspec (dllexport) DWORD Function_1 (...)
{
...
}

__declspec (dllexport) DWORD Function_2 (...)
{
...
}

I'm linking the dll "explicitly", that is , I'm using the LoadLibrary() + GetProcAddress()
combination to retrieve the pointers to the entry points of the functions .
The LoadLibrary () loads correctly the dll, but the GetProcAddress() always returns NULL.
I included the dll code in a .cpp file, as I did with the calling code , so I think there
should be no name-mangling problems .
The system error code is 127, that is "the specified procedure could not be found" , as if the
export I make in the dll code is incorrect ....
Could it be a problem of calling conventions ? I tried a variety of combinations between calling
code and dll code but nothing seemed to work fine .... I know that it should be __stdcall, so I set this option both in the main and in the dll project....
Any advice ?
Thank you , a happy new year to everybody .
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 
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 

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.