External call to VB ActiveX exe function
Posted on 2004-04-14
I have a VB ActiveX exe that is composed of one Class module and two functions. The Class calls the two functions. It is to be called from some C language code and receive a string parameter.
When I run the C Language code, it is able to call a Standard exe, receiving the parameter and displaying the value in a messagebox. When I call the ActiveX exe, a DOS window appears briefly and disappears with no error visible. The class appears to run but doesn't display the window it is supposed to display.
The VB code is from a software vendor, so I am reluctant to change this. I would like to call this directly from the C code. I am thinking that the ActiveX exe doesn't know what code to run first.
The C code is:
strcpy(s_cmd, "Project1.exe ");
nResult = system(s_cmd);
I'm not really an expert in VB. Does it make sense to create a Standard exe to call the ActiveX exe. Any newbie links I can use to help me do this?