what is better MFC or pure windows programming
Printable View
what is better MFC or pure windows programming
Raw API is better. You don't have to distribute the MFCxx.DLL. It is a bit faster. MFC is less complex than raw API but it is not a huge difference.
I would definetely suugest using raw API.
hmmmmmmmm... thanx .... but I am pure beginer what is best for me
Pure beginner to C++ or pure beginner to Windows programming with C++?
If the former, then I would suggest learn console programs first...it really helps you get to grips with pointers, debugging and all sorts of other useful things.
If the latter, raw API is, as Vlatko says, the best option, since you can see EXACTLY what's happening, and it's not obscured behind layers of inheritance.
i'm a pure beginner to Windows programming with C++
Then in that case, get yourself a copy of the Platform SDK. You can download it from Microsoft's site, and the bits which are necessary for the basic Windows programming are only about 15MB - not too bad ;)
Also, here's some example code, hopefully the comments are understandable :eek:
http://www.parksie.net/Raw.zip
http://www.parksie.net/RawDlg.zip
If you need any more help there's people like Vlatko, Dennis Wrenn and myself around on the forums :)
This site helped me alot getting started with C++ Window applications, I believe Dennis gave it to me.
http://winprog.org/tutorial/
Wow, my name was mentioned twice in this thread... I'm so proud... ;)
the platform SDK is a great tool, but it didn't help me much with the basics of windows programming, but it did help me with controls, and window styles, and all that fun stuff :D
but I definatly do recomend you getting the PSDK, or at least getting the sections on CreateWindow, CreateWindowEx, and the window styles.
wow!
Thanx
you use dialog in rawdlg. So where is the diference betwen dialog and code-generated form.
I've only used a Dialog once, but I like the CreateWindowEx method better, I don't know why, it just makes it seem like you wrote the majority of the code rather than using microsofts resource file generator.
is CreateWindowEx faster:)
I think it is... at least it doesn't force you to ship a dll with your program, that's a good reason to me!
Speed-wise, there's very little between dialogues and CreateWindow[Ex].
MFC is a lot slower, but is intrinsically based on dialogues.
Thanks.