PDA

Click to See Complete Forum and Search --> : Create a dll of accessible images [Resolved]


Ferris
Jan 24th, 2006, 07:28 AM
Hi all,

I want to create an exe that uses images (replaces some, removes some, adds some etc). But what I don't want to do is to have these images in a folder structure so that any tom dick or harry can come along and delete them, move them or otherwise bum out my app.

So what I thought would be good was to package them into a dll that i can then reference in my app and then use them straight from the dll.

Or is there a way i can "store" them in the form somehow?

Any ideas how I would achieve this as google is not playing ball.

Thanks







Added green "resolved" checkmark - Hack

mendhak
Jan 24th, 2006, 07:55 AM
Add the images to your solution. Right click on them, go to properties, and set their build type (I think) to embedded resource.

Then read this

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscon/html/vctskcoderetrievingimagethatisembeddedresourcevisualc.asp

Ferris
Jan 24th, 2006, 08:21 AM
That's exactly what I was looking for!

Thanks very much.