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

C / C++ / MFC

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


Understand and clear now. Two more questions for the link you provided,

http://msdn.microsoft.com/en-us/library/0603949d%28VS.80%29.aspx[^]

1.

"Microsoft C++ supports the strings "C" and "C++" in the string-literal field. All of the standard include files use the extern "C" syntax to allow the run-time library functions to be used in C++ programs." -- I am wondering whether the document is wrong? Using extern C should allow the run-time library functions to be used in C functions, since extern C specifies the C name decoration which could be consumed (linked) by C application?

2.

I also do not agree with this -- " C functions and data can be accessed only if they are previously declared as having C linkage. However, they must be defined in a separately compiled translation unit." -- we can define extern C function in the same cpp file (compiled translation unit) and use the function in the same cpp file, no need to be defined in a separately compiled translation unit.


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

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.