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

C / C++ / MFC

 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
Joe Woodbury29-Apr-19 6:38
professionalJoe Woodbury29-Apr-19 6:38 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
leon de boer3-May-19 4:20
leon de boer3-May-19 4:20 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
Joe Woodbury3-May-19 5:51
professionalJoe Woodbury3-May-19 5:51 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
zak10025-Apr-19 7:05
zak10025-Apr-19 7:05 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
zak10025-Apr-19 7:10
zak10025-Apr-19 7:10 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
leon de boer25-Apr-19 7:49
leon de boer25-Apr-19 7:49 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
zak10025-Apr-19 8:56
zak10025-Apr-19 8:56 
AnswerRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
ChrisFromWales30-Apr-19 23:37
ChrisFromWales30-Apr-19 23: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 22:01
Stefan_Lang4-Jun-19 22:01 
Questionprocessing Multithread in MFC Pin
Member 1422104124-Apr-19 18:41
Member 1422104124-Apr-19 18:41 
AnswerRe: processing Multithread in MFC Pin
Victor Nijegorodov24-Apr-19 20:36
Victor Nijegorodov24-Apr-19 20:36 
AnswerRe: processing Multithread in MFC Pin
Richard MacCutchan24-Apr-19 21:31
mveRichard MacCutchan24-Apr-19 21:31 
QuestionConversion from- C++ to C-language Pin
zak10024-Apr-19 16:28
zak10024-Apr-19 16:28 
QuestionRe: Conversion from- C++ to C-language Pin
David Crow24-Apr-19 16:59
David Crow24-Apr-19 16:59 
AnswerRe: Conversion from- C++ to C-language Pin
zak10024-Apr-19 18:04
zak10024-Apr-19 18:04 
GeneralRe: Conversion from- C++ to C-language Pin
David Crow25-Apr-19 2:11
David Crow25-Apr-19 2:11 
GeneralRe: Conversion from- C++ to C-language Pin
leon de boer25-Apr-19 2:20
leon de boer25-Apr-19 2:20 
QuestionPreprocessor Directives in C Program Pin
Aakashdata22-Apr-19 22:57
Aakashdata22-Apr-19 22:57 
AnswerRe: Preprocessor Directives in C Program Pin
Renuka peshwani22-Apr-19 23:16
Renuka peshwani22-Apr-19 23:16 
AnswerRe: Preprocessor Directives in C Program Pin
Richard MacCutchan22-Apr-19 23:43
mveRichard MacCutchan22-Apr-19 23:43 
AnswerRe: Preprocessor Directives in C Program Pin
leon de boer23-Apr-19 6:55
leon de boer23-Apr-19 6:55 
GeneralRe: Preprocessor Directives in C Program Pin
k505423-Apr-19 7:01
mvek505423-Apr-19 7:01 
GeneralRe: Preprocessor Directives in C Program Pin
leon de boer23-Apr-19 7:15
leon de boer23-Apr-19 7:15 
JokeRe: Preprocessor Directives in C Program Pin
Peter_in_278023-Apr-19 12:15
professionalPeter_in_278023-Apr-19 12:15 
GeneralRe: Preprocessor Directives in C Program Pin
leon de boer23-Apr-19 14:43
leon de boer23-Apr-19 14: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.