Sign in to follow this  
Tera_Dragon

when to use DLLs

Recommended Posts

I'm about to start making a game and was wondering what I should put into DLLs and what I should leave in the EXE. Should I split DLLs just like files and have many of them, so if I want to update any part of the game chances are the download needed wouldn't be too large? Please ust give me all the info you have. This is my first main project and was just wondering how I should go about it. Thanks for any info Tera_Dragon Edit: Sorry, I posted this in the wrong topic. I meant to post it in the game programming topic.

Share this post


Link to post
Share on other sites
When to use DLLS:

1. Never, under any circumstances

2. If your boss insists absolutely unshakably that you have to

3. If you're clinically insane... mooo baaa wibble I'm a fish...

Seriously, static libraries work the same, except require less effort to make them work and there are no additional issues surrounding them.

If you are worried about your .exe being too large, wait until it is first, then sort it out :)

Mark

Share this post


Link to post
Share on other sites
Quote:

1. Never, under any circumstances

2. If your boss insists absolutely unshakably that you have to

3. If you're clinically insane... mooo baaa wibble I'm a fish...


Obviously, from an informed source.

the correct answer is, when you need to be able to link to code dynamicly, e.g. a plugable rendering interface.

the DLL is a very useful technology, wherein it's main drawback is loss of cross platform support.

Share this post


Link to post
Share on other sites
Quote:
Original post by EDI
wherein it's main drawback is loss of cross platform support.

If your just referring to PC cross-platform support (Windows, Linux, MacOS being the main contenders) then that isn't true. Linux and MacOS have dynamic libraries as well and it takes no more to provide cross-platform support than it would for any other system-dependant code (such as windowing). Hell, if anything it's easier than getting cross-platform windowing :)

Having said that, I don't know whether consoles support dynamic libraries. Probably the XBox, *maybe* the PS2 and GameCube but beyond that I'd be surprised if they do.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by joanusdmentia
Having said that, I don't know whether consoles support dynamic libraries. Probably the XBox, *maybe* the PS2 and GameCube but beyond that I'd be surprised if they do.


No, none of them do.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this