473,473 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Calling VB.Net Class File from Delphi

Hi there,

I have to integrate a .Net application into a Delphi application somehow.
The simplest method is to get the Delphi app to call a .Net console app,
however it would be better for various reasons if I could make the .Net side
a DLL and this is what I am wondering about.

Is there any way to call a VB.Net Class project from a Delphi application? I
seem to recall there is a way to call a .Net DLL from VB6 but vague on
details (or imagining things) and not sure if this would also make it usable
from Delphi.

Any help appreciated...

Cheers
Nov 20 '05 #1
5 2334
Can you use COM?
--
Drakkhen

http://michael.moreno.free.fr/
Nov 20 '05 #2
Hi Three,

The .NET class is only callable from .NET code, unless the class exposes COM
interfaces, then you can access it from COM applications. If you can't modify
the existing classes and they do not expose COM interfaces, you could always
write a .NET wrapper that does expose the COM interfaces and passes calls
through to the .NET classes. Alternatively, if you are using Delphi, you could
try using Delphi for .NET.
Bill


"Three" <3@three.com> wrote in message
news:eK*************@TK2MSFTNGP09.phx.gbl...
Hi there,

I have to integrate a .Net application into a Delphi application somehow.
The simplest method is to get the Delphi app to call a .Net console app,
however it would be better for various reasons if I could make the .Net side
a DLL and this is what I am wondering about.

Is there any way to call a VB.Net Class project from a Delphi application? I
seem to recall there is a way to call a .Net DLL from VB6 but vague on
details (or imagining things) and not sure if this would also make it usable
from Delphi.

Any help appreciated...

Cheers

Nov 20 '05 #3
Cor
Hi Three,

Kudzu is busy with .Net he seems to be a very knowledged person in delphi it
seems.

Here is his website.

http://www.hower.org/Kudzu/

I hope this helps

Cor
Nov 20 '05 #4
On Thu, 1 Apr 2004 19:17:02 +1000, Three wrote:
Hi there,

I have to integrate a .Net application into a Delphi application somehow.

Is there any way to call a VB.Net Class project from a Delphi application? I


AFAIK, if your not talking about Delphi.Net which is the new version, you
will have to expose your .Net classes as COM objects and import them into
Delphi that way. The new version of Delphi is fully .Net compatible so you
should be able to use any .net assembly with it.
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #5
Bob
Ok, so how do I do that?
"Chris Dunaway" <dunawayc@_lunchmeat_sbcglobal.net> wrote in message
news:nm****************************@40tude.net...
On Thu, 1 Apr 2004 19:17:02 +1000, Three wrote:
Hi there,

I have to integrate a .Net application into a Delphi application somehow.
Is there any way to call a VB.Net Class project from a Delphi
application? I
AFAIK, if your not talking about Delphi.Net which is the new version, you
will have to expose your .Net classes as COM objects and import them into
Delphi that way. The new version of Delphi is fully .Net compatible so you should be able to use any .net assembly with it.
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.

Nov 20 '05 #6

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

Similar topics

12
by: kevininstructor | last post by:
Hello, I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi and web...
1
by: ARTMIC | last post by:
Hello, could someone please help me out, i'm trying to call a Delphi 6.0 custom DLL from inside of a C# windows project. what am i doing wrong? i use the following declaration: public class...
3
by: David Lozzi | last post by:
Howdy, I've discovered how to create and use a class in ASP.NET. However, when is the best time to use a class? For example, I am currently using session variables to store user information (user...
4
by: Three | last post by:
Hi there, I have to integrate a .Net application into a Delphi application somehow. The simplest method is to get the Delphi app to call a .Net console app, however it would be better for...
2
by: Prabhat | last post by:
Hello ALL, I have ASP pages that calls some ISAPI dll that created using Delphi for generating reports. The report page opens fine for 1st time when invoked but next time i get error like "Name...
2
by: jewalsh2k | last post by:
Hi, I have a delphi dll which I am trying to call from C# but something isn't working, I get an SEHException thrown by the dll but I don't get enough info to debug it. I can't change the dll...
5
by: kelvin.koogan | last post by:
How can I call a function in a Delphi DLL from C++/CLI? The Delphi function is declared as follows: function Func1(IsDsb: Boolean; FirstStr, SecondStr : String): String; I've tried ...
0
by: BornTOCode | last post by:
Hello, I am attempting to call a (Delphi) win32 DLL from a Delphi.Net webservice. I am using a slightly modified version of the hello world webservice that comes with Delphi 2006. The DLL...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.