You can try to link with the static libraries of MFC, ATL and the C runtime time.
By default it links to the dynamic libraries.
Go to Project -> Properties -> Configuration Properties -> General.
If you're using MFC, change Use of MFC from Use MFC in a Shared DLL to Use MFC in a Static Library.
If you're using ATL, change Use of ATL from Dynamic Link to ATL to Static Link to ATL.
Finally go to Project -> Properties -> Configuration Properties -> C/C++ -> Code Generation -> Runtime Library.
Change /MDd to /MTd (Debug mode) or /MD to /MT (Release mode).
«_Superman_» I love work. It gives me something to do between weekends.
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.