Re: included file; blob data

From: Leonid (leonid_at_NOgradaSPAM.lv)
Date: 12/12/04


Date: Sun, 12 Dec 2004 13:01:20 +0200

If mysound.wav is included in exe, then you can't copy it to disk with the
same name even if you included full path. Both Copy file and Strtofile will
fail. But you may copy it with different name. So I suggest you to include
file "mysound.wa_" into exe and then

strtofile(filetostr("mysound.wa_"),"tempdir\mysound.wav")

will do the work

Leonid

"Paul Pedersen" <no-reply@swen.com> wrote in message
news:%23UxMLHx3EHA.3336@TK2MSFTNGP11.phx.gbl...
> (1) My application needs to write a (fixed) wav file to disk. I tried
> including the file in the build, but that did not work. Even though
> FILE("mysound.wav") returns .T., COPY FILE mysound.wav TO
> tempdir\mysound.wav fails with "file not found".
>
> (2) So then I had the idea of creating a table with the sound in a blob
> field (obviously I'm using VFP9), and including that table in the build.
> Then I realized I don't know how to get data into/out of blob fields.
> APPEND GENERAL doesn't work, and there is no APPEND BLOB.
>
> Can anyone solve (1) and/or (2)?
>
>
>
>



Relevant Pages

  • Passing BLOB to exe
    ... I am storing file data in a BLOB and would like to pass it to the ... I want the exe that I pass the file data to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [OT] Looking for some Zenith Z100 software
    ... The "Z-100 PC" refrers to the line of PCs that Zenith built after the Z-100 that WERE PC compatible. ... The one I used had 5.25 disk ... format that the hardware can do. ... ATTRIB EXE 7438 05-15-85 12:00a ...
    (comp.os.cpm)
  • Re: Question on exe size PLEASE IGNORE LAST POST
    ... Loaded the "wrong" exe onto the zip disk, I loaded one that I have compiled on my laptop. ... Back to square one. ... Pentium 2 or 3 as I remember. ...
    (microsoft.public.vb.general.discussion)
  • Re: Exe compression... and a nice tip.
    ... >> exe is used it is no longer possible to simply toss executable pages ... So when memory gets short, code pages can be simply thrown ... A compressed executable is decompressed into a data segment. ... exact copy of something on disk. ...
    (alt.comp.lang.borland-delphi)
  • Re: Alternative process termination notification in a GUI
    ... >>> Learn how to write software that does not crash the first time. ... >> exe. ... you cannot asume that it is written to disk on process ...
    (alt.lang.asm)