Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add file an .EXE after it is built?
Message
 
 
À
22/06/2020 19:05:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01668100
Message ID:
01674988
Vues:
65
>>Is it possible to add/include a file to an EXE file? As if the file was included at design/compile time?
>
>I've recently learned that in Windows, you can add content to the end of the .EXE file that Windows just ignores. I was amazed this was allowed because it seems to be a way for viruses to propagate.
>
>In order to access the content that's been appended would require some special coding logic, but in theory you could do it using _sopen() and seeks and reads to read in the block. If you stored a value in the last 9 digits of the file, for example, indicating how big the block was before those digits, you could read in just that portion and then parse it out however you need.
>
>But the answer is yes you can add files to a .EXE after it's been built, and no they can't be accessed exactly as if they were built at compile-time. But they would be accessible, and you could include all of the program logic within the one .EXE to access that content.

Hi Rick,
I have created a way to get around the need of adding a file to an EXE. So, at this point, this is not necessary.
But I will keep your message, just in case.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform