In a console program the path and program name (and suffix) is available in the argv array as argv[0]. How do I get this in windows? ???
GetCommandLine() and find first space (outside ").
Or use frankie's code from here (http://forum.pellesc.de/index.php?topic=6181.msg22673#msg22673)
Thanks timoVJL. I found where I had user GetModuleFileName in a program to get it. Have not tried GetCommandLine before.