I am kind of startled, especially after reading this. I use template <class T> int GetPosition(vector<T> mVec, T element)
This seems to be a rather stupid question, but I create a pointer to an array of doubles : double* tab = new double[10];
Is there a (Microsoft-specific) CPP macro to determine when I\'m using the VC9 compiler in Visual Studio 2010 as opposed to Visual Studio 2008?_MSC_VER returns the compiler version, so with VS2010 mul
I have a piece of 开发者_StackOverflow中文版code that runs in debug mode in VS2008, C++. The problem is that when I am debugging the code line by line, at a very weird point of the code, it crashes an
I have a class like this: class OBJ{...}; class A { public: vector<OBJ> v; A(int SZ){v.clear(); v.reserve(SZ);}
Hopefully someone can tell me what\'s going on here.I\'m trying to link to gdiplus.lib and I tried to go to \"Properties - Linker - Input - Additional Dependencies\" to add the library but I do NOT ha
Using VS2008, we would like to simulate a file that has a size of X, but that has a read failure at X-Y bytes, so that we get an error indication.
I have a program that doesn\'t seem to recognize declared types in the latest U3D software.There\'s a line
In Visual C++ (2008 and 2010), the following code does not compile with the following error: #include <memory>
I\'m trying to debug a problem in a DLL written in C that keeps causing access violations.I\'m using Visual C++ 2008, but the code is straight C.