Console program to Win32

This is a discussion on Console program to Win32 within the Windows Programming forums, part of the Platform Specific Boards category; I started out learning Win32 with the idea to integrate my C++ console programs into a Win32 application. But now ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    812

    Console program to Win32

    I started out learning Win32 with the idea to integrate my C++ console programs
    into a Win32 application.
    But now i saw that you have Win32 functions corresponding to the same C++ functions.

    Does it mean that i have to rewrite every C++ console program to Win32?

    Thanks for clearing this up to me.
    Compiler MSVC++ 2013 with Code::Blocks.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,014
    I'm not sure what you mean? You can convert a project into Win32, if you change your function calls and such a little.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    812
    Well thats a good news already.
    Compiler MSVC++ 2013 with Code::Blocks.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,014
    You need to remember that writing to GUI isn't as simple as writing to console.
    Changing the subsystem from Console to Windows should convert your project to work with Win32. They use the same entry function.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. get the key stroke in Win32 Console Project
    By maxcat in forum Windows Programming
    Replies: 6
    Last Post: 04-05-2008, 06:53 PM
  2. C++ console program using Ms Visual Studio .NET
    By matheo917 in forum C++ Programming
    Replies: 4
    Last Post: 09-06-2002, 12:16 AM
  3. Text based frame in win32 console
    By GaPe in forum C Programming
    Replies: 8
    Last Post: 04-16-2002, 08:01 AM
  4. my first windows console program
    By Syneris in forum Windows Programming
    Replies: 3
    Last Post: 04-08-2002, 04:18 PM
  5. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM

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