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 / dll vs. #include???? whats the differance

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 10th Nov 2008 00:34
i was wondering because iv read that a dll is just a collection of functions and as far as i know thats the same thing that the dba #include is used for any help
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Nov 2008 01:20
A DLL in this context is a collection of functions that are created using a language like C/C++, Delphi, Pascal, Assembly, etc. They are machine language or binary programs. That means, they are programs that talk more directly to the processor than a language like DarkBASIC classic can. That also means they tend to be way faster than DBC.

The functions in an #INCLUDE file are functions created within DBC. These are not binary programs and do not talk to the processor directly. DBC has to interpret them as it reads them line by line to machine understandable code that the processor can use. This of course is much slower than the DLL. But these functions you can create in and for DBC, and it takes some of the work out of creating a DLL (which can be more complicated depending on the task and requires the knowledge of a lower level pregramming language).

The functions in a dll have to be called at some point after the dll is loaded into DBC as you need them just like a function created in DBC:



Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 11th Nov 2008 01:37
oooooo ok haha i probly look stupid cuz you've anwsered like almost all of my really simple questions lol

but ya i see what you meen thanx

Login to post a reply

Server time is: 2025-06-07 08:15:09
Your offset time is: 2025-06-07 08:15:09