Click here to Skip to main content
12,892,320 members (48,214 online)
Rate this:
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.

Posted 13-Dec-12 3:58am

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170424.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2017
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