Click here to Skip to main content
14,826,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting Fortran source to C++ Source Pin
manoharbalu9-Jun-16 2:52
Membermanoharbalu9-Jun-16 2:52 
GeneralRe: Converting Fortran source to C++ Source Pin
Jochen Arndt9-Jun-16 3:27
professionalJochen Arndt9-Jun-16 3:27 
GeneralRe: Converting Fortran source to C++ Source Pin
manoharbalu9-Jun-16 3:36
Membermanoharbalu9-Jun-16 3:36 
GeneralRe: Converting Fortran source to C++ Source Pin
Jochen Arndt9-Jun-16 3:54
professionalJochen Arndt9-Jun-16 3:54 
GeneralRe: Converting Fortran source to C++ Source Pin
leon de boer9-Jun-16 4:21
Memberleon de boer9-Jun-16 4:21 
GeneralRe: Converting Fortran source to C++ Source Pin
David A. Gray13-Jun-16 11:35
MemberDavid A. Gray13-Jun-16 11:35 
AnswerRe: Converting Fortran source to C++ Source Pin
Richard MacCutchan9-Jun-16 3:42
mveRichard MacCutchan9-Jun-16 3:42 
AnswerRe: Converting Fortran source to C++ Source Pin
leon de boer9-Jun-16 4:10
Memberleon de boer9-Jun-16 4:10 
To be able to advise you I need to know a couple of things

1.) Are we talking Fortran 77 or Fortran 90 code in the libraries and what complexity on exchange interface.
2.) How closely are you trying to mimic the functionality of the Delphi Application.

For point 1 there are some real complexities in linking Fortran 90 libraries to C++ as most of the advanced features are more closely related to Pascal than C++. Things that will give you nightmares are things like multi dimension arrays in column-major order, variant data fields require special conversions and any strings exchanges. So conceptually the linking of the libraries is easy but if the exchanges out of the Fortran libraries are complex the problem turns to a nightmare. So it's pretty much the same as linking them to Pascal but there are less consistency with datatypes used in the languages.

With point 2, I would first question why you want to use MFC and C++ for that matter? Delphi is much more structurally similar to C# this will give you the idea
Delphi vs. C# comparison | vsChart.com[^].

C++ is a level lower than Delphi, so what I am wondering here what is driving the want to bring the development onto C++. Don't get me wrong if you have a good C++ programmer they can easily convert it but the exact mimic of the framework well that is another story. I wrote the complete clean room copy of the Borlands objects unit that is in FreePascal (you will find me on the credits). I have also actually written a mimic of the whole Delphi 3 framework in C++ for an application I needed to exactly mirror and it took me just under 2 years. So is this being driven by a programmer wanting to make this choice or is it just a thought bubble.

I have similar reservations about MFC. It's still "current" and "used" but even Microsoft has now released it as free to use in VS2015 as it's commercial value is receding. Commercially most would select a different framework and to do that you start asking yourself do you need cloud access and the new technologies. If you don't need these you might select MFC but there are other choices.
In vino veritas

QuestionC++ and Visual Studio help? Error messages etc.. Pin
User 125396568-Jun-16 8:19
MemberUser 125396568-Jun-16 8:19 
SuggestionRe: C++ and Visual Studio help? Error messages etc.. Pin
David Crow8-Jun-16 9:32
MemberDavid Crow8-Jun-16 9:32 
AnswerRe: C++ and Visual Studio help? Error messages etc.. Pin
Richard MacCutchan8-Jun-16 20:53
mveRichard MacCutchan8-Jun-16 20:53 
AnswerRe: C++ and Visual Studio help? Error messages etc.. Pin
leon de boer8-Jun-16 21:57
Memberleon de boer8-Jun-16 21:57 
GeneralRe: C++ and Visual Studio help? Error messages etc.. Pin
Richard MacCutchan8-Jun-16 22:26
mveRichard MacCutchan8-Jun-16 22:26 
QuestionMemory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
lostangels5-Jun-16 4:37
Memberlostangels5-Jun-16 4:37 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Daniel Pfeffer5-Jun-16 21:39
professionalDaniel Pfeffer5-Jun-16 21:39 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Richard MacCutchan5-Jun-16 22:35
mveRichard MacCutchan5-Jun-16 22:35 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Victor Nijegorodov6-Jun-16 1:17
MemberVictor Nijegorodov6-Jun-16 1:17 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
leon de boer6-Jun-16 3:27
Memberleon de boer6-Jun-16 3:27 
QuestionType checking Pin
Rahul Thengadi4-Jun-16 10:26
MemberRahul Thengadi4-Jun-16 10:26 
AnswerRe: Type checking Pin
leon de boer4-Jun-16 21:03
Memberleon de boer4-Jun-16 21:03 
Questionwhat is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258022-Jun-16 22:23
MemberMember 125258022-Jun-16 22:23 
AnswerRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan2-Jun-16 23:40
mveRichard MacCutchan2-Jun-16 23:40 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258023-Jun-16 1:59
MemberMember 125258023-Jun-16 1:59 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Jochen Arndt3-Jun-16 2:38
professionalJochen Arndt3-Jun-16 2:38 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan3-Jun-16 2:42
mveRichard MacCutchan3-Jun-16 2:42 

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.