Re: included file; blob data

From: Paul Pedersen (no-reply_at_swen.com)
Date: 12/13/04


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)?
>>
>>
>>
>>
>
>



Relevant Pages

  • Re: The ever-fickle SET BELL command
    ... play from the EXE. ... sound can be a critical part of the interface. ... > ENDIF ... >> This works like a charm while testing the form in the VFP IDE. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Set Bell Question
    ... I ran the command on a Form and it works fine, Compiled it to an EXE and no ... "Rick Bean" wrote: ... Are you sure it has a sound card and working speakers? ... >> Set Bell Off ...
    (microsoft.public.fox.programmer.exchange)
  • Re: No Sound At All
    ... Troubleshooting Windows XP ... >I have a Asus A7N8X-E MOTHERBOARD WITH A ATI ALL-IN-> WONDER VIDEO CARD, WITH WINDOWS XP HOME EDITION OS, i> HAVE NO SOUND. ... exe> message. ... How do I fix this so the sound> will work. ...
    (microsoft.public.windowsxp.general)
  • Re: included file; blob data
    ... Leonid ... > In the development environment, I have the project file in a directory ... > I compile the exe, WITH the sound included and move the exe to ... > When I run the exe, the second statement fails. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: included file; blob data
    ... >> I compile the exe, WITH the sound included and move the exe to ... >> When I run the exe, the second statement fails. ... The error message says, ...
    (microsoft.public.fox.programmer.exchange)