473,396 Members | 1,996 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,396 software developers and data experts.

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 2329
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.