Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Answering your (original) questions one by one:</p> <hr> <p><strong>1/ Will anyone tell me what Win32 is?</strong></p> <p>Win32 is the application programming interface (API) for Windows. Specifically, it's for 32-bit Windows and beyond since the old API was for the primarily 16-bit versions of Windows, Windows ME and before.</p> <p><em>Aside: I'm pretty certain Microsoft may want to forget ME ever existed and just rewrite the history books to say that they went straight from Win98 to Win2k; something they'll probably also want to do with another of their products: "Vista, what Vista? All we know about is Windows XP and Windows 7"</em>. :-)</p> <p>The first Windows version to fully support Win32 was Windows NT.</p> <p>The API is the set of calls you are permitted to make. For Windows, it includes such things as window creation and manipulation, multi-threading, graphics drawing, text rendering and so on. Basically it's how your program interfaces to the Windows operating system to get things done.</p> <p>Companies publish their APIs so that clients can do useful things with them. There are other ways to get the products to do things but these are generally known as undocumented features and, while a good company will go out of its way to ensure later versions of the API don't break your code, the use of undocumented features is not their problem. Use them at your own peril.</p> <hr> <p><strong>2/ How to I compile and execute c++ program in win32?</strong></p> <p>To do that, you'll need a compiler. Popular choices are Microsoft Visual C++ (you can get the Visual Express edition for free from Microsoft), CygWin or MinGW (the minimalist GNU for Windows). Search Google for "free c++ compilers for windows".</p> <p>A compiler takes C++ source code and turns it into executable code, able to be run on the target system (Windows in this case).</p> <p>Once you have an executable, you run it as you would any other program. If you create the executable <code>do_something.exe</code> in your path, just type <code>do_something</code> from a command line.</p> <p>The compilers don't restrict you to just command line tools, they also allow you to create full-blown graphical applications so you can just double-click on the executable in File Manager, or make an associated file type to run the executable automatically for specific file types.</p> <hr> <p><strong>3/ How do I debug in win32 with c++ program?</strong></p> <p>The Visual C++ integrated development environment (IDE) has the compiler and a debugger included in it. Debugging is relatively painless as you can simply step through each line of the program and examine its behaviour. Other environment such as MinGW and CygWin have command-line debuggers which are not as closely aligned to Windows as Visual C++.</p> <p>But I have to admit, I sometimes still find myself debugging by inserting <code>printf</code> statements in my code and recompiling. Old habits die hard.</p> <hr> <p><strong>4/ What other things do I have to know while I am writing c++ program in win32?</strong></p> <p>I hardly know where to begin. You have a long (but hopefully enjoyable) journey in front of you. It might be wise to check back here with other specific questions once you have organised to install a compiler and have tried to get your first program compiled and running.</p> <p>Best of luck.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload