By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,681 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,681 IT Pros & Developers. It's quick & easy.

Help: using an ActiveX DLL with VS .Net

P: n/a
I have a 3rd party application API that I have been using, which all
works in VB6. I have upgraded to Visual Studio .Net 2003, and am
struggling to get it to work. What I did was:

VB6: (This works fine)
Create an ActiveX DLL project.
Refer to the API's .tlb file.
Use the Implements statement to use the API's interface.
Register the DLL with RegServ32.
From within the 3rd party app, refer to my functionality with
DLLName.ClassName.

VS 2003 .Net: (This doesn't work)
Create a VB Control Library DLL.
Refer to the API's .dll file.
Use the Implements statement to use the API's interface.
I get an error that the entry point could not be found if I try to
register with RegServ32; I beleive this is because I shouldn't be
trying to register it.
I get no response when I refer to my functionailty within the 3rd
party app.

I have not yet got the procedural differences between COM and .Net, so
I have seen reference to using gacutil.exe to registering my assembly,
but when I do that, I get told that it doens't have a strong name, so
then I start looking at sn.exe ...

Can anyone help me with an outline of the process I should be
following?
Nov 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cam
I'm not quite sure what you're trying to do ... are you trying to call a
third party COM component from your .NET code, or trying to call a .NET
assembly from COM code?

Nov 22 '05 #2

P: n/a
Nick.... If you are trying to call methods in a COM dll you may be able
to use
COM Interop.

http://www.geocities.com/jeff_louie/...op/atl_com.htm

Regards,
Jeff
I have not yet got the procedural differences between COM and .Net<


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #3

P: n/a
Hi Cam, I am trying to call a .net assembly from my .net code.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #4

P: n/a
Hi Jeff, thanks for that. I think it will work, but when I tried it I
got a compiler message telling me that a dependant dll was missing; when
I looked with depend.exe, I found that a dll referred to in the 3rd
party assembly was missing. I have contacted them about this but have
received no solution as yet ...

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.