The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: shaldan on December 08, 2005, 10:29:22 AM

Title: DLL rename ?
Post by: shaldan on December 08, 2005, 10:29:22 AM
I am going through Iczelion tutorial number 26, splash screen, where there is a dll containing bitmap which is called,
showed as a flash screen and then freed and program can continue. I wonder, if I could use this for example for a game,
where I would put all level 1 bitmaps in one dll, then all level 2 bitmaps in other dll and call it whenever I need.
Continuing these thoughts a would like to ask, if is there is a way to rename DLL and so call a "DLL" with another extension ? ... so in directory would be Level.dat, Level1.dat etc. instead of Level.dll, Level1.dll and so on ..... because it just looks better :)).

thanks ...
Title: Re: DLL rename ?
Post by: hutch-- on December 08, 2005, 10:34:09 AM
The logic of putting specific data in specific DLLs is OK and it is one of the viable methods of seperating data. You would have to weight it up against having seperate data files that can be loaded into memory and used in the same manner. The DLL method has the advantage if you want some specific code in each DLL that is different in each one.
Title: Re: DLL rename ?
Post by: shaldan on December 08, 2005, 10:58:28 AM
thank you for advise Hutch, but for my qustion ... is it possibble to use renamed DLL ? :))
Title: Re: DLL rename ?
Post by: Tedd on December 08, 2005, 11:28:05 AM
Quote from: shaldan on December 08, 2005, 10:58:28 AM
thank you for advise Hutch, but for my qustion ... is it possibble to use renamed DLL ? :))

Not that I've tried it, but I see no reason why not - as long as it's a valid PE, you should be able to load it with LoadLibrary.
Title: Re: DLL rename ?
Post by: shaldan on December 08, 2005, 12:03:24 PM
I tried and it "surprisingly" it worked!! .. thank you ... sorry then for the question, but I tried to do this some months ago when I was yet bigger assembler loser than I am now and it did not work :)....