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

ActiveX DLL and VB .NET

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Mohit Gupta" <Mo********@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
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

Nov 19 '05 #2

P: n/a
But that was not Winform Control. I might be wrong.

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

"Vadivel Kumar" wrote:
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

"Mohit Gupta" <Mo********@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
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


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.