Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 01-02-2004, 03:48 PM   #1 (permalink)
DarkTwilkitri
Registered User
 
Join Date: Feb 2003
Location: Australia
Posts: 21
DarkTwilkitri is on a distinguished road
Platform SDK vs. MFC

Hey, I've been thinking about learning C/C++. I would have assumed that MFC would be the way to go when making windows programs, since it's the later of the choices... however, I've read books (well, a book) which say it's better to use the Platform SDK.
Furthermore, after looking at simple code for them, MFC scares me There wasn't even a main() or WinMain(), and it ran... that just seems wrong, somehow...
DarkTwilkitri is offline   Reply With Quote
Old 01-08-2004, 08:29 AM   #2 (permalink)
ender
Code Monkey
 
ender's Avatar
 
Join Date: Mar 2003
Location: Evansville, IN
Posts: 75
ender is on a distinguished road
Send a message via AIM to ender Send a message via Yahoo to ender
If you want to learn C++, I suggest learning the langauge before jumping into any 'SDK'. Learn the basics. After that, the other stuff will come in naturally. There is nothing wrong with writing console based applications before jumping into windows programming, which is tough. Nothing beats a good base knowledge.

Furthermore, MFC 'could' be considered a SDK for windows. So, unless the SDK for this uses the win32api, I don't know what alternative M$ has out there, besides win32api and .NET.

My advise, go learn the basics, then go to windows programming.

Sorry if this is too long winded.

-Ted
__________________
while(1) fork();
ender is offline   Reply With Quote
Old 01-09-2004, 12:52 AM   #3 (permalink)
DarkTwilkitri
Registered User
 
Join Date: Feb 2003
Location: Australia
Posts: 21
DarkTwilkitri is on a distinguished road
By the Platform SDK I mean, for example to create a window first you fill in a window class structure, then RegisterClass it, then CreateWindow it, etc... which are all the functions in what the help calls the Platform SDK, as differentiated from MFC, where you derive classes from the base classes and then get them working through means which aren't apparent to me.

Thanks for your concern, but I already know that I have to learn the language fairly well before I should start doing windowed stuff . I was just wondering... I was actually advised by someone else that I shouldn't learn either of them, and I should wait until Longhorn comes out because it'll probably have a different API :/.

I know generic programming, in that I know how control structures et al work, from Java and Casio9850GB+, so mostly I need to learn the things which C/C++ have which they don't, such as pointers et al.

Heh... I'm not sure how you can call that long-winded.
DarkTwilkitri is offline   Reply With Quote
Old 03-15-2004, 02:31 PM   #4 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
MFC is nothing else than "(class) wrappers" for the win32api (win32 SDK).
This way using the most used win32api methods is easier and faster.

Secondly MFC uses a "Document/View" structure. This is called a framework. Before learning any framework one needs a decent understanding of c++ and OO.

MFC doesn't have a "int main()" indeed.
This is related to the framework (document/view architecture).
I.e. you need a Document to storre varaibles in it. You need a View to make things visible, etc.

Forget MFC I keep saying that. First C++ and OO. Then the serious work.
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to user Mono on Window platform mydotnet MS Technologies ( ASP, VB, C#, .NET ) 0 08-20-2004 05:47 PM
downloading the java sdk without the sun application server? sde Java 2 08-02-2004 07:53 AM
Java 2 SDK Rotkiv Java 8 05-02-2004 11:39 PM
MFC UpdateData(TRUE); sde Standard C, C++ 4 02-05-2003 06:12 PM


All times are GMT -8. The time now is 02:47 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting