ActiveX DLL and VB .NET

G

Guest

How do I create an ActiveX DLL using VB .NET.

I created a new Project "Class Library" type in VS .NET using VB .NET as
choosen language. I added simple class "Class 1"

Public Class Class1
Sub New()
End Sub

Public Function getString() As String
return "Testing"
End Function
End Class

I clicked on "Build", which created Project1.dll.

I went to Command Prompt and typed regsvr32 Project1.dll.

It failed. Reported me following error

Project1.dll was loaded, but the DllRegisterServer entry point was not found.
This file cannot be registered.

Can somebody explain how can I create ActiveXDLL using VB .NET. Your help
will be extremely appreciated.

Thanks
Mohit
 
V

Vadivel Kumar

Hi,

It doesn't work very well (as you've seen) and isn't supported, so I'd
advice against trying to use Winforms controls as ActiveX controls.

Cheers!
Vadivel Kumar
 
G

Guest

But that was not Winform Control. I might be wrong.

What is the right way to do it. Do you have any idea?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top