screensaver resource puzzle

I recently tried my hand at creating a screensaver using C++ and
unmanged D3D.

Its very simple by just by loading up a hard coded .x file and rotates
it.

I then then thought since I know a little about 3d studio max sdk that
so I can try and make a screen saver generator plugin. *

I thought I had overcome the difficult part in writing the code that
extracts all the mesh information from the 3ds max scene and write it
to a x file, my pre built scr file could use this at runtime then.
Then I thought wouldn't it be better if I can package up the resources
and graphics code into one *.scr file.

How would it be possible to insert resources into a
executable\screensaver afterwords or is there a better approach I can
take to this problem. I couldn't think of a solution and googling
around didn't help me much either.Tongue Tied

Any pointers from would be much appreciated.

Thanks

* I actually got the idea from something I came across the net when
researching screensavers, there is a commercial project that does just
what I want to do (www.screensavermax.com) but it cost a lot of money
and thought this would be a good learning excercise - though proved
more difficult then initially thought.


Answer this question

screensaver resource puzzle

  • krissmith

    Thanks for the reply, in hindsight your right its not really a graphics problem and should be in another forum but I think I have the solution now.

    After reading your post I did a bit more digging around with the idea of inserting resources into executables when I found the solution on msdn here.

    I will try this out tonight but it looks like this will do the trick.


  • Joe Szymanski

    Hi,

    Firstly, I know your overall program is D3D/Graphics related, but your actual problem isn't specifically to do with the graphics part. I only mention this because it's possible you'll get better results in one of the Win32/C++ type forums...

    Anyway, you might want to look into resource files and related tricks. I've always created them at compile-time via VStudio, but a couple of years back I did see some sample code that would be able to "inject" binary data into the end of an exe file. The idea being that you could hide files and/or create a self-extracting archive.

    Try having a look at some of these samples.

    hth
    Jack


  • screensaver resource puzzle