Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB6
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:
 

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 13-Dec-12 4:58am

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

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 205
3 Jochen Arndt 180
4 Sergey Alexandrovich Kryukov 165
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,650
3 Kornfeld Eliyahu Peter 3,460
4 Sergey Alexandrovich Kryukov 2,811


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100