473,320 Members | 2,003 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,320 software developers and data experts.

COM+ and dlls in VB .NET (urgent)

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

Jul 21 '05 #1
1 1360
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


Jul 21 '05 #2

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

Similar topics

1
by: Kelly G. | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution. Here is the complete issue: I building a MSI using Vs.net ,One of the Dll's is Vb Component ( A shim...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
7
by: Oenone | last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far. I have an ASP.NET application that relies on several DLLs to work. Currently in order to get my site working I have to put...
1
by: Reza | last post by:
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...
2
by: John Christopher | last post by:
Hi, Please any one help me in this issue. I need to access the DLL file created from C (or) C++ from PHP. You may write any extension or anything. Please if you can please send me an example...
0
by: Dave | last post by:
Hello The application I'm building an installer for uses dlls which were developed originally in C. Since the application itself is developed in C#, these dlls were wrapped using SWIG....
15
by: vermarajeev | last post by:
Hi Banfa also Everbody, I'm extremely in help with you guys. Please Please it is really urgent to me. Problem I have two modules in my project 1) CMBEDIT 2) SYNTHESIS_TOOL I have these...
2
by: =?Utf-8?B?c2hpdmE=?= | last post by:
Hi, I have some VC++ COM DLLs and want to reuse the same DLLs in C#.net application with Add Reference but I have a requirement for my application that therre should not be any DLLs for...
2
by: cj2 | last post by:
I had to add a reference to a com control / dll into my VB.net 2008 program. It didn't work as it should and I was given another version of the dll to replace it with. The dll had the same name....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.