Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In vb6, how do I access the files I have stored in ole package objects?

Since the files are packed within the exe, it can't be accessed through a directory, unless I do this:


VB
Form1.OLE1.SaveAsFile (Filenum As Integer)

But what puzzles me is that in the SaveAsFile and SaveAsOle1File functions have one argument, and it is an integer value. It would make more sense to me if it was a string, I.e. the filename of the packaged file.

I just want to access that file so it can be played from a windows media player control.

How do I do this?

PS. I'm making a game, so all resources need to be internal so the end user who plays my game won't have all the graphic videos and audio there and in there face, thus giving away the game's ending, etc.

Thanks!
TKG
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900