Click here to Skip to main content
14,774,184 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
Joe Woodbury29-Apr-19 7:38
professionalJoe Woodbury29-Apr-19 7:38 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
leon de boer3-May-19 5:20
Memberleon de boer3-May-19 5:20 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
Joe Woodbury3-May-19 6:51
professionalJoe Woodbury3-May-19 6:51 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
zak10025-Apr-19 8:05
Memberzak10025-Apr-19 8:05 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
zak10025-Apr-19 8:10
Memberzak10025-Apr-19 8:10 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
leon de boer25-Apr-19 8:49
Memberleon de boer25-Apr-19 8:49 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
zak10025-Apr-19 9:56
Memberzak10025-Apr-19 9:56 
AnswerRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
ChrisFromWales1-May-19 0:37
MemberChrisFromWales1-May-19 0:37 
I guess this won't be the reply you expect or want, but …

In the early 1980s, when the C++ language was first being developed at Bell Labs, the first (and for a long time the only) "compiler" for C++ was a tool called cfront. It converted C++ source code into valid C source code (for which there were already a gazillion compilers, of course) The cfront compiler was actually maintained for over a decade, ending with the release of version 3.0.3 (the last official version of which I am aware) in May 1994.

Your current project (as I understand it), is to convert some existing C++ source code (that allegedly works correctly) into C source code (presumably also with the works correctly option). I suspect the ultimate target is a platform for which no C++ compiler is available.

If the original C++ source that you are porting does NOT make extensive use of some of the more modern additions to the language, then you might consider running cfront on the original C++ source. I am not suggesting that it should replace your manual porting efforts to date, but to act merely as your assistant in a purely advisory capacity.

The last version of cfront was released around the time that the C++ language added templates (which are implemented) and exceptions (which are not implemented). If you are interested, you can download cfront or browse the source code courtesy of the Software Preservation Group (which is part of the Computer History Museum in Mountain View, California (Silicon Valley).

You can either download cfront version 3.0.3 from May 1994 (as a gzip'd tar archive), or as an alternative if you prefer, you can browse the source tree (in a new browser window).
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
Stefan_Lang4-Jun-19 23:01
mveStefan_Lang4-Jun-19 23:01 
Questionprocessing Multithread in MFC Pin
Member 1422104124-Apr-19 19:41
MemberMember 1422104124-Apr-19 19:41 
AnswerRe: processing Multithread in MFC Pin
Victor Nijegorodov24-Apr-19 21:36
MemberVictor Nijegorodov24-Apr-19 21:36 
AnswerRe: processing Multithread in MFC Pin
Richard MacCutchan24-Apr-19 22:31
mveRichard MacCutchan24-Apr-19 22:31 
QuestionConversion from- C++ to C-language Pin
zak10024-Apr-19 17:28
Memberzak10024-Apr-19 17:28 
QuestionRe: Conversion from- C++ to C-language Pin
David Crow24-Apr-19 17:59
MemberDavid Crow24-Apr-19 17:59 
AnswerRe: Conversion from- C++ to C-language Pin
zak10024-Apr-19 19:04
Memberzak10024-Apr-19 19:04 
GeneralRe: Conversion from- C++ to C-language Pin
David Crow25-Apr-19 3:11
MemberDavid Crow25-Apr-19 3:11 
GeneralRe: Conversion from- C++ to C-language Pin
leon de boer25-Apr-19 3:20
Memberleon de boer25-Apr-19 3:20 
QuestionPreprocessor Directives in C Program Pin
Aakashdata22-Apr-19 23:57
MemberAakashdata22-Apr-19 23:57 
AnswerRe: Preprocessor Directives in C Program Pin
Renuka peshwani23-Apr-19 0:16
MemberRenuka peshwani23-Apr-19 0:16 
AnswerRe: Preprocessor Directives in C Program Pin
Richard MacCutchan23-Apr-19 0:43
mveRichard MacCutchan23-Apr-19 0:43 
AnswerRe: Preprocessor Directives in C Program Pin
leon de boer23-Apr-19 7:55
Memberleon de boer23-Apr-19 7:55 
GeneralRe: Preprocessor Directives in C Program Pin
k505423-Apr-19 8:01
mvek505423-Apr-19 8:01 
GeneralRe: Preprocessor Directives in C Program Pin
leon de boer23-Apr-19 8:15
Memberleon de boer23-Apr-19 8:15 
JokeRe: Preprocessor Directives in C Program Pin
Peter_in_278023-Apr-19 13:15
professionalPeter_in_278023-Apr-19 13:15 
GeneralRe: Preprocessor Directives in C Program Pin
leon de boer23-Apr-19 15:43
Memberleon de boer23-Apr-19 15:43 

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.