Click here to Skip to main content
15,886,701 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Print class Members? Pin
bosfan5-Aug-16 4:25
bosfan5-Aug-16 4:25 
GeneralRe: Print class Members? Pin
CPallini7-Aug-16 20:42
mveCPallini7-Aug-16 20:42 
QuestionCan define a function with same name and signature? Pin
sandeep manzhi16-Jun-16 4:22
sandeep manzhi16-Jun-16 4:22 
QuestionRe: define a function Pin
David Crow16-Jun-16 4:26
David Crow16-Jun-16 4:26 
SuggestionRe: define a function Pin
Richard MacCutchan16-Jun-16 4:32
mveRichard MacCutchan16-Jun-16 4:32 
AnswerRe: Can define a function with same name and signature? Pin
leon de boer16-Jun-16 6:38
leon de boer16-Jun-16 6:38 
GeneralRe: Can define a function with same name and signature? Pin
CPallini17-Jun-16 0:23
mveCPallini17-Jun-16 0:23 
AnswerRe: Can define a function with same name and signature? Pin
Bram van Kampen26-Jun-16 12:33
Bram van Kampen26-Jun-16 12:33 
Well,
Nearly per Definition you can Not use a C Compiler to compile CPP!

You do not understand where it all came from, but I'll ex[plain.

'C' was created by Brian Kernigan and Dennis Ritchie as a High Level Language, with the flexibility of Assembler.
It has a straight forward flat language structure, needing a very simple symbol table. (The Symbol Table is a database used by the Compiler, to keep track of what symbolic value is stored where) This database would not allow for items like 'MyStruct.MyMember'.Instead, it kept a separate Database of Structure Names.
When Brian Stroustrep started CPP, it was initially a 'PreCompiler' which would write a 'C' acceptable set of variable names. For Intance: void MyStruct::MyFunct(int,char,int) would be translated into something like 'FnMyStruct_MyFunct_int_char_int__void'
and then let the 'C' Compiler do it's Job.

That worked of a kind, but, what if one also were to write a 'C' function: 'FnMyStruct_MyFunct_int_char_int__void(int Param)'
Unlikely, but, a potential problem. Brian Stroustrep had to use symbols and characters acceptable to the 'C' language.
When proper CPP Compilers appeared at the scene, the decoration became more flexible. For Instance:
'FnMyStruct?MyFunct??int_char_int???void' Such a name cannot be passed as a 'C' Name. (Note: I do not state that the scheme here is actually used, it is just an illustration to explain the point of how a CPP Compiler generates different code compared to a 'C' compiler)

A CPP compiler can compile 'C' Code. The otherway around, a 'C' Compiler accepting CPP Code is never going to happen, for the reasons stated above.

Now, As others have Asked:
what is your problem!

Perhaps you want to Include a 'C' Module in your 'CPP Project'

Smile | :)
Bram van Kampen

Questionenum Datatype: Overloaded function differ only by return type error...? Pin
mbatra3115-Jun-16 20:51
mbatra3115-Jun-16 20:51 
AnswerRe: enum Datatype: Overloaded function differ only by return type error...? Pin
Richard MacCutchan15-Jun-16 21:46
mveRichard MacCutchan15-Jun-16 21:46 
AnswerRe: enum Datatype: Overloaded function differ only by return type error...? Pin
leon de boer15-Jun-16 22:41
leon de boer15-Jun-16 22:41 
QuestionSHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
Member 1248511614-Jun-16 2:39
Member 1248511614-Jun-16 2:39 
QuestionRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
David Crow14-Jun-16 2:43
David Crow14-Jun-16 2:43 
AnswerRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
Member 1248511614-Jun-16 5:05
Member 1248511614-Jun-16 5:05 
QuestionRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
David Crow14-Jun-16 5:23
David Crow14-Jun-16 5:23 
SuggestionRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
Peter_in_278014-Jun-16 16:53
professionalPeter_in_278014-Jun-16 16:53 
GeneralRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
Member 1248511614-Jun-16 19:18
Member 1248511614-Jun-16 19:18 
GeneralRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
Jochen Arndt14-Jun-16 21:19
professionalJochen Arndt14-Jun-16 21:19 
GeneralRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
leon de boer15-Jun-16 4:11
leon de boer15-Jun-16 4:11 
GeneralRe: SHA1- CheckSum Example in Microsoft Visual C++ 6.0 Pin
David Crow15-Jun-16 1:53
David Crow15-Jun-16 1:53 
QuestionLarge project how to seprate definition and declaration? Pin
Hassan Syed112-Jun-16 9:47
Hassan Syed112-Jun-16 9:47 
AnswerRe: Large project how to seprate definition and declaration? Pin
leon de boer12-Jun-16 17:38
leon de boer12-Jun-16 17:38 
GeneralRe: Large project how to seprate definition and declaration? Pin
Hassan Syed112-Jun-16 18:34
Hassan Syed112-Jun-16 18:34 
GeneralRe: Large project how to seprate definition and declaration? Pin
Jochen Arndt12-Jun-16 21:47
professionalJochen Arndt12-Jun-16 21:47 
GeneralRe: Large project how to seprate definition and declaration? Pin
leon de boer12-Jun-16 22:37
leon de boer12-Jun-16 22:37 

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.