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

C / C++ / MFC

 
GeneralRe: Keystrokes in Edit control [modified] Pin
Naveen7-Jun-06 1:37
Naveen7-Jun-06 1:37 
GeneralRe: Keystrokes in Edit control [modified] Pin
happy_ram7-Jun-06 1:49
happy_ram7-Jun-06 1:49 
GeneralRe: Keystrokes in Edit control [modified] Pin
Naveen7-Jun-06 1:56
Naveen7-Jun-06 1:56 
GeneralRe: Keystrokes in Edit control [modified] Pin
happy_ram7-Jun-06 2:18
happy_ram7-Jun-06 2:18 
GeneralRe: Keystrokes in Edit control [modified] Pin
happy_ram7-Jun-06 2:25
happy_ram7-Jun-06 2:25 
GeneralRe: Keystrokes in Edit control [modified] Pin
FarPointer7-Jun-06 3:10
FarPointer7-Jun-06 3:10 
GeneralRe: Keystrokes in Edit control [modified] Pin
Naveen7-Jun-06 17:30
Naveen7-Jun-06 17:30 
QuestionHow the VC++ linker is resolving the function signatures ? Pin
ComplexLifeForm6-Jun-06 22:40
ComplexLifeForm6-Jun-06 22:40 
Hi,

I am a bit confused on how VC++ linker is resolving the function signatures. I have a windows Dll and a corresponding header file and I wanted to build a lib file out of it. So I dumped the exported methods from the DLL using Dumpbin utility. I then wrote a .def file for the exported methods and generated a .lib file from the DLL file.

Everthing was fine however I got confused regarding one thing. It is that the dumpbin produced the exported methods list with no underscore in the method name. E.g. Foo

When I ran the dumpbin utility on the generated lib file, I got underscore in method signature E.g. _Foo, so I assume that the methods must have been exported using __cdecl calling convention. When I look the method signature in the header file the prototype contains the __stdcall in the method prototype like

void LIBAPI Foo(); and LIBAPI is defined as

#if defined _WIN32
#define LIBAPI WINAPI
#endif

I was able to successfully create the .exe file using the generated lib file. Now my query is how is the linker resolving the differences in the method signatures?

Or is it the case that I am missing something basic here?

Can someone please clarify what is happening here.

Thanks and Regards.
QuestionA question about window service.... Pin
sunyw_20066-Jun-06 22:08
sunyw_20066-Jun-06 22:08 
AnswerRe: A question about window service.... Pin
Laxman Auti6-Jun-06 22:38
Laxman Auti6-Jun-06 22:38 
AnswerRe: A question about window service.... Pin
kakan6-Jun-06 22:53
professionalkakan6-Jun-06 22:53 
GeneralRe: A question about window service.... Pin
sunyw_20067-Jun-06 0:21
sunyw_20067-Jun-06 0:21 
GeneralRe: A question about window service.... Pin
kakan7-Jun-06 0:43
professionalkakan7-Jun-06 0:43 
GeneralRe: A question about window service.... Pin
sunyw_20067-Jun-06 1:00
sunyw_20067-Jun-06 1:00 
GeneralRe: A question about window service.... [modified] Pin
kakan7-Jun-06 1:21
professionalkakan7-Jun-06 1:21 
QuestionHow show the memory htm content in control and not show lousy code[WIN32] Pin
HOW WHAT6-Jun-06 22:08
HOW WHAT6-Jun-06 22:08 
Questionhow to get Bitmap from IImage? Pin
clblacksmith6-Jun-06 22:01
clblacksmith6-Jun-06 22:01 
AnswerRe: how to get Bitmap from IImage? Pin
PJ Arends7-Jun-06 8:03
professionalPJ Arends7-Jun-06 8:03 
QuestionStepping thru binary of debug version produces different result than running the debug binary (MSVS) Pin
chasetoys6-Jun-06 21:46
chasetoys6-Jun-06 21:46 
AnswerRe: Stepping thru binary of debug version produces different result than running the debug binary (MSVS) Pin
kakan6-Jun-06 21:58
professionalkakan6-Jun-06 21:58 
GeneralRe: Stepping thru binary of debug version produces different result than running the debug binary (MSVS) Pin
Viorel.6-Jun-06 22:12
Viorel.6-Jun-06 22:12 
QuestionHowto change Html on CDHtmlDialog at runtime Pin
AnTri6-Jun-06 21:38
AnTri6-Jun-06 21:38 
AnswerRe: Howto change Html on CDHtmlDialog at runtime Pin
Hamid_RT6-Jun-06 22:06
Hamid_RT6-Jun-06 22:06 
AnswerRe: Howto change Html on CDHtmlDialog at runtime Pin
Viorel.6-Jun-06 22:25
Viorel.6-Jun-06 22:25 
GeneralRe: Howto change Html on CDHtmlDialog at runtime Pin
Hamid_RT6-Jun-06 22:36
Hamid_RT6-Jun-06 22:36 

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.