Click here to Skip to main content
15,909,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Determine straight line Pin
Amarnath S7-Aug-12 1:45
professionalAmarnath S7-Aug-12 1:45 
GeneralRe: Determine straight line Pin
tagopi7-Aug-12 1:49
tagopi7-Aug-12 1:49 
GeneralRe: Determine straight line Pin
Eugen Podsypalnikov7-Aug-12 4:14
Eugen Podsypalnikov7-Aug-12 4:14 
GeneralRe: Determine straight line Pin
Amarnath S7-Aug-12 1:51
professionalAmarnath S7-Aug-12 1:51 
SuggestionRe: Determine straight line Pin
Albert Holguin7-Aug-12 1:40
professionalAlbert Holguin7-Aug-12 1:40 
GeneralRe: Determine straight line Pin
tagopi7-Aug-12 1:50
tagopi7-Aug-12 1:50 
AnswerRe: Determine straight line Pin
pasztorpisti7-Aug-12 5:57
pasztorpisti7-Aug-12 5:57 
AnswerRe: Determine straight line Pin
CPallini7-Aug-12 21:17
mveCPallini7-Aug-12 21:17 
QuestionC++ middleware with GUI in C Pin
Member 83997696-Aug-12 20:02
Member 83997696-Aug-12 20:02 
AnswerRe: C++ middleware with GUI in C Pin
Richard MacCutchan6-Aug-12 20:59
mveRichard MacCutchan6-Aug-12 20:59 
GeneralRe: C++ middleware with GUI in C Pin
Member 83997696-Aug-12 21:58
Member 83997696-Aug-12 21:58 
GeneralRe: C++ middleware with GUI in C Pin
Richard MacCutchan6-Aug-12 22:46
mveRichard MacCutchan6-Aug-12 22:46 
GeneralRe: C++ middleware with GUI in C Pin
JohnAspras6-Aug-12 21:21
JohnAspras6-Aug-12 21:21 
GeneralRe: C++ middleware with GUI in C Pin
Software_Developer6-Aug-12 22:42
Software_Developer6-Aug-12 22:42 
AnswerRe: C++ middleware with GUI in C Pin
pasztorpisti7-Aug-12 11:53
pasztorpisti7-Aug-12 11:53 
I tend to find that microcontroller guys are usually gravitating towards C from C++ and I feel something like that in your words. Rewriting a project from C++ to C is usually a downgrade especially in terms of software design if you don't have a strong reason to do that. I was also skeptic about c++ for a long time (I came from assembly, and C, pascal) but believe me that C++ allows you to write much more easy to maintain/clear and bug free code than C. Many ppl think that the only way to communicate between C and C++ compilation units is by calling from C++ to C. This is not true. You can put a function into a cpp file and can declare it as extern "C". In this calse you can call this C++ function from a C file but you can't use C++ types in the function declaration (like bool or pointers/refs to C++ classes), but inside the function body you can use pure C++ with classes/templates...

My advice: If you have an option to choose a C++ gui library than choose that and continue writing the project in C++. If you want to go on with your current C library then you should create wrapper classes around the stuff your gui has (buttons, editboxes, labels, dialogs, etc...) and then go on writing the project in C++ and use the gui library as C++ through its wrapper classes.

Any more questions? Smile | :)
GeneralRe: C++ middleware with GUI in C Pin
Member 83997697-Aug-12 19:18
Member 83997697-Aug-12 19:18 
GeneralRe: C++ middleware with GUI in C Pin
pasztorpisti7-Aug-12 21:13
pasztorpisti7-Aug-12 21:13 
GeneralNeed help for a Ray Cast Function Pin
SD1016-Aug-12 8:15
SD1016-Aug-12 8:15 
GeneralRe: Need help for a Ray Cast Function Pin
Wes Aday6-Aug-12 8:20
professionalWes Aday6-Aug-12 8:20 
GeneralRe: Need help for a Ray Cast Function Pin
Software_Developer6-Aug-12 9:02
Software_Developer6-Aug-12 9:02 
Questionvectors Pin
Xarzu6-Aug-12 7:10
Xarzu6-Aug-12 7:10 
GeneralRe: vectors Pin
Software_Developer6-Aug-12 7:34
Software_Developer6-Aug-12 7:34 
AnswerRe: vectors Pin
Albert Holguin6-Aug-12 7:38
professionalAlbert Holguin6-Aug-12 7:38 
QuestionI'm doing a file download client,use http or ftp Pin
jiang1988jian5-Aug-12 23:34
jiang1988jian5-Aug-12 23:34 
GeneralRe: I'm doing a file download client,use http or ftp Pin
pasztorpisti6-Aug-12 3:29
pasztorpisti6-Aug-12 3:29 

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.