Re: directsound help



"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

.



Relevant Pages

  • Re: directsound help
    ... >>> all the computers were running windows xp pro sp2 with direct x 9. ... MSVCP.DLL and for MFC MFC71.DLL. ... >> is to set your project to statically link to these libraries. ...
    (microsoft.public.win32.programmer.directx.audio)
  • static linking
    ... Is there a possibility to statically link used .NET components into my ... Like static link of MFC libraries.. ...
    (microsoft.public.dotnet.framework)
  • building distributions
    ... Is there a possibility to statically link used .NET components into my ... Like static link of MFC libraries.. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • statical link
    ... Is there a possibility to statically link used .NET components into my ... Like static link of MFC libraries.. ...
    (microsoft.public.dotnet.framework.clr)
  • Re: C++ vs. C#
    ... The language itself is the culprit. ... libraries (and I would classify the libraries/frameworks as a kind of "tool" ... I really dont think MFC was designed well. ... If they want a newer framework, ...
    (microsoft.public.vc.mfc)

Loading