I have created an scientific calculator application and I have a VBS script that runs some of the files. I want to create a C program that runs that VBS script. I can do this pretty easily, however, a command window flashes before the application opens. This problem is very annoying.
So basically I need a short C (or C++) program that runs a VBS script without a command window popping up. I am on Windows 8 and my compiler is GCC/G++ under cygwin. Here is what I have now that DOES NOT work.
Code:
#include <windows.h>
int main()
{
ShellExecute( NULL, NULL, "StartUp.vbs", NULL, NULL, SW_HIDE);
return 0;
}