DLL created in PB has Paurebasic.DLL name

Just starting out? Need help? Post your questions and find answers here.
Jose
User
User
Posts: 34
Joined: Sat Apr 26, 2003 9:20 pm

DLL created in PB has Paurebasic.DLL name

Post by Jose »

Hi,

When you create a DLL, with editor or command line, the resulting DLL file will be called what you specify as the output file;

sampledll.pb -> sampledll.dll

Up to this point all is OK;

If you look inside the DLL file with a Hex editor, and search for "PureBasic.DLL" you will find this string inside the DLL file.

My questions is;

1) can we rename this string
2) how can one create a DLL which has the correct name, the name of the file (in my case sampledll.dll) instead of "PureBasic.DLL"

Any one know what to do, FRED?

Thanks
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

Maybe resource hacker can be of some use?

http://www.users.on.net/johnson/resourcehacker/
Mark my words, when you least expect it, your uppance will come...
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I will take a look, right.
Jose
User
User
Posts: 34
Joined: Sat Apr 26, 2003 9:20 pm

Post by Jose »

@moonshine, thanks for the pointers, I used resource hacker and modified the "purebasic.dll" and all still works.

@Fred, it would be good to be able to create the DLL with the right name imbeded, thus saving us having to hack the resulting file.

I look forward to your solution. :lol:
Thanks
Post Reply