-3

I wounder if is possible to have in same exe silent and window mode, which could be defined via command parameters in c++?

tonni
  • 1,225
  • 4
  • 19
  • 35

2 Answers2

1

You could do this with a form-project if I am right. In this project you would have a sub main as starting file (same as in a console-project). In this sub main you could read out the parameters and decide if you want to open a form or to continue in the current sub. I developed this under VS2008.

^^ Oh sorry, this solution is only prooved in .Net (VB, C#). I don't know if it will work with C++...

etalon11
  • 895
  • 2
  • 13
  • 36
1

Sure. In fact, every Windows GUI program starts hidden until you actually call CreateWindow (directly or indirectly). No call, no window.

MSalters
  • 173,980
  • 10
  • 155
  • 350