COM+ and dlls in VB .NET (urgent)

R

Reza

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
 
K

Ken Tucker [MVP]

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/d...eropservicescomvisibleattributeclasstopic.asp

http://msdn.microsoft.com/library/d...ml/cpgrfassemblyregistrationtoolregasmexe.asp

Ken
-----------------
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top