PC Review


Reply
Thread Tools Rate Thread

Calling VB.Net Class File from Delphi

 
 
Three
Guest
Posts: n/a
 
      1st Apr 2004
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


 
Reply With Quote
 
 
 
 
Drakkhen
Guest
Posts: n/a
 
      1st Apr 2004
Can you use COM?


--
Drakkhen

http://michael.moreno.free.fr/


 
Reply With Quote
 
Bill McCarthy
Guest
Posts: n/a
 
      1st Apr 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      1st Apr 2004
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


 
Reply With Quote
 
Chris Dunaway
Guest
Posts: n/a
 
      1st Apr 2004
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.
 
Reply With Quote
 
Bob
Guest
Posts: n/a
 
      2nd Apr 2004
Ok, so how do I do that?


"Chris Dunaway" <dunawayc@_lunchmeat_sbcglobal.net> wrote in message
news:nmtz7saexqhy.hgnhjd19c3jr$.(E-Mail Removed)...
> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Delphi DLL from C# not passing integer correctly. silentbazz@googlemail.com Microsoft C# .NET 3 26th Nov 2008 08:02 PM
Calling a Delphi DLL kelvin.koogan@googlemail.com Microsoft VC .NET 5 1st Aug 2008 09:49 PM
Calling an Excel function from Delphi w/ OLE Tom Microsoft Excel Programming 4 27th Nov 2007 05:31 AM
Calling Delphi code from C# jewalsh2k@gmail.com Microsoft C# .NET 2 4th Jun 2006 05:39 AM
Calling Delphi DLL from inside C# Window program =?Utf-8?B?QVJUTUlD?= Microsoft C# .NET 1 20th Feb 2005 11:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:42 PM.