i have been doing some looking at dlls. what exactly are all the uses of dlls...can they be used to store graphics? im guessing the main way to use them is to store code...or am i wrong? how do you go about creating dlls(with source and graphics? if possible).
any help would be appreciated.
i am using Code::Blocks ide with mingW compiler.
Asked
Active
Viewed 3,027 times
0

CharlesB
- 86,532
- 28
- 194
- 218

I Phantasm I
- 1,651
- 5
- 22
- 28
2 Answers
1
You're right, DLLs are meant for holding execution code.
However they can be used to embed images, using resources in Visual C++ but I don't think it's possible with Code::Blocks.
To create a DLL with Code::Blocks, simply create a new project with template "Dynamic Link Library".

CharlesB
- 86,532
- 28
- 194
- 218
-
1IIRC, you can have a data-only DLL. – Martin James Jun 01 '11 at 09:18
-
great thanks for the help...how would u go about creating a dll...that can hold resources with visual studio? – I Phantasm I Jun 01 '11 at 10:37
-
@IPhantasmI: [search](http://stackoverflow.com/search?q=visual+c%2B%2B+resource) is [your friend](http://stackoverflow.com/q/1074362/11343) – CharlesB Jun 01 '11 at 11:35