Thread: Windows programming from scratch

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    329

    Question Windows programming from scratch

    Hi there.
    I downloaded a code example of this a few years ago, but i was too new to C to have any use of it...
    The example created a window derived from cobject if i remember it right, and did not use any of the existing headers(windows.h/mfc).
    Does anyone know of any examples on this or similar?
    Would be interesting...

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    They didn't include the windows.h ? I don't think it was a Win32 app then.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Check out MFC sections at CodeProject and CodeGuru.

    Kuphryn

  4. #4
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    Originally posted by kuphryn
    Check out MFC sections at CodeProject and CodeGuru.

    Kuphryn
    MFC! AH! It burns!!! AHHHH!!!!

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    hahahhaha

    Kuphryn

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Have a look at this. It is non-MFC.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #7
    Registered User
    Join Date
    Feb 2002
    Posts
    329

    Cool Windows program

    I am familiar with both MFC and createwindow, what i want, is an example on creating a window from basic code, NOT using MFC/windows.h...

    This includes creating events/detecting mouse actions painting, etc..

  8. #8
    Registered User
    Join Date
    Feb 2002
    Posts
    329

    Win32 app.

    Like mrWizard says, it might not be a win32 app..

  9. #9
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    technically you don't NEED windows.h. After all it is just declarations for the different windows dlls. You could load them and declare function pointers yourself. But you wouldn't.

    knutzo, if you're creating a window in the windows operating system, at some point you're using windows dlls which means the win32 api. No getting around it.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  10. #10
    Shadow12345
    Guest
    I still want to know how hard it was going from a character based environment to windows as we know it. I wonder what it would be like to do everything involved with the computer as we know it today. Starting before we knew about the concept of electricity. We have come so far with the computer that it is just mind boggling. I still don't exactly understand how the hard drive works. i mean I have a very good understanding of it, there are tiny spaces on the disc, each has some kind of a ferris metal, its polarity is changed as the emf from the arm is passed through it, a positive polarity is an 'on' bit, a negative polarity is an 'off' bit, no polarity is a damaged bit. once this is passed along through the wires to the processor it basically decodes the sequence into instructions. That, to me, is still only a general understanding, I want to know what it was like for the people that came up with this stuff the first time around. Then we began with simple 'systems' and eventually windows was produced. Now we have OOP with abstraction and that too shows how far along we have come along. There really is no such thing today as a low level programmer, it is always working with some kind of api or oo language and the lowest level you can get to is defining your own methods and stuff.
    Last edited by Shadow12345; 10-12-2002 at 10:58 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 08:05 AM
  2. Creating Windows App from Scratch
    By kingneb in forum C++ Programming
    Replies: 1
    Last Post: 11-10-2008, 06:21 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM