Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sockets - Roughly, how many clients can a server handle for gaming purposes Pin
Moak6-Oct-08 23:18
Moak6-Oct-08 23:18 
QuestionCFormView looses title on losing focus Pin
bxveer5-Oct-08 3:44
bxveer5-Oct-08 3:44 
QuestionCSplitterWnd Pin
john56325-Oct-08 3:36
john56325-Oct-08 3:36 
AnswerRe: CSplitterWnd Pin
PJ Arends5-Oct-08 11:19
professionalPJ Arends5-Oct-08 11:19 
AnswerRe: CSplitterWnd Pin
Hamid_RT6-Oct-08 1:56
Hamid_RT6-Oct-08 1:56 
Questionpoi command error? Pin
George_George5-Oct-08 2:06
George_George5-Oct-08 2:06 
Questionname decoration issue in DLL Pin
George_George5-Oct-08 0:54
George_George5-Oct-08 0:54 
AnswerRe: name decoration issue in DLL Pin
cmk5-Oct-08 2:05
cmk5-Oct-08 2:05 
GeneralRe: name decoration issue in DLL Pin
George_George5-Oct-08 2:49
George_George5-Oct-08 2:49 
GeneralRe: name decoration issue in DLL Pin
cmk5-Oct-08 3:46
cmk5-Oct-08 3:46 
GeneralRe: name decoration issue in DLL Pin
George_George5-Oct-08 21:05
George_George5-Oct-08 21:05 
GeneralRe: name decoration issue in DLL Pin
cmk6-Oct-08 2:50
cmk6-Oct-08 2:50 
GeneralRe: name decoration issue in DLL Pin
George_George6-Oct-08 22:53
George_George6-Oct-08 22:53 
GeneralRe: name decoration issue in DLL Pin
cmk7-Oct-08 4:54
cmk7-Oct-08 4:54 
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 

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.