enum problem - getting C4482 I've got this enum defined in a base class Beverage: enum SIZE { TALL, GRANDE, VENTI }; and the following in a decorator class Mocha ( Beverage <-- CondimentDecorator <-- Mocha ) double Mocha::cost() { double cost = this->pBeverage->cost(); switch (this->getSize()) { case SIZE::TALL: cost += 0.... 13 Jun 2006 11:35
_sntprintf and _sntprintf_s I was really surprised when Visual Studio 2005 gave a warning that function _snwprintf was declared with old syntax. I couldn't quite figure out what syntax _snwprintf was declared with. However, some investigation revealed that Microsoft declared _snwprintf to be deprecated for security reasons. There is some di... 30 May 2006 02:19
#define _CRT_SECURE_NO_DEPRECATE doesn't work I have #define _CRT_SECURE_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE in my stdafx.h I also have them in my project properties. But I still get these warnings, and more: c:\program files\microsoft visual studio 8\vc\include\cstdio(33) : warning C4995: 'gets': name was marked as #pragma deprecated c:\pro... 14 Jun 2006 00:41
___pioinfo I have a library that was built with 'multithreaded'. I'm trying to link it with an application built with '(debug) multithreaded DLL'. After ignoring default libraries 'libc.lib,msvcrtd.lib,libcmt.lib' I'm still left with: libcimt.lib(filebuf.obj) : error LNK2001: unresolved external symbol ___pioinfo An... 29 May 2006 01:57
DLL project and static linking of CRT (/MT or /MTd) I have a DLL VC6 project that I am trying to convert to VC8 (VS2005). I try to make the project statically link to the CRT but to no avail. I get the following error: LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup I read various topics on the on... 10 May 2006 04:58
KB831875 Is this still an issue in VS2005. I'm getting buffer overrun error in dbghook.c Thanks, Drew ... 24 Apr 2006 21:15
VC++ doesn't like sal.h AT ALL! VC++ reports this pair of errors when Boost::Filesystem's exception.cpp is compiled: C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sal.h(226) : error C2144: syntax error : 'int' should be preceded by ';' C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sal.h(226) : error C4430: missing type spe... 14 Apr 2006 00:58
LPCTSTR vs const char* in Visual C++ 2005 Greetings! I'm converting programs written on Visual C++.NET 2003 to Visual C++ 2005. While building them with Visual Studio 2005, I got hundreds of errors like: "cannot convert parameter 1 from 'LPCTSTR' to 'const char *'" or "cannot convert parameter 1 from 'const char *' to 'LPCTSTR'". I wrote a simple appli... 13 Apr 2006 02:38
ERROR_DLL_INIT_FAILED - HELP please It might be something simple but I'm stuck with this error. VS2005 32-bit mode, C/C++ A lot of DLLs (about 2500) compiled just from the command line like this: cl /LDd progname.c The main program compiled under VS2005 and options for all C++ compile: /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /... 25 Mar 2006 18:28
CppCodeProvider.dll CompileAssemblyFromSource() throws a "not implemented" exception Hi, I'm using CppCodeProvider.dll in a CLI/C++ application and I simply can't make it work with CompileAssemblyFromSource() or any other functions. Is there something special for C++ that I need to do that I don't need for the other languages, or is this just broken? Kind Regards Cláudio Albuquerque ... 20 Mar 2006 16:19 |