how to get rid of the window console

In every CUDA SDK example, there is always a window console pop-up. At the end, when you you press ENTER, it will dispear. I don’t need this window in my new project, but don’t know how to take it off. I notice when I start debug, this window starts before my program went to Main().

Any idea is appreciated…

some ways:

  1. use lib with no console in your program.
  2. hidden the console use windows API.
    change the CUT_EXIT in your code.

link your program as a windows application and not a windows console application. You then need to provide WinMain instead of main. This is basic windows programming stuff, so you’ll probably find more information on it elsewhere on the net then in a CUDA specific forum.

Thank you all. WinMain works.