Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / June 2005

Tip: Looking for answers? Try searching our database.

Replacing DLLs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sami Lakka - 14 Jun 2005 12:26 GMT
Hi,

If I have an application that uses 3rd party libraries is there any
possibility to replace these 3rd party libraries (DLL) in my app without
making any changes to my source code? Basically I would wan't to perform
couple of operations in my own library and then delegate the processing to
the 3rd party library. I haven't used Windows DLLs before so this might be a
dump question :-)

Initial situation:
My_App ---> 3rd party lib

What I want:
My_App --> My_lib (with same interface as the 3rd party lib) --> 3rd party
lib
Jochen Kalmbach [MVP] - 14 Jun 2005 12:30 GMT
Hi Sami!
> If I have an application that uses 3rd party libraries is there any
> possibility to replace these 3rd party libraries (DLL) in my app without
> making any changes to my source code? Basically I would wan't to perform
> couple of operations in my own library and then delegate the processing to
> the 3rd party library. I haven't used Windows DLLs before so this might be a
> dump question :-)

Just implement the same interface / signature of each function.

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/

Sami Lakka - 14 Jun 2005 12:55 GMT
How do I then call the original library from my own DLL?

"Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach@holzma.de> kirjoitti
viestissä:Oqm9nRNcFHA.2420@TK2MSFTNGP15.phx.gbl...
> Hi Sami!
>> If I have an application that uses 3rd party libraries is there any
[quoted text clipped - 7 lines]
>
> Just implement the same interface / signature of each function.
Jochen Kalmbach [MVP] - 14 Jun 2005 13:10 GMT
Hi Sami!
> How do I then call the original library from my own DLL?

You either need to rename your DLL or the 3rd-party DLL.

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.