Hi all,
I am developing in VS.NET2005 and wrote an activex (OCX) component in C++.
I created a new VB application, and added the following to the Form1_Load function:
Dim x as AxMyControlNameLib.AxMyControlClass
x = new AxMyControlNameLib.AxMyControlClass
x.TestFunction()
The control is created perfectly and works in its own right but I get a "Catastrophic Error" on the line where I try to access the member function TestFunction.
In the control's cpp file's dispatch map I added:
DISP_FUNCTION_ID(CMyDialog,"TestFunction",1,TestFunction,VT_EMPTY,VTS_NONE)
and in the idl file (in the dispinterface _DMyControlClass code block) I added:
[id(1)] void TestFunction();
Please point me in the right direction. I have been searching forever online trying to figure this out.
Thanks in advance
G
I am developing in VS.NET2005 and wrote an activex (OCX) component in C++.
I created a new VB application, and added the following to the Form1_Load function:
Dim x as AxMyControlNameLib.AxMyControlClass
x = new AxMyControlNameLib.AxMyControlClass
x.TestFunction()
The control is created perfectly and works in its own right but I get a "Catastrophic Error" on the line where I try to access the member function TestFunction.
In the control's cpp file's dispatch map I added:
DISP_FUNCTION_ID(CMyDialog,"TestFunction",1,TestFunction,VT_EMPTY,VTS_NONE)
and in the idl file (in the dispinterface _DMyControlClass code block) I added:
[id(1)] void TestFunction();
Please point me in the right direction. I have been searching forever online trying to figure this out.
Thanks in advance
G