Windows Compiling?

This is a discussion on Windows Compiling? within the C Programming forums, part of the General Programming Boards category; How would you compile C or C++ code to run within Windows and not DOS? I mean, how does Windows ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    21

    Windows Compiling?

    How would you compile C or C++ code to run within Windows and not DOS? I mean, how does Windows handle things like stdin and stdout? Anyone know where I could get info on where to begin with Windows programming?

    Also, I was wondering what language windowed programs are written in, like notepad or calc for example.

  2. #2
    Sebastiani
    Guest
    Well, let's be realistic. Windows is a topic that coud easily span several bookshelves. To address it properly is beyond the scope of this thread However, I will try to answer your very broad question just a bit. First of all, you must search the internet with words like "Windows tutorial" and "Windows programming", etc. You will find several good starter code.
    Windows can be written in several languages, none of which are "notepad" or "calc" either! The easiest and most MS-favoured is of course Visual Basic. C and C++ are the next runners up. Even assembly language (imagine that!). So really, any language that has a coresponding compiler that will generate the EXE/DLL/PE/ETC formats used on Windows machines.
    Windows does not at all function like a console app (well, I guess it depends on how you write console apps too though!) Again, the subject is broad, and since your question was unspecific, I shall answer unspecifically.

  3. #3
    tammo21
    Guest
    Yeah I figured it would span several bookshelves. Sheesh. So complicated. I will figure it all out though.

    So where do you suggest I go once I learn C++?

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    Are you refering to websites? If so, msdn.microsoft.com, Sunlight's tutorial, etc. If you mean career-wise, well there are so many things you can do, even start your own software company. But to be sure, focus on completely mastering the language first.

  5. #5
    Registered User
    Join Date
    Aug 2002
    Posts
    21
    not career wise or a website, just what language is next to learn after I learn C++? There's gotta be a specific order that they all fall into so that you don't start learning one that requires you to know something of another.

  6. #6
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    If you are using the Microsoft Operating System and have VC++6 than I do not recommend learning C++. The compiler is not able to handle Standard C++. If, however, you acquire VC++7 than you can learn Standard C++ and STL.

    Other than C++ you might be better off learning C#. Download the free SDK and go for it, or if you can't figure it out than get VS.net. The only problem is that it is very expensive. The .net language will teach you OOP. They are no match for Standard C++, however it is better than C++ on VC++6.

    If you use the Microsoft OS than you should follow the flow, or join the herd. It is not a research OS. The thing they are doing right now is VS.net. Learn about the .net framework. It isn't too terrible. It's okay, it's likely what you would want, knowing the mind of a beginner/intermediate. You will be writing windows apps in no time with C# and .net.

  7. #7
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    I'll tell you what, if you download the free .net framework SDK on the microsoft website, I'll show you step by step, how to start writing Windows Forms apps using C#.

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: Windows Compiling?

    Originally posted by tammo21
    How would you compile C or C++ code to run within Windows and not DOS?
    If you have a recent compiler, the exe outputted will be a standard PE executable. This is the format that windows uses for executables & dlls. The first part of this file acts like a dos prog (there's a mini dos prog there), and if you run the prog in DOS it will display a message like "This can only be run in windows"...or whatever....and then quit....

    When you run the program in windows, the windows loader knows to ignore this code and runs the prog as a windows exe....

    Originally posted by tammo21
    Anyone know where I could get info on where to begin with Windows programming?
    Ken Fitlike (from this board) has a nice Win32 page - here (thogh why he calls it foosyerdoos is beyond me )

    Originally posted by tammo21
    Also, I was wondering what language windowed programs are written in, like notepad or calc for example.
    Often C/C++ or Visual Basic or Delphi or any language that can produce the proper code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling for Windows on Linux
    By Tzu in forum C++ Programming
    Replies: 9
    Last Post: 08-20-2006, 10:08 AM
  2. Network Programming in C for Windows
    By m.mixon in forum C Programming
    Replies: 7
    Last Post: 06-19-2006, 08:27 PM
  3. Compiling for Windows CE
    By LiX in forum Windows Programming
    Replies: 1
    Last Post: 12-06-2004, 07:53 AM
  4. compiling gaim for windows
    By the Wookie in forum C++ Programming
    Replies: 8
    Last Post: 10-05-2003, 06:12 AM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM

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