Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling .exe with multiple image files
#8
Gintaras Wrote:Need resource id in scan, like in my last example code.

Hmm, not sure what I am doing wrong, I ensured the resource ID is in the scan but I still can't get it to work when compiled as an executable. I now receive the error
Error (RT) in Hot: resource not found.

So I have added the resource files as follows for images 1 through 37 (using resource IDs 1 - 37)
Function Hot
Code:
Copy      Help
#exe addfile "%USERPROFILE%\images\num36.bmp" 37

I compile as exe and the output confirms they were added.

I ensured the resource ID is in the scan

Function Hot
Code:
Copy      Help
if(scan(F":{Count+1} %USERPROFILE%\images\num{Count}.bmp" w r 0 100 ))

But when I run it, it closes and shows the error about the resource not being found.

Sorry, if I am overlooking something really simple :oops:

Kind Regards
Matthew


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)