| RE: [aus-dotnet] DllImport |
- From: David Kean
- Subject: RE: [aus-dotnet] DllImport
- Date: Thu, 02 Dec 2004 10:14:52 +1100
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
There is no way to currently do it in the framework for 1.0, without calling WinApi, but it has been added to 2.0. Check this blog entry by Junfeng Zhang to see how to do it now: http://blogs.msdn.com/junfeng/archive/2004/07/14/181932.aspx -----Original Message----- From: dotnet-owner@xxxxxxxxxxx [mailto:dotnet-owner@xxxxxxxxxxx] On Behalf Of Stephen Sent: Thursday, 2 December 2004 10:10 AM To: DotNet Mailing List Subject: [aus-dotnet] DllImport I am trying to call functions in a C Dll using DllImport. When I hard code the path to the Dll - everything works fine. This is not ideal however, as each site might have the Dll in a different path. The problem is that DllImport expects a constant for the Dll/Path. Any ideas on how to pass this path variable to DllImport. Otherwise is there an alternative to DllImport? I have seen some exmaples of Win32.LoadLibraryEx but they only ever utilised the Win32 API so I am not certain of its functionality. Thanks S. -- Mercantile Systems http://www.mspl.com _________________ You are a part of the Australian "dotnet" mailing list. To unsubscribe send "unsubscribe dotnet" or to re-subscribe send "subscribe dotnet Your Name" in the body of the email to: imailsrv@xxxxxxxxxxx List managed by: http://www.stanski.com ##################################################################################### Attention: The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please inform us by email at postmaster@xxxxxxxxxxx and delete the material from any system. ##################################################################################### _________________ You are a part of the Australian "dotnet" mailing list. To unsubscribe send "unsubscribe dotnet" or to re-subscribe send "subscribe dotnet Your Name" in the body of the email to: imailsrv@xxxxxxxxxxx List managed by: http://www.stanski.com
(Click here for more information on the aus-dotnet mailling list)
- Prev by Date: Re: [aus-dotnet] ASP.NET Server Side Validation
- Next by Date: RE: [aus-dotnet] ASP.NET Server Side Validation
- Previous by thread: [aus-dotnet] DllImport
- Next by thread: [aus-dotnet] DllImport
- Index(es):
