PDA

Click to See Complete Forum and Search --> : mfc?


DiEDa
Jan 28th, 2001, 01:48 PM
what is better MFC or pure windows programming

Vlatko
Jan 28th, 2001, 02:09 PM
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.

DiEDa
Jan 28th, 2001, 02:29 PM
hmmmmmmmm... thanx .... but I am pure beginer what is best for me

parksie
Jan 28th, 2001, 02:36 PM
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.

DiEDa
Jan 28th, 2001, 02:43 PM
i'm a pure beginner to Windows programming with C++

parksie
Jan 28th, 2001, 02:48 PM
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 :)

Jop
Jan 28th, 2001, 03:15 PM
This site helped me alot getting started with C++ Window applications, I believe Dennis gave it to me.

http://winprog.org/tutorial/

Jan 28th, 2001, 04:57 PM
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.

DiEDa
Jan 28th, 2001, 04:59 PM
wow!
Thanx
you use dialog in rawdlg. So where is the diference betwen dialog and code-generated form.

Jan 29th, 2001, 05:07 AM
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.

DiEDa
Jan 29th, 2001, 07:28 AM
is CreateWindowEx faster:)

Jop
Jan 29th, 2001, 09:28 AM
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!

parksie
Jan 29th, 2001, 01:30 PM
Speed-wise, there's very little between dialogues and CreateWindow[Ex].

MFC is a lot slower, but is intrinsically based on dialogues.

DiEDa
Jan 30th, 2001, 10:12 AM
Thanks.