|
-
Dec 10th, 2002, 05:05 PM
#1
Thread Starter
New Member
anyone tried to embedd an image or an audio clip in a *.dll file ??
I am trying to make an application but i want to hide the files like Images and stuff, say I want to make a card game but i want to hide the image files in a dll file....
Is it possible ??
Allah only forbids you, with regard to those who fight you for (your) Faith, and drive you out, of your homes, and support (others) in driving you out, from turning to them (for friendship and protection). It is such as turn to them (in these circumstances), that do wrong. [The Holy Quran 60:9]
http://www.al-islam.com
-
Dec 10th, 2002, 10:24 PM
#2
Frenzied Member
Yeah its possible. Read up on resources. I've never worked with audio file, but I'm sure it can be done. Here is an example I did with images.
Both projects are included.
Link
Last edited by DevGrp; Dec 10th, 2002 at 10:38 PM.
Dont gain the world and lose your soul
-
Dec 11th, 2002, 05:24 AM
#3
Thread Starter
New Member
oh thank u , yours worked fine ....
I will see how can i do it in mine...
by the way I have a little question, would it be the same thing with a Microsoft Access database file *.mdb ?? Can I also embedd a database in a DLL ?? is it feasible ?? or should I make the *.mdb an external password protected file ??
Allah only forbids you, with regard to those who fight you for (your) Faith, and drive you out, of your homes, and support (others) in driving you out, from turning to them (for friendship and protection). It is such as turn to them (in these circumstances), that do wrong. [The Holy Quran 60:9]
http://www.al-islam.com
-
Dec 11th, 2002, 08:38 AM
#4
yay gay
i dont think that for a game a db would be a good idea
\m/  \m/
-
Dec 11th, 2002, 01:40 PM
#5
Hyperactive Member
oh,
by the way
What are you hoping to accomplish by hiding the images in the dll? You know that any .NET resource editor should be able to pull the images out, right?
Storing a database in a dll makes no sense. If you don't want to ship the mdb file, then you will need to write the code to create it on the fly, or just use XML for that matter. (Both alternatives are pretty easy with .NET.)
-scott
he he he
-
Dec 12th, 2002, 12:05 AM
#6
Thread Starter
New Member
No I won't use a db for my game 
Creating a DB on the fly using my code ?? Okay I create The Tables and load the values whenever the Program is excuted, but then where should i save the changes of inserted records ?
Second, I think that once u build a DLL file u can't see what's inside it unless u use a code like Assembly.Load(CardImages) to access it.
Allah only forbids you, with regard to those who fight you for (your) Faith, and drive you out, of your homes, and support (others) in driving you out, from turning to them (for friendship and protection). It is such as turn to them (in these circumstances), that do wrong. [The Holy Quran 60:9]
http://www.al-islam.com
-
Dec 12th, 2002, 07:50 AM
#7
Frenzied Member
You can find what is in the dll using reflection. You can even call the methods too. Reflection is very powerfull.
Dont gain the world and lose your soul
-
Dec 13th, 2002, 02:44 PM
#8
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|