Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting EXE into Memo field
Message
From
15/10/2007 18:16:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/10/2007 17:09:27
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01261120
Message ID:
01261147
Views:
13
>>>How do I get an EXE into a Memo field? Not the reference, but the actual file. Thanks!
>>
>>
>>replace MyMemo with FileToStr("MyExe.EXE")
>>
>>
>>Better make it a memo binary; a codepage translations is definitely not appropriate here.
>
>This doesn't work for me because the files all have the same header that has a bunch of the control characters and this: This program cannot be run in DOS mode. The files will not run in DOS, which is what they need to do. They do run in DOS prior to using FileToStr into the table and then StrToFile out of the table, so putting them into Memo fields corrupts them from working in DOS, I think. Any thoughts? Anyone?

That's precisely why you should use a memo binary, instead of a memo - to avoid corruption.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform