Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using a .Net assembly in Delphi Win32

177 views
Skip to first unread message

Tom Woods

unread,
May 18, 2007, 12:44:18 PM5/18/07
to
I've received a dll from a vendor that I need to incorporate into Delphi 5
or 7. All I know is the dll was created in Visual Studio .Net.

I've tried to create a TLB file by using the TLBEXP utility that comes with
Visual Studio. I then try and import the TLB file. In the pas file, there
are no variables, methods or classes. I'm at a loss on how to handle this
dll.

I've also tried to add the resource (dll) into Delphi 2005, but only receive
errors.

I'm willing to post the dll if someone can make heads or tails from it. I
feel like I'm working with a black box!

Any help would be appreciated.

Thanks,
Tom


Tom Woods

unread,
May 18, 2007, 4:59:45 PM5/18/07
to
I'm getting a little closer (I hope!)

I've created a package, but it contains the following:

requires
vcl50,
ManagedVCL50;

What is ManagedVCL50?

Thanks,
Tom

"Tom Woods" <two...@jamesbaker.com> wrote in message
news:464dd7e1$1...@newsgroups.borland.com...

Vassiliev V. V.

unread,
May 19, 2007, 2:43:08 AM5/19/07
to
Managed VCL is component library to work with .Net assemblies from Delphi
Win32, it is commercial library available from http://www.managed-vcl.com .

At first you should determine is it .Net assembly or COM library or simple
dll. If you have Visual Studio, start it and select View\Object Browser in
menu; then try to load your dll. If you have no Visual Studio, use
Reflector.Net from http://www.aisto.com/roeder/dotnet/ .

If it is .Net assembly, you can use standard interop (register this assembly
with regasm.exe that is in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
(adjust Windows directory and .Net version), or you can use Managed VCL that
will work without register assembly for COM and has much more features than
simple interop.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)


"Tom Woods" <two...@jamesbaker.com> сообщил/сообщила в новостях следующее:
news:464e13c3$1...@newsgroups.borland.com...

Vassiliev V. V.

unread,
May 22, 2007, 5:03:36 PM5/22/07
to
I can not answer to your email - return address is invalid.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)


"Tom Woods" <two...@jamesbaker.com> сообщил/сообщила в новостях следующее:
news:464e13c3$1...@newsgroups.borland.com...

0 new messages