I am opening my VC++6.0 application in VS2008 and getting the above error. what setting needs to be done for this to port this application in VS2008.
Also if I am porting this application to VS2008, will it work in Visual Studio Pro 2010?
Take a look at the options offered. In my system I have the following options:
Multi-threaded : a static library that supports threading
Multi-threaded Debug : as above, that includes debug information
Multi-threaded DLL : a dynamic library that supports threading
Multi-threaded Debug DLL : as above, that includes debug information
These are versions of the C/C++ basic runtime libraries, and are purely to support the language. You add extra libraries to your project to support Win32 and MFC/ATL as required. Note that most required libraries are added to your project when it is created by the New Project wizard in Visual Studio.
I am C++/MFC devloper. I have been working with dll/com/mfc from few years now, but I always have confusion, what is exact diffrence in Static,Dynamic,Shared library. Moreover when I use shared library it creates lib file and then I link with lib file to reuse source code.
My assumption about 'lib vs dll' was like '.h vs .cpp'. Is my assumption correct?
Wherever I work with multiple project I got huge number of linker errors.
I've to set the 'Loudness Equalization' property of the speakers to true. I'm referring to the MSDN DOC file (Vista_SysFX.Doc) from here[^]. But the compiler give error for CreateAudioMediaType() function saying it requires 3 parameter (prototype
The funniest part is any of the files (Mtype.h or Streams.h) isn't found when included, neither the lib. But when I change the function for 3 parameter, it gets compiled and fails to link. Even I was wondering about this prototype mismatch.
Please post the exact code that causes you a problem along with any and all error messages as they appear on your screen. Only then can we begin to make a guess at your problem and its resolution. Before doing this make sure that you are using the proper format of any function calls, including the correct parameters, according to both the MSDN documentation (see link I provided earlier) and the actual header files in the version of the SDK that you are using. Ensure that you have included all the correct libraries in your project properties, again in line with the MSDN documentation.
Please do not waste your or our time with one liners like the above which serve absolutely no purpose.
The above code gives compiler error for CreateAudioMediaType() function. The error is
error C2660: 'CreateAudioMediaType' : function does not take 2 arguments
Well that's quite clear, your function call does not match the function prototype in the package header file. As far as I am able to ascertain the correct definition is as described in this page[^] in MSDN.
error LNK2019: unresolved external symbol _CreateAudioMediaType@12 referenced in function "void __cdecl useAPO(void)" (?useAPO@@YAXXZ)
Again this message is quite clear; the function you are attempting to call exists in an external library that has not been included in your project. Unfortunately the documentation for the CreateAudioMediaType() function does not indicate which library you need to include in your project. You could try checking the header file to see if it gives any information there. Unfortunately these functions appear to be part of the Windows Driver Kit, and I do not have a copy so am unable to offer any further suggestions.
You may like to recheck the documentation you are working from, or try posting on one of the Microsoft technical forums.
The best things in life are not things.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Feb-24 5:15