473,698 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using my vb.net library from COM

I have a vb.net assembly I need to make available as a COM object.
After some Googling, I found this site:
http://www.dnzone.com/ShowDetail.asp?NewsId=126
I followed the steps (substituting my application, class, and function
names) and got no errors during the process.

But now I try to access my library from vbscript, I get a "Can't create
object" error.
So I tried to register it with regsvr32 and get the error:
"DllRegisterSer ver entry point not found"

So something seems to have not gone right, but I don't know enough about COM
to see where. Here's a little sample code from the vb.net library. If anyone
has any ideas I'd be interested to hear them. Thanks!

Assembly code:

Namespace InetEZ
Public Class Util
Public Shared Function GetInfo()
Return "<descrip>M y function library</descrip><versio n>.5
Alpha</version>"
End Function
End Class
End Namespace

-------------------------------

vbscript:

Dim oX, x
Set oX=createobject ("InetEZ.Uti l")
x=oX.GetInfo("" )
MsgBox(x)
Set oX=Nothing
Nov 21 '05 #1
1 1141
Hi,

You need to register the class with regasm.exe to be able to use it
with com.
http://msdn.microsoft.com/library/de...lRegasmexe.asp

Ken
--------------------
"MattB" <so********@yah oo.com> wrote in message
news:2r******** *****@uni-berlin.de...
I have a vb.net assembly I need to make available as a COM object.
After some Googling, I found this site:
http://www.dnzone.com/ShowDetail.asp?NewsId=126
I followed the steps (substituting my application, class, and function
names) and got no errors during the process.

But now I try to access my library from vbscript, I get a "Can't create
object" error.
So I tried to register it with regsvr32 and get the error:
"DllRegisterSer ver entry point not found"

So something seems to have not gone right, but I don't know enough about COM
to see where. Here's a little sample code from the vb.net library. If anyone
has any ideas I'd be interested to hear them. Thanks!

Assembly code:

Namespace InetEZ
Public Class Util
Public Shared Function GetInfo()
Return "<descrip>M y function library</descrip><versio n>.5
Alpha</version>"
End Function
End Class
End Namespace

-------------------------------

vbscript:

Dim oX, x
Set oX=createobject ("InetEZ.Uti l")
x=oX.GetInfo("" )
MsgBox(x)
Set oX=Nothing

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6697
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft Visual Basic .NET version of this article, see 308049. For a Microsoft Visual C++ .NET version of this article, see 310071. For a Microsoft Visual J# .NET version of this article, see 320627. This article refers to the following Microsoft .NET...
3
395
by: Mr Sir | last post by:
Hello, My company is experimenting with adding VB.NET classes to currently existing VB 6 code. The idea is to gradually migrate to a purely object oriented solution. When I run the code in development environment it works fine - but when I sent the dll (NET) I created and the Interop.dlls along with the exe to be reviewed, the reviewer got an error "Could not create ActiveX control". I asked if he had registered them and it turned out...
0
2017
by: Richard Taylor | last post by:
User-Agent: OSXnews 2.07 Xref: number1.nntp.dca.giganews.com comp.lang.python:437315 Hi I am trying to use py2app (http://undefined.org/python/) to package a gnome-python application called gramps (http://www.gramps-project.org) for MAC OS X.
9
10896
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent the wheel, right? Everything so far is working well with the Active Directory. The problem I am having is with adding File Permissions to a directory. I am currently using some code courtesy of "Willy Denoyette "
2
1757
by: deepukutty | last post by:
Hi all, I know tht we can do tracing in two ways.one in application level and the other is at Page level. I am able to see the details of trace either on the page itself or .../trace.axd page. I want to use maximum out of the available trace details . or let me put it like this.... tell me the actual scenario's where these trace details will be use ful and
6
17017
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project as "Additional Dependencies" under Linker-Input options. Since those libraries are also in different directory, I specified that library path in project as "Additional Library Directories" under Linker-General options. This is where I see some...
6
4759
by: TS | last post by:
I cannot get this to work. I added an app.config to a project i reference from my web application project (vs 05) but can see no way to access the settings within it. the other thing is that I expected this config file (.dll.config) to get put in my web app's bin folder along with it's .dll file when i did a build, and that didnt' happen either. do I have access to the app.config in my project or is it worthless? If so why can i add...
18
2290
by: Angus | last post by:
Hello We have a lot of C++ code. And we need to now create a library which can be used from C and C++. Given that we have a lot of C++ code using classes how can we 'hide' the fact that it is C++ from C compilers? Can we have a C header file which uses the functionality of the C++ files and compile this into a lib file?
83
4198
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about it too? Once I saw a website comparing Prototype to Java and jQuery to Ruby... but now that I read more and more about Prototype, it is said that Prototype actually came from Ruby on Rails development and the creator of Prototype created it...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.