Thread: about launching external application

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > Why is it appearing?
    Your program is a console program, so it momentarily displays a console before disappearing

    > Any hints how to fix this?
    Make it a GUI program.
    GUI programs begin at WinMain(), not main()
    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.

  2. #17
    Registered User
    Join Date
    Jan 2009
    Posts
    8

    Got it working

    huh huh, When I was learning about native c++ I thought main function is the only one constant in program but obviously it isnīt.

    1st I tried longer version:

    int wmain(int argc, wchar_t* argv[ ], wchar_t* envp[ ])

    then just

    int wmain ()

    and thatīs it, now itīs native windows program...live and learn..

    thanx again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Position mouse in external application
    By keira in forum C# Programming
    Replies: 1
    Last Post: 09-15-2008, 07:05 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM