Re: directsound help





"Chris P. [MVP]" wrote:

> On Thu, 14 Apr 2005 10:01:03 -0700, enz0 wrote:
>
> > "Chris P. [MVP]" wrote:
> >
> >> On Wed, 13 Apr 2005 18:02:03 -0700, enz0 wrote:
> >>
> >>> Hi I wrote a program to record data from the sound card and it compiles and
> >>> runs fine on my computer and one other computer so far. But nearly every
> >>> other computer i've tried to execute the program on, gives a windows error
> >>> stating " application failed to initialize ..etc"
> >>> all the computers were running windows xp pro sp2 with direct x 9. I tried
> >>> running both the debug and release version of the program.
> >>> any suggestion as to why this might be or what im doing wrong would be
> >>> appreciated
> >>
> >> If your application is dynamically linked to the VC runtime and/or MFC then
> >> you need to ship those DLL's along with your application. For VC 6 this is
> >> MSVCRT.DLL and if you used MFC MFC42.DLL. For VC 7.1 (.NET 2003) these are
> >> MSVCR71.DLL, MSVCP.DLL and for MFC MFC71.DLL. Otherwise the easy solution
> >> is to set your project to statically link to these libraries.
> >>
> >> You haven't provided full details of the problem so I can't be sure that
> >> this is what is happening, but give it a shot. Otherwise come back with
> >> more detailed information.
> >>
> >>
> > Thanks
> >
> > Sorry my explanation of the problem sucked, but that sounds like it could be
> > the answer since both of the computer that it worked on were running VS 2003.
> >
> > So how do i staticly link those libraries would that be the linker option
> > that reads additional library directories
> >
> > the code is posted here if you wish to take a look
> > http://www.noidea128.org/sourcefiles/14418.html
> >
> > again thanks for your time and patience
>
> You only have the static link option for MFC, but your app doesn't appear
> to be using MFC at all. Under the project properties -> general, make sure
> it is set to "Use Standard Windows Libraries". As you're not using ATL
> either, make sure that is set to "Not Using ATL".
>
> Rebuild and check your app's dependencies by using "Depends", which comes
> with the Platform SDK. Run depends on your app on the machine that is not
> working and the missing DLL(s) will be shown in red.
>
standard windows libraries = true
not using atl = true

however i cant find that depends program anywhere. Im using the october
2004 release of the sdk. was it a more new inclusion or ( more likely )
something i forgot to install.

thanks for your time
.