Results 1 to 14 of 14

Thread: mfc?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22
    what is better MFC or pure windows programming
    VB, C++

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    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.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22
    hmmmmmmmm... thanx .... but I am pure beginer what is best for me
    VB, C++

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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 refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22
    i'm a pure beginner to Windows programming with C++
    VB, C++

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

    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
    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

  7. #7
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    This site helped me alot getting started with C++ Window applications, I believe Dennis gave it to me.

    http://winprog.org/tutorial/
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  8. #8
    Guest
    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

    but I definatly do recomend you getting the PSDK, or at least getting the sections on CreateWindow, CreateWindowEx, and the window styles.


  9. #9

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22
    wow!
    Thanx
    you use dialog in rawdlg. So where is the diference betwen dialog and code-generated form.
    VB, C++

  10. #10
    Guest
    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.

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    Question

    is CreateWindowEx faster
    VB, C++

  12. #12
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  13. #13
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Speed-wise, there's very little between dialogues and CreateWindow[Ex].

    MFC is a lot slower, but is intrinsically based on dialogues.
    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

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    Talking

    Thanks.
    VB, C++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width