We help IT Professionals succeed at work.

how can i load a dll at run time in delphi 2007 .NET

Soumini
Soumini asked
on
Medium Priority
317 Views
Last Modified: 2010-04-21
I am trying to create a common procedure to load any dll. How can I load a dll at run time in delphi 2007 .NET?
I can do in Delphi Win32 using LoadLibrary function. I need something similar. Please help
Comment
Watch Question

President
Commented:
Check out this link:

http://msdn2.microsoft.com/en-us/library/aa302340.aspx#win32map_dynamiclinklibraryfunctions

it shows the win32 function calls and how they map into .NET.  The appropriate call for LoadLibrary is System.Reflection.Assembly.Load.  I have checked and the call is supported in Delphi 2007 in a VCL.NET application.  Let me know if you need more.

Author

Commented:
Thanks