Calling VB.Net Class File from Delphi

T

Three

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
 
B

Bill McCarthy

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
 
C

Chris Dunaway

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.
 
B

Bob

Ok, so how do I do that?


Chris Dunaway said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top