View Poll Results: Which is better?
- Voters
- 27. You may not vote on this poll
-
Aug 23rd, 2001, 01:05 AM
#1
-
Aug 23rd, 2001, 01:10 AM
#2
Fanatic Member
Alcohol & calculus don't mix.
Never drink & derive.
-
Aug 23rd, 2001, 05:05 AM
#3
Frenzied Member
API is definetly better, faster but there are things that are real hell to be done just with the API. In these cases MFC is a better choise. Anyway i vote for API.
-
Aug 23rd, 2001, 06:19 AM
#4
MFC is far easier and faster to create, but once you get to some more complicated techniques, getting through to the API can be pain-in-the-ass (BTW can anybody eplain how subclassing in MFC works?)
I have voted for MFC, but I admit that API can sometimes be the better choice.
About speed, since mostly MFC apps are working apps written in C++, I don't think speed is all that much an issue. I still can't see any obvious delays.
-
Aug 23rd, 2001, 07:03 AM
#5
New Member
I am fairly new to Win32 programming in C++, but from what I can see, it seems like MFC is similar to the VB runtime. I could be way off base here, but don't you have to include special libraries with your app if you use MFC? Anway, I vote API.
-
Aug 23rd, 2001, 10:08 AM
#6
Monday Morning Lunatic
I vote for API, with my own SMALL static library (about 10K ) to make things easier.
Originally posted by CornedBee
MFC is far easier and faster to create, but once you get to some more complicated techniques, getting through to the API can be pain-in-the-ass (BTW can anybody eplain how subclassing in MFC works?)
I have voted for MFC, but I admit that API can sometimes be the better choice.
About speed, since mostly MFC apps are working apps written in C++, I don't think speed is all that much an issue. I still can't see any obvious delays.
CWnd::SubclassWindow I think.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 23rd, 2001, 11:39 AM
#7
Frenzied Member
I also vote the API, since it's more "powerfull" and you get rid of those annoying VB like runtime files
-
Aug 23rd, 2001, 11:49 AM
#8
I voted for the API, but if I was going to make something big, I'd probably use Borland VCL rather than MFC...
-
Aug 23rd, 2001, 02:00 PM
#9
So it's API then.
-
Aug 23rd, 2001, 02:01 PM
#10
I like API too, but I've heard many people say that when you work with C++ in real life, many compaines demand that you use MFC. Is this true? (I don't know because I've only used VB in the workplace).
-
Aug 23rd, 2001, 02:02 PM
#11
Monday Morning Lunatic
Probably because they didn't know how to write real programs and went for MFC and now they have to maintain it
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 23rd, 2001, 02:09 PM
#12
Hey Kitten, LOL. 
Anyway, I heard the MFC is full of asserts and slows down code drastically.
-
Aug 23rd, 2001, 02:11 PM
#13
Monday Morning Lunatic
I think all the ASSERT macros disappear when compiling in release mode.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 23rd, 2001, 02:34 PM
#14
Registered User
-
Aug 24th, 2001, 12:11 AM
#15
PowerPoster
I say API, but then again, everyone here scared me into not trying MFC.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Aug 24th, 2001, 12:56 AM
#16
Fanatic Member
Heh, me too
Alcohol & calculus don't mix.
Never drink & derive.
-
Aug 24th, 2001, 02:30 AM
#17
The ASSERT macros DO disappear in release versions.
Parksie: I know the function SubclassWindow, I just have no idea how to use it. Do I have to derive a class from CWnd that will handle the messages? How do I use CallWindowProc? It's so damn complicated that I want to use the API, but I need access to the variables of my CView, so I came up with the idea to use a static member function of my CView-derived class as the new message handler for the control. Is this possible???
About which programs are MFC, there's an easy way to find out. Use the WindowFinder tool and search all the windows and child windows of a program. If there is a single window class named Afx:xxxx (where xxxx are some numbers), the application is guaranteed to be created using MFC.
All the buzzt
CornedBee
-
Aug 24th, 2001, 06:35 AM
#18
Even if the ASSERTs disappear I still figure that API has a bit less overhead than MFC.
-
Aug 26th, 2001, 07:41 AM
#19
Lively Member
Fun
API is DEFINATLY more fun.....
But it IS annoying....
And coming from the VB world, MFC can be good sometimes.....
::uses API 99% of the time::
-
Aug 27th, 2001, 07:54 AM
#20
Junior Member
yeah api all the way
I had my programming style foistered on me by my lack of MSDN anyway, meaning the only thing I had was borland's win32.hlp. I suppose that's a good thing, judging by how crap everyone says MFC is.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|