I need to call a VB ActiveX exe from C Language and pass a parameter to the exe. I successfully called a simple vb exe with a messagebox that displayed the parameter using the following code.
strcpy(s_cmd, "Project1.exe ");
nResult = system(s_cmd);
I converted a VB ActiveX DLL project to a VB ActiveX Exe project in Project/Settings in Visual Basic. Then I recompiled the project to make the exe. There are three functions in the VB project. I'm wondering how the exe knows which function is the "main" function.
The simple messagebox exe that I created worked but the more difficult ActiveX exe flashes the DOS window and doesn't display the window that the VB ActiveX object was designed to do.
The application I am working with only accepts straight C code and not CPP code. Any ideas are very much appreciated. I've found nothing solid on google or microsoft.com yet. Everyone is more interested in cpp or c#.