Re: directsound help



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.
.



Relevant Pages

  • Re: Programmer knowledge
    ... the MS Windows SDK C-callable API isn't part of any standard. ... >>The Windows API is far less pervasive than MFC. ... Here's a section of what my wizard produced for a "hello world" app. ... one is often either forced to use C++, by needing to use libraries written ...
    (comp.programming)
  • Re: Programmer knowledge
    ... >> The C library doesn't have windows or controls at all. ... It's not going to stop working unless the API ... are not part of MFC, nor necessary in any way to its use. ... for rare cases, it is only for writing libraries), or that dockable ...
    (comp.programming)
  • Re: Migrating an application from ( VC6.0 to ) vs 2003 in MFC/C++ to VS2008
    ... Microsoft (typically Windows) builds that use the VC++ libraries. ... OP's assert happned in vc7 in MFC code(at least thats how I saw ... I mean code in the Windows OS that uses MFC. ... It is now maintained by the Windows development team, with periodic hints from the VC libraries team about what changes were made in the current MFC, just in case they need to be back-ported to the OS's version. ...
    (microsoft.public.vc.mfc)
  • Re: directsound help
    ... MSVCP.DLL and for MFC MFC71.DLL. ... > is to set your project to statically link to these libraries. ... > more detailed information. ... So how do i staticly link those libraries would that be the linker option ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: What programming language is the most widely used to make viruses?
    ... >>>Few people program direct to the Win API. ... Whats wrong with MFC? ... > all of the Win32 overlay libraries out there are object oriented. ... Windows, but not Apple Mac or X Windows, tends to encourage object oriented ...
    (comp.programming)

Loading