about launching external application

This is a discussion on about launching external application within the Windows Programming forums, part of the Platform Specific Boards category; > Why is it appearing? Your program is a console program, so it momentarily displays a console before disappearing > ...

  1. #16
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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

Page 2 of 2 FirstFirst 12
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, 08:05 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01: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

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