Re: From Console to WIn32 App



NewVisualUser wrote:
> Ok, here's the situation; I've been writing programs for
> quite a while and they have all been written on Borland.
> All my programs are then output (run) on the DOS prompt.
> I recently switched to Visual C++ in hopes of upgrading to
> having my programs run in a normal Window's window so I
> can make use of GUI in my programs.

You can make Windows GUI programs with any compiler/IDE. In
order to write any Windows program (console or GUI) you need
decent C compiler, linker and Platform SDK, which is
distributed by Microsoft free of charge.

Usually, compiler equipped with C Runtime Library (CRT) and
optionally other vendor proprietary libraries (like MFC,
ATL, OWL, etc..).

As Jochen Kalmbach already suggested, you can download
Express Edition of Visual C++ for free.

> I opened a new project of type 'Win32 Application'
> and then I chose 'A typical 'Hello World' application'.
> What I got was a lot of files, most
> of which I have no idea what they mean.

You need Win32 programming tutorial. Classic book for Win32
starters is Charles Petzold's "Programming Windows"
(http://www.charlespetzold.com/pw5/index.html). Do yourself
a favor and get it. It will save you a lot of time and
questions.

Also, you should decide for yourself what kind of Windows
programming you're interested in. Nowadays few people write
Windows programs using Win32 API directly. Because mordern
applications are big, complex and often required to
communicate with other applications. Doing all that in pure
Win32 is tedious and basically is nothing else than
reinventing the wheel. However, Win32 API knowledge is
invaluable.

Most of Windows programs today are written with help of some
library or framework. More and more programs are written
using .NET. So, knowlegde of Win32 API is diminishing though
still important.


.



Relevant Pages

  • Re: C runtime library for Win32
    ... I now wish to port it to Win32, so that I can create executables ... to run under Windows 98 command prompt where every byte ... If I just use gcc normally it will automatically ... link in GNU libraries. ...
    (comp.lang.c)
  • Re: Games made with BBC BASIC for Windows
    ... I do know what xlib is. ... This really shows your ignorance about plain Win32 API programming. ... C (and hence C libraries) may not be involved at all. ... which comes with every copy of Windows. ...
    (comp.sys.acorn.misc)
  • Re: Win32 TSR program skeleton
    ... under windows a "comsole" is just a thing used for display. ... are not avaible to Win32 apps, and are not created for Win32 console ... I need to write a TSR that does some periodical checks over another ... You should say that I can simple pipe the output to my app, but, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: I really do like OS X but . . .
    ... Win32 is just an environment, ... >Windows right now, would be from .NET or Java. ... >Microsoft took an excellent kernel like NT, ... Only Apple. ...
    (comp.sys.mac.advocacy)
  • Re: linux to windows porting help
    ... Presently i am working on win32 console applications. ... PostThreadMessage - for Message queue between process and its ... donn have any windows handle so unable to use these functions... ...
    (comp.programming)