DLLs, headers, etc. with Dev-C++

Discussion about everything. New games, 3d math, development tips...
Post Reply
Apocalypse TH6
Posts: 16
Joined: Sat Jan 27, 2007 10:24 pm
Location: San Mateo, CA

DLLs, headers, etc. with Dev-C++

Post by Apocalypse TH6 »

Hi, all of this stuff is so confusing. I don't know how to make Dlls. How do I include Dlls in regular .cpp files?
Anteater
Posts: 266
Joined: Thu Jun 01, 2006 4:02 pm
Location: Earth
Contact:

Post by Anteater »

Well, first of all, I'd move from DevC++ to the free MSVC2005 Express. It's a better IDE. Anyways, you don't include DLLs, you include header files, which are text files. DLLs are binary data that's loaded at runtime. To include a header, just use the code:
#include <header.h>
with "header" being the name of the file. So if it's the Irrlicht header you'd use:
#include <irrlicht.h>
Apocalypse TH6
Posts: 16
Joined: Sat Jan 27, 2007 10:24 pm
Location: San Mateo, CA

Post by Apocalypse TH6 »

Ok, thanks for the help with headers, but how do you use and make dlls? And what is the purpose of them?

PS: I use both MSVC2005 and Bloodshed Dev-C++. I don't know how to use Visual-C++ (i just got it), so I'm using Dev-C++.
Apocalypse TH6
Posts: 16
Joined: Sat Jan 27, 2007 10:24 pm
Location: San Mateo, CA

Post by Apocalypse TH6 »

I got the Express version of Visual-C++, sorry.
Anteater
Posts: 266
Joined: Thu Jun 01, 2006 4:02 pm
Location: Earth
Contact:

Post by Anteater »

Well, In Dev-C++, I think you select what type of project it is from the project properties thing (the same place where you set the icon for your app), as for what a dll is/what its purpose is, the Wikipedia article http://en.wikipedia.org/wiki/Dynamically_linked_library has an excellent discription.
Post Reply