A
Aaron Heusser
I have encountered a problem using aximp (.NET 2003) and I
was wondering if anyone has any knowledge/experience with
this issue:
0) Create a simple ATL DLL (MyControl.dll) with an ActiveX
control in it (mine is a legacy ATL Composite Control).
1) Create a separate ATL DLL (MyInterface.dll) which
contains an IDispatch interface declaration in it
(IMyDISPInterface). importlib("MyInterface.tlb") and add
IMyDISPInterface support to the ActiveX object in
MyControl.dll.
2) Add a dispinterface declaration to MyInterface.dll
(IMyEventInterface). Add IMyEventInterface as the
[default, source] interface on the ActiveX control.
In this case, aximp reports the following
"AxImp Error: Object reference not set to an instance of
an object."
Additional point of interest: This problem does not occur
if the dispinterface is defined in MyControl.dll. It only
appears to be a problem when it is declared in a separate
TLB.
Any insight would be appreciated!
was wondering if anyone has any knowledge/experience with
this issue:
0) Create a simple ATL DLL (MyControl.dll) with an ActiveX
control in it (mine is a legacy ATL Composite Control).
1) Create a separate ATL DLL (MyInterface.dll) which
contains an IDispatch interface declaration in it
(IMyDISPInterface). importlib("MyInterface.tlb") and add
IMyDISPInterface support to the ActiveX object in
MyControl.dll.
2) Add a dispinterface declaration to MyInterface.dll
(IMyEventInterface). Add IMyEventInterface as the
[default, source] interface on the ActiveX control.
In this case, aximp reports the following
"AxImp Error: Object reference not set to an instance of
an object."
Additional point of interest: This problem does not occur
if the dispinterface is defined in MyControl.dll. It only
appears to be a problem when it is declared in a separate
TLB.
Any insight would be appreciated!