By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

COM+ and dlls in VB .NET (urgent)

P: n/a
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

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <mr*******@hotmail.com> wrote in message
news:uZ**************@TK2MSFTNGP09.phx.gbl...
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


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.