C - including the <windows.h> header file

This is a discussion on C - including the <windows.h> header file within the C Programming forums, part of the General Programming Boards category; Hi! I'm new the forums and pretty rusty at programming. I learned C++ and Java in college and I haven't ...

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    2

    Question C - including the <windows.h> header file

    Hi! I'm new the forums and pretty rusty at programming. I learned C++ and Java in college and I haven't touched the stuff in about 8 years. Anyway, I really wanted to get my hands on C. I've been messing around using the Miracle C compiler/linker and have been wanting to make a window using C. I know that I need to include the windows.h header and whenever I try to compile it states that "Source code too big." In C do I just make a .c file or is it like C++ where I have to make seperate .h, .cpp, etc. files and compile them all together? I apologize for sounding like such a noob, but I'm kinda stuck here if I can't include the mandatory windows.h file

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    Yeah, messing about is about all you can do with Miracle C. It's a toy compared to everything else which is available.

    Get a real compiler, say Dev-C++ or Visual studio express.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    2
    Quote Originally Posted by Salem View Post
    Yeah, messing about is about all you can do with Miracle C. It's a toy compared to everything else which is available.

    Get a real compiler, say Dev-C++ or Visual studio express.

    Ok, thanks. I had no idea I could use a C++ compiler to compile/link C source code.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    The usual trick is to name your files say prog.c rather than prog.cpp.

    Once you get past the default, then choose "save as...", it should be plain sailing.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  3. Including headers in a header file
    By tjpanda in forum C++ Programming
    Replies: 3
    Last Post: 09-22-2008, 08:48 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Replies: 6
    Last Post: 04-02-2002, 04:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21