Hello i am trying to load a resource file, which is called: "DATA" and then the item is called: "WALL". how am i able to load the resource into a picturebox called: picBox???
!! Thanks in advance !!
Printable View
Hello i am trying to load a resource file, which is called: "DATA" and then the item is called: "WALL". how am i able to load the resource into a picturebox called: picBox???
!! Thanks in advance !!
What's a "resource file?" Are you talking about a file containing compiled resources, created directly via RC.EXE or using VB's Resource Editor and having a ".res" extension?
Those are Link.EXE inputs, not something your program reads. They need to be linked into your EXE or a separate DLL.
For testing purposes VB's resource functions can read the current Project's .res file contents though. I don't know of any calls into the runtime to make that work separately or more explicitly.
You probably have a simple problem with a simple answer. You just need to ask more clearly.
Well actually i was speaking about the resource editor that comes with the visual basic ide, then so
From the help:
Quote:
Using Resources in Code
Visual Basic provides three functions for retrieving data from the resource file for use in code.
Function: Description
LoadResString: Returns a text string.
LoadResPicture: Returns a Picture object, such as a bitmap, icon, or cursor.
LoadResData: Returns a Byte array. This is used for .wav files, for example.
For More Information See the appropriate function topic.
Your question is too simple, you should ask this: I put a Test.xls and Sqlitedemo.db in my resource file, how to open the EXCEL table directly without decompressing it to the hard disk, or read it into it with SQLITE3.DLL data (read only)
LoadResSQLITE(#103)
LoadResExcelTable(test.xls)
then so.
Please tell me the syntax of the LoadResPicture property, kindly
Just type the command somewhere in the IDE and press F1
CHATGPT Will answer you!
I am a non ai abuser programmer, okay matey
Isn't AI abuse illegal? Get put on some list or something for life? ;-b
When I abuse the AI it abuses me back!
Like @Arnoltdv said, you could type it anywhere in IDE and then press F1 for MSDN reference.
In my case, I don't have MSDN so I get an error popup pressing F1.
Rather, you can also press F2 and get the Syntax.
Function LoadResPicture(id, restype as Integer) as IPictureDisp
https://www.oreilly.com/library/view...68-fm2xml.html
What? Uhh, Do you mean Win32 DLL RESOURCES, then use Private Declare to declare that DLL
they can be DLL,EXE,RC and RES. They can all be readed with same code
well then yes, i am using the RES typed files to do that with, my project
Due to the problems that i am facing with my project. I was able to use a text handler res function. then i am facing to write the file, using the open, print and close commands to write a file, using the resource library
So then i am going to mark this one resolved, okay then dudes