Insert file into exe file in VB6

I am trying to make an installer in VB6 that installs all the files necessary for the program.

I am using a CSV file to store data and read with:

file="C:\users\admin\desktop\table.csv"
Open file For Input As fnum

However, the exe file could not be executed on another laptop because I am getting the error message " file not found".

So: how to insert this CSV document into a .EXE file so that the program can run on any Windows PC ?

+5
source share
1 answer
  • Open the project menu, add-ons, open the add-in manager and double-click the VB6 resource editor to load it, close the manager.

  • "", " " . .

  • XXX.RES node.

  • " "

  • .csv , CUSTOM\101

  • exe . , , 64 .

  • :

    strCSV = strconv(LoadResData(101, "CUSTOM"), vbunicode)

+6

All Articles