Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: name decoration issue in DLL Pin
George_George7-Oct-08 22:18
George_George7-Oct-08 22:18 
GeneralRe: name decoration issue in DLL Pin
cmk8-Oct-08 4:24
cmk8-Oct-08 4:24 
GeneralRe: name decoration issue in DLL Pin
George_George8-Oct-08 21:40
George_George8-Oct-08 21:40 
GeneralRe: name decoration issue in DLL Pin
cmk9-Oct-08 2:11
cmk9-Oct-08 2:11 
GeneralRe: name decoration issue in DLL Pin
George_George9-Oct-08 3:04
George_George9-Oct-08 3:04 
GeneralRe: name decoration issue in DLL Pin
Bram van Kampen28-Oct-08 14:27
Bram van Kampen28-Oct-08 14:27 
GeneralRe: name decoration issue in DLL Pin
George_George30-Oct-08 3:26
George_George30-Oct-08 3:26 
GeneralRe: name decoration issue in DLL Pin
Bram van Kampen31-Oct-08 15:45
Bram van Kampen31-Oct-08 15:45 
don't rename member functions to global, and only use __cdecl (the default), definitely NEVER __stdcall,__pascall, etc, you should be OK.

Exampe:
void CMyClass::MyFunction()

The compiler generates hidden pointers to the inststance of the class you are calling from, if you compile a member function being called from a class instance. The Name Decorating Service provided by the compiler ensures that at each stage the correct function is called. In a .DEF file you can override most things. The decorationd determine if you were calling a global, or a member function. member functions have ALWAYS as first hidden param, the pointer to the class they where called from.
If you have in your class a function fputs(LPCSTR pStr, FILE* F); what's called is something like ??MyClass@@puts@ABCD(MyClass* this,LPCSTR pStr...etc.
You create a DEF file to remap ??MyClass@@puts@ABCD to puts;
It will run: puts(this,pStr); and probably crash!

This WIL need some Name translations, but can be made to work.
btw Why are c and cpp names different.

Regards,

Bram van Kampen

QuestionBitmap on Wizrad [modified] Pin
john56325-Oct-08 0:29
john56325-Oct-08 0:29 
AnswerRe: Bitmap on Wizrad Pin
Hamid_RT5-Oct-08 2:04
Hamid_RT5-Oct-08 2:04 
GeneralRe: Bitmap on Wizrad Pin
john56325-Oct-08 3:07
john56325-Oct-08 3:07 
QuestionStatic variable in c/c++ Pin
Subrat 47082665-Oct-08 0:26
Subrat 47082665-Oct-08 0:26 
AnswerRe: Static variable in c/c++ Pin
montiee5-Oct-08 1:07
montiee5-Oct-08 1:07 
GeneralRe: Static variable in c/c++ Pin
Subrat 47082666-Oct-08 17:30
Subrat 47082666-Oct-08 17:30 
GeneralRe: Static variable in c/c++ Pin
montiee8-Oct-08 1:24
montiee8-Oct-08 1:24 
GeneralRe: Static variable in c/c++ Pin
Subrat 47082668-Oct-08 3:13
Subrat 47082668-Oct-08 3:13 
QuestionAutomatically appending an auto incrementing build number to Apps title in Visual Studio 2009..? [modified] Pin
montiee4-Oct-08 23:31
montiee4-Oct-08 23:31 
AnswerRe: Automatically appending an auto incrementing build number to Apps title in Visual Studio 2009..? Pin
Bram van Kampen5-Oct-08 2:49
Bram van Kampen5-Oct-08 2:49 
GeneralRe: Automatically appending an auto incrementing build number to Apps title in Visual Studio 2009..? Pin
montiee7-Oct-08 22:15
montiee7-Oct-08 22:15 
GeneralRe: Automatically appending an auto incrementing build number to Apps title in Visual Studio 2009..? Pin
Bram van Kampen9-Oct-08 15:54
Bram van Kampen9-Oct-08 15:54 
Questiondebugging release version build issue in managed code Pin
George_George4-Oct-08 22:07
George_George4-Oct-08 22:07 
QuestionDialog question Pin
yellowine4-Oct-08 18:52
yellowine4-Oct-08 18:52 
AnswerRe: Dialog question Pin
Cedric Moonen4-Oct-08 21:38
Cedric Moonen4-Oct-08 21:38 
AnswerRe: Dialog question Pin
bxveer5-Oct-08 3:53
bxveer5-Oct-08 3:53 
GeneralRe: Dialog question Pin
yellowine5-Oct-08 19:01
yellowine5-Oct-08 19:01 

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.