renaming DLLs

Cableguy

Expert
Licensed User
Longtime User
OK this may sound stupid...

Imagine I rename a Library, before adding it to my app, and then add it to my app, will it run as usual?

The thing is, there are lots of software that tracks repeted files, and if we use the same lib in more than one app, wich HAVE to be in the same dir as the app itself, the user might be tempted to delete the file, and the app no longer runs...
 

WZSun

Member
Licensed User
Longtime User
HI,
I have tried renaming DLL to something like:

MyProject.exe
MyProject_d1.dll <- actually hardware.dll
MyProject_d2.dll <- whatever dll

It works. With the dll associated to your project, you need not worry about other applications overwriting your DLL, and this is especially true when your DLL is of latest version while the DLL that will be overwritten is of an earlier version.

The only observation I've made is you cannot rename the dll extension to something else, other than .dll. For example:

MyProject.exe
MyProject.001 <- hardware.dll
MyProject.002 <- other dll

It'd be great if dll filename/extension can be changed to anything..

Rgds
WZSun
 
Top