Page 1 of 1

(Dev-C++) DLL loads in .exe files

Posted: Sun Nov 19, 2006 12:43 pm
by jimowns
hey
i'm little confused about .DLL .

so i've a few questions:

1.a) how can i put a screen.bmp intro a DLL file.
1.b) how can i put Sounds and Videos in DLL files .

2) how can i load a DLL file in a .EXE .
i mean , if i open the .exe file its need the .DLL file to load the sounds and screens .


besides i use Dev-C++ and my project is Allegro application .
i hope you can help me .


|--- My English is not good ---| .



thanks in advance

Posted: Sun Nov 19, 2006 6:06 pm
by Anteater
I think you can put resources in to a compiled executabe/dll using .RC scripts. Sorry I can't help you better, but I don't know alot about it myself. Try using Google.

Posted: Sun Nov 19, 2006 9:27 pm
by AlexL
Jimowns,
You might want to check out this thread in from the FAQ section of the forums -- http://irrlicht.sourceforge.net/phpBB2/ ... php?t=8924 -- This should give you a start in the right path for what your looking for.

Posted: Mon Nov 20, 2006 6:15 pm
by jimowns
i got this error now .
this error is from the .exe file

------ Build started: Project: ChaoseRose, Configuration: Debug Win32 ------
Compiling...
ChaoseRose.cpp
c:\documents and settings\eigenaar\bureaublad\chaoserose\chaoserose\chaoserose.cpp(30) : fatal error C1083: Cannot open include file: 'resource.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\Eigenaar\Bureaublad\ChaoseRose\ChaoseRose\Debug\BuildLog.htm"
ChaoseRose - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


this error is from the DLL file .

----- Build started: Project: ChaoseRoseDLL, Configuration: Debug Win32 ------
Compiling resources...
.\resource.h(5) : fatal error RC1004: unexpected end of file found
Build log was saved at "file://c:\Documents and Settings\Eigenaar\Bureaublad\ChaoseRose\ChaoseRoseDLL\Debug\BuildLog.htm"
ChaoseRoseDLL - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




i 'm useing VC++ 2005 now .