473,326 Members | 2,124 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,326 software developers and data experts.

ActiveX DLL and VB .NET

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

Similar topics

8
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I...
1
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
6
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
4
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.