473,387 Members | 1,798 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.

Create COM object library from VB.net Express

I am trying to create a COM object library that is language independent. So that other developer can use it in orther developing environment like VB 6.0 or C++, it can be built successfully, however, when I try to add it to VB project, it does not allowed to add. The err msg is "Can't add a reference to the specified file". Can anyone help? Thanks a lot.
The code in VB.net Express like the following:


Imports System.Runtime.InteropServices
Namespace CustomerCare
<Guid("89439AD1-756F-4f9c-BFB4-18166F63251E"), _
InterfaceType(ComInterfaceType.InterfaceIsIUnknown )> _
Public Interface _ProcessOrder
Function ItemOnHold(ByVal productName As String) As Boolean
End Interface

<Microsoft.VisualBasic.ComClass _
(ProcessOrder.ClassId, ProcessOrder.InterfaceId, ProcessOrder.EventsId)> Public Class ProcessOrder
Implements _ProcessOrder
<System.Runtime.InteropServices.DispId(1)> Public Const ClassId As String = "B3B00A18-039A-4cbe-8B4D-40F15E5F0A71"
Public Const InterfaceId As String = "F831AEAB-7EE8-4205-9980-03EC015CBD66"
Public Const EventsId As String = "83FD389B-55E6-4abb-AB8B-EB3434F53365"
Private daysPreserved As Integer
Private prodID As String
Function ItemOnHold(ByVal productName As String) As boolean Implements _ProcessOrder.hasLicense
'detailed implementation here

End Function
'other functions ....


Public Sub New(ByVal daysPresv As Integer)
MyBase.New()
daysPreserved = daysPresv
End Sub
End Class
End Namespace
Sep 7 '06 #1
0 2656

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
6
by: Jim Butler | last post by:
Currently we are having to do an iisreset to update a gac component on a web server. Just removing it from the gac and re-adding it does not update the code executing on the server. This is not...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
4
by: Manu | last post by:
I would like to create a database for my application when it is deployed. This database can be from different types depending on the tool installed on the customer computer and will be chosen...
1
by: Daylor | last post by:
hi. i have application with 2 appdomains. i want keep my remote object always alive. how can i do that ? have a nice day.
11
by: mesut demir | last post by:
Hi All, When I create fields (in files) I need assign a data type like char, varchar, money etc. I have some questions about the data types when you create fields in a file. What is the...
7
by: Martin | last post by:
Hello Does anyone know if it is possible to use the smo db.Create() method to create a new sql server database with sql server 2005 express? The debugger complains that remote operations are not...
4
by: cj | last post by:
Here's what I'm trying to do direct from MS (Create a Database) http://msdn2.microsoft.com/en-us/library/ms247254(VS.80).aspx Only I have VS 2005 Pro instead of Visual Web Developer. I do have...
3
by: Med | last post by:
Hi, I use Visual C# Express 2005 and Visual Web Developer Express 2005. In my Visual C# Express 2005 Solution, I have following two class library projects: _ DataAccess (Namespace name:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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,...
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.