flat assembler
Message board for the users of flat assembler.

Index > Windows > import vs LoadLibrary

Author
Thread Post new topic Reply to topic
a115433



Joined: 05 Mar 2010
Posts: 144
a115433 24 Apr 2010, 11:49
lets assume you want to make the most compatible program ever.
what linking method should you use?


import - when library doesnt contain function - you ugly message box.
LoadLibrary - when library doesnt contain function - you cant load only a part of your app, instead of a process.

what is better?
what should be used?


i thtink that LoadLibrary, because you load only those functions used at the moment.
You can free memory if you are not going to use function atm.
However dlls usually do not take much memory, is it worth it?
Post 24 Apr 2010, 11:49
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 24 Apr 2010, 12:26
Functions that you normally need are quaranteed to be always present. Just don't use any newer APIs.
Post 24 Apr 2010, 12:26
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.