hi all,

in my platform.reg file i have included this registry

[HKEY_LOCAL_MACHINE\init]
"Launch95"="audio.dll"
"Launch96"="audevman.dll"
"Launch97"="waveapi.dll"
"Launch98"="wavplay.exe"
"Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00


where is see, wavplay.exe is dependent on shell.exe, device.exe, audio.dll,
audevman.dll, waveapi.dll
thus the "Depend98" key there.

but even then the system does not play the default file.

it says 'error in opening 98' and error code: 2

i have added this statement to my application:
SignalStarted(_wtol(lpCmdLine));

where 'lpCmdLine' has some default file path which exists.

any reasons why wavplay.exe application is not playing @ startup ?

regards
sajid

Re: application launch @ startup by Dean

Dean
Wed Jul 28 16:07:33 CDT 2004

Is the file you're trying to access available at this time, and are you
accessing it correctly?

--
Dean Ramsier - eMVP


"Sajid" <sajidbms@yahoo.com> wrote in message
news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> hi all,
>
> in my platform.reg file i have included this registry
>
> [HKEY_LOCAL_MACHINE\init]
> "Launch95"="audio.dll"
> "Launch96"="audevman.dll"
> "Launch97"="waveapi.dll"
> "Launch98"="wavplay.exe"
> "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00
>
>
> where is see, wavplay.exe is dependent on shell.exe, device.exe,
audio.dll,
> audevman.dll, waveapi.dll
> thus the "Depend98" key there.
>
> but even then the system does not play the default file.
>
> it says 'error in opening 98' and error code: 2
>
> i have added this statement to my application:
> SignalStarted(_wtol(lpCmdLine));
>
> where 'lpCmdLine' has some default file path which exists.
>
> any reasons why wavplay.exe application is not playing @ startup ?
>
> regards
> sajid
>
>



Re: application launch @ startup by Bruce

Bruce
Wed Jul 28 20:30:16 CDT 2004

You aren't trying to load drivers with that registry are you?

I have never seen that before, and can't image that it works. Drivers are
loaded by other exes using registry keys that are specific to those exes.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member




Re: application launch @ startup by Sajid

Sajid
Wed Jul 28 21:35:43 CDT 2004

Yes Dean,

i have included the default file in my image through the project.bib FILES
section.
if i play that default file manually after startup, it plays.

regards
sajid

"Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> Is the file you're trying to access available at this time, and are you
> accessing it correctly?
>
> --
> Dean Ramsier - eMVP
>
>
> "Sajid" <sajidbms@yahoo.com> wrote in message
> news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> > hi all,
> >
> > in my platform.reg file i have included this registry
> >
> > [HKEY_LOCAL_MACHINE\init]
> > "Launch95"="audio.dll"
> > "Launch96"="audevman.dll"
> > "Launch97"="waveapi.dll"
> > "Launch98"="wavplay.exe"
> > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00
> >
> >
> > where is see, wavplay.exe is dependent on shell.exe, device.exe,
> audio.dll,
> > audevman.dll, waveapi.dll
> > thus the "Depend98" key there.
> >
> > but even then the system does not play the default file.
> >
> > it says 'error in opening 98' and error code: 2
> >
> > i have added this statement to my application:
> > SignalStarted(_wtol(lpCmdLine));
> >
> > where 'lpCmdLine' has some default file path which exists.
> >
> > any reasons why wavplay.exe application is not playing @ startup ?
> >
> > regards
> > sajid
> >
> >
>
>



Re: application launch @ startup by Sajid

Sajid
Wed Jul 28 21:40:05 CDT 2004

Hi Bruce,

i am not sure that i can include .dlls in the registry way as .exes are done
earlier, i tried using this registry
[HKEY_LOCAL_MACHINE\init]
"Launch98"="wavplay.exe"

this too did not play the default file.
so i tried including all those dependencies for this application, to make
sure they are loaded before this application is run.
but, i would like to know the better and right way of launching application
with dependencies [as in my case] @ startup.

regards
sajid

"Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
message news:OMfycuQdEHA.556@tk2msftngp13.phx.gbl...
> You aren't trying to load drivers with that registry are you?
>
> I have never seen that before, and can't image that it works. Drivers are
> loaded by other exes using registry keys that are specific to those exes.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
>



Re: application launch @ startup by Bruce

Bruce
Wed Jul 28 23:24:32 CDT 2004

Dean did not ask if the file is in your image, he asked if the file system
is ready to provide it to you that early in the boot cycle.

Running an application that early, you might find that some drivers are
still initializing. Try putting a call to Sleep at the start of you app
with a few seconds delay. See if that fixes the problem. That is not the
solution though, just a test.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Sajid" <sajidbms@yahoo.com> wrote in message
news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
> Yes Dean,
>
> i have included the default file in my image through the project.bib FILES
> section.
> if i play that default file manually after startup, it plays.
>
> regards
> sajid
>
> "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> > Is the file you're trying to access available at this time, and are you
> > accessing it correctly?
> >
> > --
> > Dean Ramsier - eMVP
> >
> >
> > "Sajid" <sajidbms@yahoo.com> wrote in message
> > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> > > hi all,
> > >
> > > in my platform.reg file i have included this registry
> > >
> > > [HKEY_LOCAL_MACHINE\init]
> > > "Launch95"="audio.dll"
> > > "Launch96"="audevman.dll"
> > > "Launch97"="waveapi.dll"
> > > "Launch98"="wavplay.exe"
> > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00
> > >
> > >
> > > where is see, wavplay.exe is dependent on shell.exe, device.exe,
> > audio.dll,
> > > audevman.dll, waveapi.dll
> > > thus the "Depend98" key there.
> > >
> > > but even then the system does not play the default file.
> > >
> > > it says 'error in opening 98' and error code: 2
> > >
> > > i have added this statement to my application:
> > > SignalStarted(_wtol(lpCmdLine));
> > >
> > > where 'lpCmdLine' has some default file path which exists.
> > >
> > > any reasons why wavplay.exe application is not playing @ startup ?
> > >
> > > regards
> > > sajid
> > >
> > >
> >
> >
>
>



Re: application launch @ startup by Bruce

Bruce
Wed Jul 28 23:26:41 CDT 2004

Those weren't dependencies.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member




Re: application launch @ startup by Sajid

Sajid
Wed Jul 28 23:42:58 CDT 2004

hi Bruce,

i did try with Sleep(10000) i.e., 10 seconds delay but this did not workout.
any other way


"Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
message news:uBCl1PSdEHA.592@TK2MSFTNGP11.phx.gbl...
> Dean did not ask if the file is in your image, he asked if the file system
> is ready to provide it to you that early in the boot cycle.
>
> Running an application that early, you might find that some drivers are
> still initializing. Try putting a call to Sleep at the start of you app
> with a few seconds delay. See if that fixes the problem. That is not the
> solution though, just a test.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
> "Sajid" <sajidbms@yahoo.com> wrote in message
> news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
> > Yes Dean,
> >
> > i have included the default file in my image through the project.bib
FILES
> > section.
> > if i play that default file manually after startup, it plays.
> >
> > regards
> > sajid
> >
> > "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> > news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> > > Is the file you're trying to access available at this time, and are
you
> > > accessing it correctly?
> > >
> > > --
> > > Dean Ramsier - eMVP
> > >
> > >
> > > "Sajid" <sajidbms@yahoo.com> wrote in message
> > > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> > > > hi all,
> > > >
> > > > in my platform.reg file i have included this registry
> > > >
> > > > [HKEY_LOCAL_MACHINE\init]
> > > > "Launch95"="audio.dll"
> > > > "Launch96"="audevman.dll"
> > > > "Launch97"="waveapi.dll"
> > > > "Launch98"="wavplay.exe"
> > > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00
> > > >
> > > >
> > > > where is see, wavplay.exe is dependent on shell.exe, device.exe,
> > > audio.dll,
> > > > audevman.dll, waveapi.dll
> > > > thus the "Depend98" key there.
> > > >
> > > > but even then the system does not play the default file.
> > > >
> > > > it says 'error in opening 98' and error code: 2
> > > >
> > > > i have added this statement to my application:
> > > > SignalStarted(_wtol(lpCmdLine));
> > > >
> > > > where 'lpCmdLine' has some default file path which exists.
> > > >
> > > > any reasons why wavplay.exe application is not playing @ startup ?
> > > >
> > > > regards
> > > > sajid
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: application launch @ startup by Bruce

Bruce
Wed Jul 28 23:55:44 CDT 2004

I have been assuming that your app actually started, then an error occured,
that may not be the case. Your wavplay.exe is in the image isn't it? And
the name is right?

It might be time to break out the debugger. Put a breakpoint in your it and
reboot.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Sajid" <sajidbms@yahoo.com> wrote in message
news:%23RJ0HaSdEHA.3476@tk2msftngp13.phx.gbl...
> hi Bruce,
>
> i did try with Sleep(10000) i.e., 10 seconds delay but this did not
workout.
> any other way
>
>
> "Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote
in
> message news:uBCl1PSdEHA.592@TK2MSFTNGP11.phx.gbl...
> > Dean did not ask if the file is in your image, he asked if the file
system
> > is ready to provide it to you that early in the boot cycle.
> >
> > Running an application that early, you might find that some drivers are
> > still initializing. Try putting a call to Sleep at the start of you app
> > with a few seconds delay. See if that fixes the problem. That is not
the
> > solution though, just a test.
> >
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > beitman AT applieddata DOT net
> >
> > Applied Data Systems
> > www.applieddata.net
> > An ISO 9001:2000 Registered Company
> > Microsoft WEP Gold-level Member
> >
> >
> > "Sajid" <sajidbms@yahoo.com> wrote in message
> > news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
> > > Yes Dean,
> > >
> > > i have included the default file in my image through the project.bib
> FILES
> > > section.
> > > if i play that default file manually after startup, it plays.
> > >
> > > regards
> > > sajid
> > >
> > > "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> > > news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> > > > Is the file you're trying to access available at this time, and are
> you
> > > > accessing it correctly?
> > > >
> > > > --
> > > > Dean Ramsier - eMVP
> > > >
> > > >
> > > > "Sajid" <sajidbms@yahoo.com> wrote in message
> > > > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> > > > > hi all,
> > > > >
> > > > > in my platform.reg file i have included this registry
> > > > >
> > > > > [HKEY_LOCAL_MACHINE\init]
> > > > > "Launch95"="audio.dll"
> > > > > "Launch96"="audevman.dll"
> > > > > "Launch97"="waveapi.dll"
> > > > > "Launch98"="wavplay.exe"
> > > > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00
> > > > >
> > > > >
> > > > > where is see, wavplay.exe is dependent on shell.exe, device.exe,
> > > > audio.dll,
> > > > > audevman.dll, waveapi.dll
> > > > > thus the "Depend98" key there.
> > > > >
> > > > > but even then the system does not play the default file.
> > > > >
> > > > > it says 'error in opening 98' and error code: 2
> > > > >
> > > > > i have added this statement to my application:
> > > > > SignalStarted(_wtol(lpCmdLine));
> > > > >
> > > > > where 'lpCmdLine' has some default file path which exists.
> > > > >
> > > > > any reasons why wavplay.exe application is not playing @ startup ?
> > > > >
> > > > > regards
> > > > > sajid
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: application launch @ startup by Sajid

Sajid
Thu Jul 29 00:05:10 CDT 2004

Hi Bruce,

you are right,
wavplay.exe does gets started but but it somehow fails in ReadWaveFile
function with error = 1,
which seams that it is not able to find existing file.

regards
sajid

"Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
message news:OFXcRhSdEHA.592@TK2MSFTNGP11.phx.gbl...
> I have been assuming that your app actually started, then an error
occured,
> that may not be the case. Your wavplay.exe is in the image isn't it? And
> the name is right?
>
> It might be time to break out the debugger. Put a breakpoint in your it
and
> reboot.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
> "Sajid" <sajidbms@yahoo.com> wrote in message
> news:%23RJ0HaSdEHA.3476@tk2msftngp13.phx.gbl...
> > hi Bruce,
> >
> > i did try with Sleep(10000) i.e., 10 seconds delay but this did not
> workout.
> > any other way
> >
> >
> > "Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net>
wrote
> in
> > message news:uBCl1PSdEHA.592@TK2MSFTNGP11.phx.gbl...
> > > Dean did not ask if the file is in your image, he asked if the file
> system
> > > is ready to provide it to you that early in the boot cycle.
> > >
> > > Running an application that early, you might find that some drivers
are
> > > still initializing. Try putting a call to Sleep at the start of you
app
> > > with a few seconds delay. See if that fixes the problem. That is not
> the
> > > solution though, just a test.
> > >
> > > --
> > > Bruce Eitman (eMVP)
> > > Senior Engineer
> > > beitman AT applieddata DOT net
> > >
> > > Applied Data Systems
> > > www.applieddata.net
> > > An ISO 9001:2000 Registered Company
> > > Microsoft WEP Gold-level Member
> > >
> > >
> > > "Sajid" <sajidbms@yahoo.com> wrote in message
> > > news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
> > > > Yes Dean,
> > > >
> > > > i have included the default file in my image through the project.bib
> > FILES
> > > > section.
> > > > if i play that default file manually after startup, it plays.
> > > >
> > > > regards
> > > > sajid
> > > >
> > > > "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> > > > news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> > > > > Is the file you're trying to access available at this time, and
are
> > you
> > > > > accessing it correctly?
> > > > >
> > > > > --
> > > > > Dean Ramsier - eMVP
> > > > >
> > > > >
> > > > > "Sajid" <sajidbms@yahoo.com> wrote in message
> > > > > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> > > > > > hi all,
> > > > > >
> > > > > > in my platform.reg file i have included this registry
> > > > > >
> > > > > > [HKEY_LOCAL_MACHINE\init]
> > > > > > "Launch95"="audio.dll"
> > > > > > "Launch96"="audevman.dll"
> > > > > > "Launch97"="waveapi.dll"
> > > > > > "Launch98"="wavplay.exe"
> > > > > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00
> > > > > >
> > > > > >
> > > > > > where is see, wavplay.exe is dependent on shell.exe, device.exe,
> > > > > audio.dll,
> > > > > > audevman.dll, waveapi.dll
> > > > > > thus the "Depend98" key there.
> > > > > >
> > > > > > but even then the system does not play the default file.
> > > > > >
> > > > > > it says 'error in opening 98' and error code: 2
> > > > > >
> > > > > > i have added this statement to my application:
> > > > > > SignalStarted(_wtol(lpCmdLine));
> > > > > >
> > > > > > where 'lpCmdLine' has some default file path which exists.
> > > > > >
> > > > > > any reasons why wavplay.exe application is not playing @ startup
?
> > > > > >
> > > > > > regards
> > > > > > sajid
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: application launch @ startup by Sajid

Sajid
Thu Jul 29 00:08:35 CDT 2004


moreover, i have used "SignalStarted" in wavplay application.
like:
SignalStarted(_wtol(lpCmdLine));

where, lpCmdLine = TEXT("windows\\startup.wav");
i have included this file in image through project.bib

regards
sajid

"Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
message news:OFXcRhSdEHA.592@TK2MSFTNGP11.phx.gbl...
> I have been assuming that your app actually started, then an error
occured,
> that may not be the case. Your wavplay.exe is in the image isn't it? And
> the name is right?
>
> It might be time to break out the debugger. Put a breakpoint in your it
and
> reboot.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
> "Sajid" <sajidbms@yahoo.com> wrote in message
> news:%23RJ0HaSdEHA.3476@tk2msftngp13.phx.gbl...
> > hi Bruce,
> >
> > i did try with Sleep(10000) i.e., 10 seconds delay but this did not
> workout.
> > any other way
> >
> >
> > "Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net>
wrote
> in
> > message news:uBCl1PSdEHA.592@TK2MSFTNGP11.phx.gbl...
> > > Dean did not ask if the file is in your image, he asked if the file
> system
> > > is ready to provide it to you that early in the boot cycle.
> > >
> > > Running an application that early, you might find that some drivers
are
> > > still initializing. Try putting a call to Sleep at the start of you
app
> > > with a few seconds delay. See if that fixes the problem. That is not
> the
> > > solution though, just a test.
> > >
> > > --
> > > Bruce Eitman (eMVP)
> > > Senior Engineer
> > > beitman AT applieddata DOT net
> > >
> > > Applied Data Systems
> > > www.applieddata.net
> > > An ISO 9001:2000 Registered Company
> > > Microsoft WEP Gold-level Member
> > >
> > >
> > > "Sajid" <sajidbms@yahoo.com> wrote in message
> > > news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
> > > > Yes Dean,
> > > >
> > > > i have included the default file in my image through the project.bib
> > FILES
> > > > section.
> > > > if i play that default file manually after startup, it plays.
> > > >
> > > > regards
> > > > sajid
> > > >
> > > > "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> > > > news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> > > > > Is the file you're trying to access available at this time, and
are
> > you
> > > > > accessing it correctly?
> > > > >
> > > > > --
> > > > > Dean Ramsier - eMVP
> > > > >
> > > > >
> > > > > "Sajid" <sajidbms@yahoo.com> wrote in message
> > > > > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> > > > > > hi all,
> > > > > >
> > > > > > in my platform.reg file i have included this registry
> > > > > >
> > > > > > [HKEY_LOCAL_MACHINE\init]
> > > > > > "Launch95"="audio.dll"
> > > > > > "Launch96"="audevman.dll"
> > > > > > "Launch97"="waveapi.dll"
> > > > > > "Launch98"="wavplay.exe"
> > > > > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00, 61,00
> > > > > >
> > > > > >
> > > > > > where is see, wavplay.exe is dependent on shell.exe, device.exe,
> > > > > audio.dll,
> > > > > > audevman.dll, waveapi.dll
> > > > > > thus the "Depend98" key there.
> > > > > >
> > > > > > but even then the system does not play the default file.
> > > > > >
> > > > > > it says 'error in opening 98' and error code: 2
> > > > > >
> > > > > > i have added this statement to my application:
> > > > > > SignalStarted(_wtol(lpCmdLine));
> > > > > >
> > > > > > where 'lpCmdLine' has some default file path which exists.
> > > > > >
> > > > > > any reasons why wavplay.exe application is not playing @ startup
?
> > > > > >
> > > > > > regards
> > > > > > sajid
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: application launch @ startup by Anil

Anil
Thu Jul 29 01:01:29 CDT 2004

Error code 2 (mentioned in your previous postings)
suggests that the specified path is not found. Try putting
a sleep for minute at the entry point of your app and then
reduce the time depending on its consistency.

Regards,
Anil

>-----Original Message-----
>Hi Bruce,
>
>you are right,
>wavplay.exe does gets started but but it somehow fails in
ReadWaveFile
>function with error = 1,
>which seams that it is not able to find existing file.
>
>regards
>sajid
>
>"Bruce Eitman (eMVP)"
<beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
>message news:OFXcRhSdEHA.592@TK2MSFTNGP11.phx.gbl...
>> I have been assuming that your app actually started,
then an error
>occured,
>> that may not be the case. Your wavplay.exe is in the
image isn't it? And
>> the name is right?
>>
>> It might be time to break out the debugger. Put a
breakpoint in your it
>and
>> reboot.
>>
>> --
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> beitman AT applieddata DOT net
>>
>> Applied Data Systems
>> www.applieddata.net
>> An ISO 9001:2000 Registered Company
>> Microsoft WEP Gold-level Member
>>
>>
>> "Sajid" <sajidbms@yahoo.com> wrote in message
>> news:%23RJ0HaSdEHA.3476@tk2msftngp13.phx.gbl...
>> > hi Bruce,
>> >
>> > i did try with Sleep(10000) i.e., 10 seconds delay
but this did not
>> workout.
>> > any other way
>> >
>> >
>> > "Bruce Eitman (eMVP)"
<beitmannospam@NOSPAM_applieddata.NOSPAM_net>
>wrote
>> in
>> > message news:uBCl1PSdEHA.592@TK2MSFTNGP11.phx.gbl...
>> > > Dean did not ask if the file is in your image, he
asked if the file
>> system
>> > > is ready to provide it to you that early in the
boot cycle.
>> > >
>> > > Running an application that early, you might find
that some drivers
>are
>> > > still initializing. Try putting a call to Sleep at
the start of you
>app
>> > > with a few seconds delay. See if that fixes the
problem. That is not
>> the
>> > > solution though, just a test.
>> > >
>> > > --
>> > > Bruce Eitman (eMVP)
>> > > Senior Engineer
>> > > beitman AT applieddata DOT net
>> > >
>> > > Applied Data Systems
>> > > www.applieddata.net
>> > > An ISO 9001:2000 Registered Company
>> > > Microsoft WEP Gold-level Member
>> > >
>> > >
>> > > "Sajid" <sajidbms@yahoo.com> wrote in message
>> > > news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
>> > > > Yes Dean,
>> > > >
>> > > > i have included the default file in my image
through the project.bib
>> > FILES
>> > > > section.
>> > > > if i play that default file manually after
startup, it plays.
>> > > >
>> > > > regards
>> > > > sajid
>> > > >
>> > > > "Dean Ramsier" <ramsiernospam@nospam.com> wrote
in message
>> > > > news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
>> > > > > Is the file you're trying to access available
at this time, and
>are
>> > you
>> > > > > accessing it correctly?
>> > > > >
>> > > > > --
>> > > > > Dean Ramsier - eMVP
>> > > > >
>> > > > >
>> > > > > "Sajid" <sajidbms@yahoo.com> wrote in message
>> > > > > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
>> > > > > > hi all,
>> > > > > >
>> > > > > > in my platform.reg file i have included this
registry
>> > > > > >
>> > > > > > [HKEY_LOCAL_MACHINE\init]
>> > > > > > "Launch95"="audio.dll"
>> > > > > > "Launch96"="audevman.dll"
>> > > > > > "Launch97"="waveapi.dll"
>> > > > > > "Launch98"="wavplay.exe"
>> > > > > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00,
61,00
>> > > > > >
>> > > > > >
>> > > > > > where is see, wavplay.exe is dependent on
shell.exe, device.exe,
>> > > > > audio.dll,
>> > > > > > audevman.dll, waveapi.dll
>> > > > > > thus the "Depend98" key there.
>> > > > > >
>> > > > > > but even then the system does not play the
default file.
>> > > > > >
>> > > > > > it says 'error in opening 98' and error code:
2
>> > > > > >
>> > > > > > i have added this statement to my application:
>> > > > > > SignalStarted(_wtol(lpCmdLine));
>> > > > > >
>> > > > > > where 'lpCmdLine' has some default file path
which exists.
>> > > > > >
>> > > > > > any reasons why wavplay.exe application is
not playing @ startup
>?
>> > > > > >
>> > > > > > regards
>> > > > > > sajid
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>
>.
>

Re: application launch @ startup by Sajid

Sajid
Thu Jul 29 01:51:50 CDT 2004

hi Anil,

i have tries giving 1 minute of delay[Sleep(60000)] at the begging of the
application, still the same error comes.
any other way ?

regards
sajid

"Anil Sharma" <anil@sdc.canon.co.in> wrote in message
news:64dd01c47531$7dea4950$a501280a@phx.gbl...
> Error code 2 (mentioned in your previous postings)
> suggests that the specified path is not found. Try putting
> a sleep for minute at the entry point of your app and then
> reduce the time depending on its consistency.
>
> Regards,
> Anil
>
> >-----Original Message-----
> >Hi Bruce,
> >
> >you are right,
> >wavplay.exe does gets started but but it somehow fails in
> ReadWaveFile
> >function with error = 1,
> >which seams that it is not able to find existing file.
> >
> >regards
> >sajid
> >
> >"Bruce Eitman (eMVP)"
> <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
> >message news:OFXcRhSdEHA.592@TK2MSFTNGP11.phx.gbl...
> >> I have been assuming that your app actually started,
> then an error
> >occured,
> >> that may not be the case. Your wavplay.exe is in the
> image isn't it? And
> >> the name is right?
> >>
> >> It might be time to break out the debugger. Put a
> breakpoint in your it
> >and
> >> reboot.
> >>
> >> --
> >> Bruce Eitman (eMVP)
> >> Senior Engineer
> >> beitman AT applieddata DOT net
> >>
> >> Applied Data Systems
> >> www.applieddata.net
> >> An ISO 9001:2000 Registered Company
> >> Microsoft WEP Gold-level Member
> >>
> >>
> >> "Sajid" <sajidbms@yahoo.com> wrote in message
> >> news:%23RJ0HaSdEHA.3476@tk2msftngp13.phx.gbl...
> >> > hi Bruce,
> >> >
> >> > i did try with Sleep(10000) i.e., 10 seconds delay
> but this did not
> >> workout.
> >> > any other way
> >> >
> >> >
> >> > "Bruce Eitman (eMVP)"
> <beitmannospam@NOSPAM_applieddata.NOSPAM_net>
> >wrote
> >> in
> >> > message news:uBCl1PSdEHA.592@TK2MSFTNGP11.phx.gbl...
> >> > > Dean did not ask if the file is in your image, he
> asked if the file
> >> system
> >> > > is ready to provide it to you that early in the
> boot cycle.
> >> > >
> >> > > Running an application that early, you might find
> that some drivers
> >are
> >> > > still initializing. Try putting a call to Sleep at
> the start of you
> >app
> >> > > with a few seconds delay. See if that fixes the
> problem. That is not
> >> the
> >> > > solution though, just a test.
> >> > >
> >> > > --
> >> > > Bruce Eitman (eMVP)
> >> > > Senior Engineer
> >> > > beitman AT applieddata DOT net
> >> > >
> >> > > Applied Data Systems
> >> > > www.applieddata.net
> >> > > An ISO 9001:2000 Registered Company
> >> > > Microsoft WEP Gold-level Member
> >> > >
> >> > >
> >> > > "Sajid" <sajidbms@yahoo.com> wrote in message
> >> > > news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
> >> > > > Yes Dean,
> >> > > >
> >> > > > i have included the default file in my image
> through the project.bib
> >> > FILES
> >> > > > section.
> >> > > > if i play that default file manually after
> startup, it plays.
> >> > > >
> >> > > > regards
> >> > > > sajid
> >> > > >
> >> > > > "Dean Ramsier" <ramsiernospam@nospam.com> wrote
> in message
> >> > > > news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> >> > > > > Is the file you're trying to access available
> at this time, and
> >are
> >> > you
> >> > > > > accessing it correctly?
> >> > > > >
> >> > > > > --
> >> > > > > Dean Ramsier - eMVP
> >> > > > >
> >> > > > >
> >> > > > > "Sajid" <sajidbms@yahoo.com> wrote in message
> >> > > > > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> >> > > > > > hi all,
> >> > > > > >
> >> > > > > > in my platform.reg file i have included this
> registry
> >> > > > > >
> >> > > > > > [HKEY_LOCAL_MACHINE\init]
> >> > > > > > "Launch95"="audio.dll"
> >> > > > > > "Launch96"="audevman.dll"
> >> > > > > > "Launch97"="waveapi.dll"
> >> > > > > > "Launch98"="wavplay.exe"
> >> > > > > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00,
> 61,00
> >> > > > > >
> >> > > > > >
> >> > > > > > where is see, wavplay.exe is dependent on
> shell.exe, device.exe,
> >> > > > > audio.dll,
> >> > > > > > audevman.dll, waveapi.dll
> >> > > > > > thus the "Depend98" key there.
> >> > > > > >
> >> > > > > > but even then the system does not play the
> default file.
> >> > > > > >
> >> > > > > > it says 'error in opening 98' and error code:
> 2
> >> > > > > >
> >> > > > > > i have added this statement to my application:
> >> > > > > > SignalStarted(_wtol(lpCmdLine));
> >> > > > > >
> >> > > > > > where 'lpCmdLine' has some default file path
> which exists.
> >> > > > > >
> >> > > > > > any reasons why wavplay.exe application is
> not playing @ startup
> >?
> >> > > > > >
> >> > > > > > regards
> >> > > > > > sajid
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >
> >
> >.
> >