473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP.Net equivalent for LoadLibrary/GetProcAddress

I am using C# to write a web service, which relies on some underlying
functionality in a third party DLL. I have been reliably informed that I
should not use static binding to the DLL as this will be unstable in a
multi-threaded environment, however I cannot seem to find the replacement
for LoadLibrary and GetProcAddress to access the DLL dynamically.

Can anyone give me a hint as to how this should be done for an ASP.Net web
service
solution in C# or VisualBasic?

Thanks in advance
Craig
Nov 18 '05 #1
1 3463
Hi Craig:

Do a search for PInvoke in the help files. (I'm assuming this is an
unmanaged (non .NET) DLL).

Your reliable source of information doesn't make sense. How you link
to a DLL, either implicitly with imports or explicitly with
LoadLibrary has no impact on the stability in an MT environment - so
don't make extra work for yourself based on this information till you
follow up a a bit more.

HTH,

--
Scott
http://www.OdeToCode.com
On Tue, 27 Jan 2004 09:07:09 GMT, "Craig Dunstan"
<cdunstan(remove)@bigpond.net.au> wrote:
I am using C# to write a web service, which relies on some underlying
functionality in a third party DLL. I have been reliably informed that I
should not use static binding to the DLL as this will be unstable in a
multi-threaded environment, however I cannot seem to find the replacement
for LoadLibrary and GetProcAddress to access the DLL dynamically.

Can anyone give me a hint as to how this should be done for an ASP.Net web
service
solution in C# or VisualBasic?

Thanks in advance
Craig


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Siegfried Heintze | last post by:
I have some C functions I need to expose as XML web services. My original plan was to deply an XML Web service in C# and use P/Invoke to call my C functions. This is not working because the web...
8
by: one2001boy | last post by:
Hello, I can use call a function with any arugment from LoadLibrary(), but not a function with argument of "FILE*. For example, I can build a .DLL dynamically loaded library with option /DDD...
8
by: ATS | last post by:
HOWTO Implement LoadLibrary\GetProcAdrress\FreeLibrary in C# Please help, I want to fully implement LoadLibrary\GetProcAdrress\FreeLibrary in C#, and be able to call functions that I use...
3
by: ATS | last post by:
HOWTO Implement LoadLibrary, GetProcAdress, and FreeLibrary. Below is code that I want to be able to use simple LoadLibrary\GetProcAddress\FreeLibrary technqiues on. I've used the code that was...
3
by: Michael Tissington | last post by:
I'm using LoadLibrary to import a DLL in a asp.net application. The dll was written in c++ and is located in the bin folder I have been testing the website on my development machine and our...
1
by: Siegfried Heintze | last post by:
I have some C functions I need to expose as XML web services. My original plan was to deply an XML Web service in C# or VB and use P/Invoke to call my C functions. This is not working because the...
2
by: Bit byte | last post by:
I am writing an application that requires me to load a (Win32 C) libray and then register several call back functions. I am loading the libary in a worker thread and then registering functions...
11
by: Sean M. DonCarlos | last post by:
I have an unmanaged Win32 app that looks up the name of a DLL (unknown at compile time) from an external location, loads it with LoadLibrary, and then uses GetProcAddress on three exported...
4
by: Peter Morris | last post by:
I have a class named DynamicLinkLibrary which does this: private static extern IntPtr LoadLibrary(string fileName); protected virtual void Load(string fileName) { EnsureNotDisposed(); if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.