PC Review


Reply
Thread Tools Rate Thread

COM+ and dlls in VB .NET (urgent)

 
 
Reza
Guest
Posts: n/a
 
      22nd Jul 2004
This looked pretty simple to me at first, and perhaps it still is, but I
havnt been able to find out just what the trick is.

Basically the aim is to compile a dll from VB .NET, which can be read using
previously written Java code (or anywhere else) which reads and executes the
methods within the dll, im using rundll32 (in system32 folder), or PE
Explorer to test whether this is working, however, I cannot manage to expose
any of the methods within the VB code to the outside world. (They are easily
made visable to other .NET applications by adding as references, so this is
not the problem, its seeing them from outside .NET which is the where I've
had no luck)

The code can be anything, I just need to see how to create this sort of DLL
in VB .NET

I have already tried to register the DLL for COM Interop.

Can anybody help me? I need this done asap, so any help would be
appreciated.

Many Thanks.

Reza



 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      22nd Jul 2004
Hi,

Make sure the class is set to be com visible. Use regasm.exe to
register the dll for com interop.

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...lregasmexe.asp

Ken
-----------------
"Reza" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
This looked pretty simple to me at first, and perhaps it still is, but I
havnt been able to find out just what the trick is.

Basically the aim is to compile a dll from VB .NET, which can be read using
previously written Java code (or anywhere else) which reads and executes the
methods within the dll, im using rundll32 (in system32 folder), or PE
Explorer to test whether this is working, however, I cannot manage to expose
any of the methods within the VB code to the outside world. (They are easily
made visable to other .NET applications by adding as references, so this is
not the problem, its seeing them from outside .NET which is the where I've
had no luck)

The code can be anything, I just need to see how to create this sort of DLL
in VB .NET

I have already tried to register the DLL for COM Interop.

Can anybody help me? I need this done asap, so any help would be
appreciated.

Many Thanks.

Reza




 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registering DLLs - Unmanaged and Managed DLLs gopal Microsoft C# .NET 3 28th Aug 2006 04:32 PM
Confirm Email Address in Form (UNGENT, URGENT, URGENT) =?Utf-8?B?TWljaGVsbGU=?= Microsoft Frontpage 7 3rd Dec 2005 09:59 AM
Shared DLLs from Compact Framework drag unneccessary DLLs =?Utf-8?B?R2FyeSBWYXJnYQ==?= Microsoft Dot NET 1 31st Jan 2005 01:17 PM
Missing Language DLLs - Urgent Help Requested Mable Microsoft Access 3 19th Aug 2004 05:25 PM
COM+ and dlls in VB .NET (urgent) Reza Microsoft VB .NET 1 22nd Jul 2004 05:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:20 PM.