Click here to Skip to main content
15,889,266 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MSDN const_cast sample Pin
CPallini16-Dec-07 22:32
mveCPallini16-Dec-07 22:32 
GeneralContext Menu Pin
john563216-Dec-07 21:20
john563216-Dec-07 21:20 
GeneralRe: Context Menu Pin
Naveen16-Dec-07 21:34
Naveen16-Dec-07 21:34 
GeneralRe: Context Menu Pin
Iain Clarke, Warrior Programmer17-Dec-07 0:33
Iain Clarke, Warrior Programmer17-Dec-07 0:33 
QuestionHow to Color a cell in a ListControl? Pin
Vikas_12316-Dec-07 20:40
Vikas_12316-Dec-07 20:40 
GeneralRe: How to Color a cell in a ListControl? Pin
Naveen16-Dec-07 21:02
Naveen16-Dec-07 21:02 
GeneralRe: How to Color a cell in a ListControl? Pin
Vikas_12316-Dec-07 22:53
Vikas_12316-Dec-07 22:53 
GeneralMFC vs .NET vs Qt? (Maybe C# even?) [long post] Pin
Member 451867316-Dec-07 20:12
Member 451867316-Dec-07 20:12 
I'll preface this by saying I'm 25 years old, and I've been programming since I was about 12 in various scripting and programming languages, though primarily in C. Up until recently, this was all console programming. I wouldn't call myself an expert on C because all of my knowledge is self-taught and specific to my needs, but I would call myself an expert on being able to visualize how something could be coded. Brain pseudo-code, I suppose.

Anyways, I started working in a new industry a bit over a year ago. Slowly I came to the idea that the software we use could work better. There are actually several competing programs, and I'm familiar with two of the major ones. About 8 months ago I started working with VS6 and MFC and I've put together a preliminary, dialog-based application that reduces the time to do some of the work I do by as much as 25-50%, as well as significantly increasing its accuracy. In fact, it even interfaces with the two aforementioned programs by way of copying the data on to the clipboard in a manner that these programs' spreadsheets will accept.

Thing is.. I have much higher aspirations for my program than just being a secondary device. Right now, the interface, while usable, is not something that would be considered industrial-strength. I've attempted to switch over to an SDI interface, and I've run into a whole new slew of issues of how to get objects to correctly interact with each other. Simply put, it made me question the logic behind MFC.

So I did some research on MFC and how it is basically falling out of favor in light of the newer paradigms such as .NET and even Qt. Since I'm at the point where I'm basically re-writing the program anyway, I've started to explore these options.

The pros of Qt seem to be very good. However, one thing I seriously have to avoid is reinventing the wheel because I am a one man team on this project at this point, and free code that is not GPL'd is significantly harder to come by for Qt. But, Qt looks like it would make a lot more sense to me with my programming history than MFC does.

I know very little about .NET, but from the bits that I've read, it may not have as much functionality built-in as MFC does. Qt has quite a bit of functionality already included. However, MFC has the recently-released Ultimate Toolbox/Grid/TCP/IP all of which has many useful classes that will significantly reduce my time to create a workable (and downright pretty) interface. I'm not sure how much of that stuff is covered in Qt.

Another issue is that I need a relatively powerful spreadsheet. It doesn't need formulas, and it doesn't need to be on an Excel-level, but it has to be very functional. I can only find one for Qt which is called QicsTable, and they describe it as aimed for super industrial-strength applications, and I'd imagine the price that goes with it is similar. Qt does have a table widget, although I'm not sure if it's powerful enough out of the box, or how easy it would be to program more complex cell types. It looks simple enough but I haven't tried it yet.

Also, the user base for Qt (and therefore knowledge available, sites to learn from, etc.) is obviously limited when compared to MFC or .NET. And it seems that learning each one of these APIs is like learning an entirely new programming language. I rely heavily on the internet to provide answers to my questions, because the MSDN is not anywhere near as good as ol' Turbo C++'s help files were. This would put me at a disadvantage with Qt.

So, I need to make a decision, and soon, on how I want to proceed with this. Another, far-off consideration I have to make is that I may need to hire additional coders, and I may be limiting my selection by using Qt.

In summation--

Qt pros: Appears to fit more with my programming style; has many GUI features out-of-box; multiplatform (although my primary userbase would be Windows without a doubt, so this is not a huge consideration); has the open-source community mentality to development.

Qt cons: I would have to learn a new API; of what freely available code there is, much of it is GPL'd and could not be used in a commercial application; less help and resources are available compared to MFC or .NET.

MFC pros: I've been learning it for some time now; many, many free to use code snippets, especially the Ultimate Toolbox/Grid.

MFC cons: It is an outdated API getting minimal support from MS; coding for it often seems like a chore to me because I have to spend hours figuring out how something that should be simple works, and the MSDN hasn't been all that helpful.

.NET pros/cons: I don't really know that much about .NET. But I can't imagine the pros would seriously outweigh the cons enough (I wouldn't be able to use any of those MFC tools, correct?) to switch.
C#: Same goes here, I just threw this wildcard out to see if someone had opinions on the subject.

Thanks for taking the time to read this; any and all comments are greatly appreciated.
QuestionCan we edit any item in CListCtrl? Pin
KASR116-Dec-07 19:34
KASR116-Dec-07 19:34 
AnswerRe: Can we edit any item in CListCtrl? Pin
Naveen16-Dec-07 19:51
Naveen16-Dec-07 19:51 
Generalabout inline asm jump a address table. Pin
HOW WHAT16-Dec-07 19:27
HOW WHAT16-Dec-07 19:27 
GeneralRe: about inline asm jump a address table. Pin
Mike Dimmick18-Dec-07 6:51
Mike Dimmick18-Dec-07 6:51 
GeneralCreateProcess(...) Error Pin
ashishbhatt16-Dec-07 18:48
ashishbhatt16-Dec-07 18:48 
GeneralRe: CreateProcess(...) Error Pin
Naveen16-Dec-07 18:59
Naveen16-Dec-07 18:59 
GeneralRe: CreateProcess(...) Error Pin
ashishbhatt16-Dec-07 21:47
ashishbhatt16-Dec-07 21:47 
GeneralCount words in Rich Edit Cintrol Pin
CodingLover16-Dec-07 18:05
CodingLover16-Dec-07 18:05 
NewsRe: Count words in Rich Edit Cintrol Pin
CodingLover16-Dec-07 19:50
CodingLover16-Dec-07 19:50 
GeneralRe: Count words in Rich Edit Cintrol Pin
Nelek16-Dec-07 22:28
protectorNelek16-Dec-07 22:28 
QuestionError Spawning rc.exe Pin
T.RATHA KRISHNAN16-Dec-07 17:52
T.RATHA KRISHNAN16-Dec-07 17:52 
GeneralRe: Error Spawning rc.exe Pin
Nibu babu thomas16-Dec-07 18:18
Nibu babu thomas16-Dec-07 18:18 
GeneralRe: Error Spawning rc.exe Pin
Naveen16-Dec-07 18:19
Naveen16-Dec-07 18:19 
QuestionRe: Error Spawning rc.exe Pin
T.RATHA KRISHNAN16-Dec-07 18:44
T.RATHA KRISHNAN16-Dec-07 18:44 
GeneralRe: Error Spawning rc.exe Pin
Naveen16-Dec-07 18:49
Naveen16-Dec-07 18:49 
QuestionRe: Error Spawning rc.exe Pin
T.RATHA KRISHNAN16-Dec-07 18:54
T.RATHA KRISHNAN16-Dec-07 18:54 
GeneralRe: Error Spawning rc.exe Pin
Naveen16-Dec-07 18:54
Naveen16-Dec-07 18:54 

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.