Joined: 05 May 2007
Bind an executable file
Let me describe my problem in short,
I am looking for a method to add the possibility for my toy basic to create a standalone
pseudo-executable by binding the interpreter together with a .bas file.
Here is what i have done so far.
Originally, the interpreter (let's name it A.exe) has no resource section.
When a bind command-line switch is found, i am creating a copy of A.exe on the fly,
and then i use BeginUpdateResource -> UpdateResource -> EndUpdateResource,
to add a section which stores the .bas file in newly created B.exe.
Now, when i run B.exe, first i search for the resource section ID using
FindResource -> LoadResource, and if exists, i am loading the .bas file from there.
Here is the problem,
When i do all the above from a windows 7 system the pseudo-executable works in Windows 7/8, but NOT in XP.
When i do it from a windows XP system the pseudo-executable is not working at all in XP/7/8 and i get the message: this is not a valid win32 application.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum