VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Resource File Example

by Rye (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB Script
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

This Resource File Example extracts files from resource files at/before runtime to ensure your program will run regardless of weather the user has the needed files (inculding VB RTF).
Now i'm sure i'm not the only person to notice that quite alot of the comments found at VBC look along the lines of this...
"Hey wheres the Blah.dll"
"There was no Blah.ocx in the zip"
"You didn't inculde the .ocx/.dll in the zip"
Now there is one main reason why they don't inculde them and that is because of VBC rule of not inculding .ocx or .dll files, but that doesn't mean to say you carn't inculde these files in your project and upload them to VBC.
In the archive is the "Microsoft Winsock Control 6.0" but it's inside a .res file made by Visual Basics which is inside the project, my project will exetract files from these .res files and return them to there orignal form and even register it if need be this can be performed before a form is loaded so that it is insured your project will run without fault.
This is very simple code and doesn't need much explaining i also understand this can lead to a new way to insert virii into projects but if you are that dumb to fall for it then sorry to say you deserved it :P
As you will see (by reading the source code) my project does no call and functions from the .ocx inculded in this project it only extracts it into a directory and registers it using Regsvr32 so there is 0% risk of virii infection

Rate Resource File Example

Download Resource File Example

Download Resource File Example (55 KB)

Resource File Example Comments

No comments have been posted about Resource File Example. Why not be the first to post a comment about Resource File Example.

Post your comment

Subject:
Message:
0/1000 characters