Hi

I am in desperate need of help, I need to manage an application dependency in Visual Studio. The application links to a DLL only on a specific version of windows, lets say Windows 7. and on other environments, the DLL should not be loaded. How will I be able to achieve that using DLL Delay Loading as this topic is completely new to me and there isn't any good references online for this particular matter.

Regards

Find out the version of windows that is running then call LoadLibrary() if its the version you want. But what about all those calls to DLL functions? Are you going to put if statements around all of those too ?

Well, That Shouldn't be a problem, since The DLL have a main entry point and once the DLL is loaded, there is no need to unload it until the Application terminates.

Thx for the reply man ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.