Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB 6.0 offers a feature to embed any type of file into your VB6.0-Based application (which is actually called OLE Objects) and access it with the code "OLE1.DoVerb 1". However, when it comes to extraction of the file rather than accessing it with the code that is written above, I can't manage to find a proper way to achieve the extraction method. Is there a way to extract the file that is stored inside the OLE object (i.e. any.exe application) in a custom location? (i.e. To be extracted to C:\Users\UserName\Desktop\Folder)
Posted
Updated 4-Jul-14 9:30am
v3
Comments
[no name] 4-Jul-14 15:31pm    
http://www.google.com/search?q=vb6+extract+embedded+resource
Sergey Alexandrovich Kryukov 4-Jul-14 16:18pm    
Any specific reason to use VB6? Any specific reason to use OLE? Why not leaving the dead in their graves? They did not make too much sense even when they were alive...
—SA
[no name] 4-Jul-14 18:23pm    
I know they're dead, I'm using it since it has no dependencies to run like the .NET apps...
Sergey Alexandrovich Kryukov 4-Jul-14 18:43pm    
How is it related to "dependencies"? :-)
—SA
[no name] 5-Jul-14 9:39am    
Assume I wrote an app in .NET Framework 4.0, some users don't have the right framework for my app to run, and some don't bother downloading the framework since it is 'too big ~47 MB'. However, VB6.0 doesn't need anything to run at all. I tried VB6.0 apps run in Windows 98 and later and they worked perfectly without a single file needed.

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