Z
Zeke
(VS 2005 Prof)
Please give me some help on how to use an activeX control. I have done the
following:
- created a dll with one class (Utils) which has functions
- imported the ActiveX with tlbimp <dll-path> /out:<cs_dll-path
- added a reference to the new cs dll (Projects, Add reference)
- added a "using" line to the dll.
I can see in intellisense that it is "working". I can also call the unction
which takes no parameters:
Utils ox = new Utils();
string cTest = ox.test();
The string cTest gets the proper value from the ActiveX control
When I try to use a function which takes one parameter I get the following
error:
"No overload method "method_name" which takes '1' arguments
Can you tell me what's lacking - obviuosly there's some difference in how to
use ActiveX functions which takes parameters and which don't.
Any help would be appreciated.
Please give me some help on how to use an activeX control. I have done the
following:
- created a dll with one class (Utils) which has functions
- imported the ActiveX with tlbimp <dll-path> /out:<cs_dll-path
- added a reference to the new cs dll (Projects, Add reference)
- added a "using" line to the dll.
I can see in intellisense that it is "working". I can also call the unction
which takes no parameters:
Utils ox = new Utils();
string cTest = ox.test();
The string cTest gets the proper value from the ActiveX control
When I try to use a function which takes one parameter I get the following
error:
"No overload method "method_name" which takes '1' arguments
Can you tell me what's lacking - obviuosly there's some difference in how to
use ActiveX functions which takes parameters and which don't.
Any help would be appreciated.