visual-c++-2008

How to open vcxproj (visual c++ project) with visual studio 2008

自作多情 提交于 2019-12-08 03:04:01
问题 does anybody know how to open vcxproj in visual studio 2008. It seems this file was only opened by visual studio 2010 isn't it? 回答1: You don't. You'll need to create a Visual C++ 2008 project (.vcproj). Visual C++ 2008 uses VCBuild; Visual C++ 2010 uses MSBuild. 来源: https://stackoverflow.com/questions/4621978/how-to-open-vcxproj-visual-c-project-with-visual-studio-2008

this compiles without a warning in VC9 at warning level 4. Why would one NOT consider this a compiler defect?

混江龙づ霸主 提交于 2019-12-07 11:27:10
问题 I saw some posted code with an out of range error on SO that made me wonder. I would expect a compiler to generate a warning (at the highest level at least) for this code #pragma warning(push,4) int main(){ int x[2]; x[2]=0; return 0; } #pragma warning(pop) but it does not. The EDG compiler nicely says: "sourceFile.cpp", line 3: warning: subscript out of range x[2]=0; ^ Actually EDG says bit more more(all of which are expected) "sourceFile.cpp", line 1: warning: unrecognized #pragma #pragma

std::make_shared as a default argument does not compile

人盡茶涼 提交于 2019-12-07 10:59:02
问题 In Visual C++ (2008 and 2010), the following code does not compile with the following error: #include <memory> void Foo( std::shared_ptr< int > test = ::std::make_shared< int >( 5 ) ) { } class P { void Foo( std::shared_ptr< int > test = ::std::make_shared< int >( 5 ) ) { } }; error C2039: 'make_shared' : is not a member of '`global namespace'' error C3861: 'make_shared': identifier not found It is complaining about the definition of P::Foo() not ::Foo(). Does anybody know why it is valid for

Install the Boost library in Visual C++ 2008

空扰寡人 提交于 2019-12-07 09:50:34
问题 I have downloaded Visual C++ 2008 and I also have the Boost library, v. 1.44.0. How to can the Boost library be installed in C++? I also have Visual C++ 2010. 回答1: You don't have to "install" Boost in Visual Studio. What you need is to point your IDE (in this case Visual Studio) to the folders which contain the Boost headers and the lib files (if you have built Boost - some Boost libraries are header-only, some need to be built). Take a look at Boost Getting Started for further details. Quick

ATL Based Linker Errors

百般思念 提交于 2019-12-07 04:15:27
问题 I got a linking problem with atls.lib lately. I updated my linker's additional dependencies lines with: comctl32.lib C:\WinDDK\7600.16385.1\lib\ATL\i386\atls.lib C:\WinDDK\7600.16385.1\lib\ATL\i386\atl.lib C:\WinDDK\7600.16385.1\lib\ATL\i386\atlsd.lib However, now, I started getting these errors. What can cause these problems? Thank you very much. ------ Build started: Project: hede, Configuration: Debug Win32 ------ Linking... atlsd.lib(externs.obj) : error LNK2005: "char const * const g

How do I debug or fix the endless loop and heap corruption issue involving boost::interprocess managed_shared_memory?

自作多情 提交于 2019-12-06 21:33:28
问题 I have the following "first-chance exception" message which is coming from a DLL I wrote which is running inside an executable that I did not write. That is, the DLL is a plugin. The first time this exception fires, an attempt to open a shared memory map file is failing. If I ignore first chance exceptions and just run, the application freezes or crashes eventually. First-chance exception at 0x76a7c41f in notmyexe.exe: Microsoft C++ exception: boost::interprocess::interprocess_exception at

Connector/c++ with SSL?

我的未来我决定 提交于 2019-12-06 16:13:07
问题 How to connect to MySql using Connector/c++ over SSL? I read about mysql_ssl_set(): seems to work only with Connector/c. I have openSSL enabled and working for require SSL users on MySql. And I can connect remotely to MySql using Connector/c++, but cannot see how to modify parameters of sql::Connection to reference certs for SSL. Excellent tutorial from Giri Mandalika at MySql DevZone and docs on Connector/c++ don't mention SSL, which surprised me because SSL is well documented for Connector

How to open vcxproj (visual c++ project) with visual studio 2008

强颜欢笑 提交于 2019-12-06 13:36:34
does anybody know how to open vcxproj in visual studio 2008. It seems this file was only opened by visual studio 2010 isn't it? You don't. You'll need to create a Visual C++ 2008 project (.vcproj). Visual C++ 2008 uses VCBuild; Visual C++ 2010 uses MSBuild. 来源: https://stackoverflow.com/questions/4621978/how-to-open-vcxproj-visual-c-project-with-visual-studio-2008

std::make_shared as a default argument does not compile

筅森魡賤 提交于 2019-12-05 17:44:24
In Visual C++ (2008 and 2010), the following code does not compile with the following error: #include <memory> void Foo( std::shared_ptr< int > test = ::std::make_shared< int >( 5 ) ) { } class P { void Foo( std::shared_ptr< int > test = ::std::make_shared< int >( 5 ) ) { } }; error C2039: 'make_shared' : is not a member of '`global namespace'' error C3861: 'make_shared': identifier not found It is complaining about the definition of P::Foo() not ::Foo(). Does anybody know why it is valid for Foo() to have a default argument with std::make_shared but not P::Foo()? It looks like a bug in the

Install the Boost library in Visual C++ 2008

旧街凉风 提交于 2019-12-05 16:43:26
I have downloaded Visual C++ 2008 and I also have the Boost library, v. 1.44.0. How to can the Boost library be installed in C++? I also have Visual C++ 2010. celavek You don't have to "install" Boost in Visual Studio. What you need is to point your IDE (in this case Visual Studio) to the folders which contain the Boost headers and the lib files (if you have built Boost - some Boost libraries are header-only, some need to be built). Take a look at Boost Getting Started for further details. Quick start: start your command prompt and go to the folder in which you have unzipped boost execute