Click to See Complete Forum and Search --> : Hard coding dll location


Mik Bach
August 19th, 2001, 02:47 AM
I'm writing a simple image viewer program that I want to distribute across multiple platforms. It has three depentant dll files that are referenced some where in the compiling process. Can I hard code a module that loads these dll files or references them from a preset directory or do they have to be registered in the system registery? If I can, how would I code It?

kishk91
August 19th, 2001, 02:39 PM
You cannot do that if you insert the lib file of the dll's

you can only do that when using LoadLibrary, there you can force loading the dll from any directory you which.

Kishk

kishk91@hotmail.com
ICQ: 13610258

Mik Bach
August 19th, 2001, 09:46 PM
Thanks for the information. But, considering I'm not that advanced, would you mind sharing some code suggestions for using LoadLibrary?