Re: included file; blob data
From: Paul Pedersen (no-reply_at_swen.com)
Date: 12/13/04
- Next message: Paul Pedersen: "Re: included file; blob data"
- Previous message: Dan Freeman: "Re: Question about On key F10"
- In reply to: Leonid: "Re: included file; blob data"
- Next in thread: Leonid: "Re: included file; blob data"
- Reply: Leonid: "Re: included file; blob data"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Dec 2004 14:08:15 -0800
Thanks for the tip, but unfortunately I cannot get it to work.
In the development environment, I have the project file in a directory like
c:\myproject\ and the sound file is in resources\_mysound.wav within that.
I compile the exe, WITH the sound included and move the exe to
"c:\myproject\New Folder". Within the exe are the statements:
MD tempres
COPY FILE _mysound.wav to tempres\mysound.wav
When I run the exe, the second statement fails. The error message says,
"c:\myproject\New Folder\resources\_mysound.wav does not exist."
The statement COPY FILE resources\_mysound.wav to tempres\mysound.wav does
not work either, not that I would expect it to.
Is this possibly a VFP9 problem? I have not tried it in VFP8.
"Leonid" <leonid@NOgradaSPAM.lv> wrote in message
news:%2365ArnD4EHA.1452@TK2MSFTNGP11.phx.gbl...
> 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)?
>>
>>
>>
>>
>
>
- Next message: Paul Pedersen: "Re: included file; blob data"
- Previous message: Dan Freeman: "Re: Question about On key F10"
- In reply to: Leonid: "Re: included file; blob data"
- Next in thread: Leonid: "Re: included file; blob data"
- Reply: Leonid: "Re: included file; blob data"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|