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

C / C++ / MFC

 
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 
Hi cmk,


Your reply is excellent. I have tried but have different results. In the document you recommended, it is mentioned default calling convention is __cdecl, and the resulting name in DLL should begin with sign _.

But my result is the default calling convention __cdecl results in name without _ sign? Here is my code and my output. Any ideas?

I am using VS 2008, Debug build for Win32.

D:\Visual Studio 2008\Projects\TestDll2\Debug>dumpbin /exports TestDll2.dll
Microsoft (R) COFF/PE Dumper Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file TestDll2.dll

File Type: DLL

  Section contains the following exports for TestDll2.dll

    00000000 characteristics
    48E8B6E6 time date stamp Sun Oct 05 20:45:26 2008
        0.00 version
           1 ordinal base
           2 number of functions
           2 number of names

    ordinal hint RVA      name

          1    0 000110AF MyFunc1 = @ILT+170(_MyFunc1)
          2    1 0001106E _MyFunc2@4 = @ILT+105(_MyFunc2@4)

  Summary

        1000 .data
        1000 .idata
        2000 .rdata
        1000 .reloc
        1000 .rsrc
        4000 .text
       10000 .textbss




extern "C"
{
	__declspec (dllexport) int MyFunc1 (int A) {return 100;}
	__declspec (dllexport) int __stdcall MyFunc2 (int A) {return 100;}
}



regards,
George
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 
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 

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.