473,387 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help: using an ActiveX DLL with VS .Net

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
4 1419
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ted | last post by:
I'm using a 3rd party ActiveX control which has it's own constructor and two very methods (which ultimately sends out messages on the server's USB or serial port). I am trying to run this ActiveX...
1
by: Ted | last post by:
I have written two almost identical applications: (a) .NET C# console application which calls an ActiveX object (accessible using blah.exe) (b) ASP.NET C# application which calls an ActiveX object...
1
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view...
2
by: Tor | last post by:
Hi I'm used to work with Acc. 2000 and Xp. I'm having a little trouble on how to include activex components in my setup package. Eksample. I wan't to deploy a database with the activex component...
1
by: Alessio Brizi | last post by:
I don't know if this is the right place for this post. I am developing a Web Application (e-learning platform) with ASP.NET and C#. To be SCORM compliant I need to place an object in the DOM of...
2
by: Amith | last post by:
Hi, I am using an ActiveX created using delphi. It has a font property exposed. The font property is of type IFontDisp in the server(delphi). The font properties like Size, Bold, Underline etc...
4
by: Sachin_M | last post by:
Hi Friends, I've developed an activeX control (.ocx) using VB 6.0 it has two Public functions, which chages some values of text boxes of the control. Fun1(int a) Fun2() How to use this...
1
by: Sreejumon [MVP] | last post by:
Hi, If you want to use the activex controls in your asp.net page, you ahev to use the single aprtment thread model. For that please add the "aspcompat=true" attribute the page directive. Let...
7
by: Rob T | last post by:
I'm hoping someone can point me in the right direction...I've been picking through MSDN all day and I'm more confused now what I was when I started this! Hopefully I have the right terminology.......
2
by: Bob Hanson | last post by:
Hello, I first have a working embedded ActiveX control in a HTML page that has PARAM NAME statements in it. I am looking for help on how to pass these parameter strings to the HTML page...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.