Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / .lib files?

Author
Message
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 9th Nov 2009 03:40
Will db load .lib files using the load dll command? i know they are similar hence the dynamic link library and the library lol, and i really don't have any to test it out on.

New Site! Check it out \/
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Nov 2009 07:45
I don't believe so. In general, a lib is static and is compiled into executable code. It becomes part of the actual application at compile time. A dll is sort of a free floating app in and of itself that dynamically links to a program at run-time. The DLL hangs around in memory instead of being part of the actual code so a single dll can be shared by many concurrently running exes.

Enjoy your day.
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 9th Nov 2009 14:01
Okay, that's what i figured. thanks!

New Site! Check it out \/
ShaunRW
DBPro Developer
16
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 10th Nov 2009 03:31
So Lib files are just like #include file in darkbasic?


Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Nov 2009 04:07
Actually, that would be a good comparison, in DBC at least. An #INCLUDEd libary in DBC is a set of stand alone functions that are referenced by a main program.

Enjoy your day.
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 10th Nov 2009 05:59
Never thought about it like that. exept they can export variables also.

New Site! Check it out \/

Login to post a reply

Server time is: 2024-04-18 16:15:22
Your offset time is: 2024-04-18 16:15:22