News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

DLL rename ?

Started by shaldan, December 08, 2005, 10:29:22 AM

Previous topic - Next topic

shaldan

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 ...

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

shaldan

thank you for advise Hutch, but for my qustion ... is it possibble to use renamed DLL ? :))

Tedd

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.
No snowflake in an avalanche feels responsible.

shaldan

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 :)....