First  |  Prev |  Next  |  Last
Pages: 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Warning C4180 in Visual C++ 2005 EE
After I set on the "Diasble Language Extension" option I get the following warning warning C4180: qualifier applied to function type has no meaning; ignored for the statement template <typename T> inline const T operator -( const T &lhs, const T &rhs ) { return ( T( lhs ) -= rhs ); } ... 19 Dec 2009 14:55
To include or not to include.... C language!
"Victor Bazarov" wrote: long MQ[]={1}; Here you're defining an array whose name has external linkage. As soon as you include this header in more than one .c file, you get multiply defined symbol. Don't do that. Definitions belong to the .c files, not to headers. the data in the MQ array ... 16 Dec 2009 20:14
C-type casting
As I remember the following quetstion about C-type casting was already asked. I.e. the expression int i; ( int )i = 10; is invalid. My question is relative to classes. Which type of object is generated? I.e. with const or without const specifier? T obj1, obj2; ( T )obj1 = obj2; Vladimir Grig... 16 Dec 2009 10:09
Heap Corruption when using delete
PBYTE binfile = new BYTE[size.QuadPart+0x1e0-4]; // delete binfile; binfile = NULL; These statements are located in the same method. What would be the probable causes of heap corruption (written past the end of the heap buffer, buffer overrun i guess) Thanks Jack ... 17 Dec 2009 11:31
Function vs Method
Can someone, please, help me understand the difference between a function and a method? Gordon ... 20 Dec 2009 23:27
Who Know How To set Windows password without old one -- VC Or C#
"Arman Sahakyan" <arman_sahakyan(a)hotmail.com> ???? news:021FD4CF-40F6-4209-A6F8-9EF7BE970444(a)microsoft.com... A reasonable idea that comes to my mind is to embed a hook into windows explorer. Search the web for various ways of how to hook into this or that application. "JoDeGr8" <johnemmatty(a)gmail.com... 15 Dec 2009 15:37
warning C4251: 'CObj1::m_Obj2 : class 'CObj2' needs to have dll-interface to be used by clients of class 'CObj1'
Hi Using VS2005 Professional I have bog-standard Win32 DLL, and it has an export header file like so #ifdef MOD_EXPORTS #define MOD_API __declspec(dllexport) #else #define MOD_API __declspec(dllimport) #endif class MOD_API CObj1 { private: CObj2 m_Obj2; }; Now CObj2 resides in a proper lib... 16 Dec 2009 09:03
std::vector error
Having the following code struct Point { Point( int i = 0, int j = 0 ): x( i ), y( j ) {} int x, y; }; #define MAX_SIZE 10 int _tmain(int argc, _TCHAR* argv[]) { std::vector<Point> v; v.reserve( MAX_SIZE ); for ( int i = 0; i < MAX_SIZE; ++i ) { v.p... 16 Dec 2009 10:09
Unicode question
Hi vc gurus, bool LoadMesh(std::wstring szPath) { //... ::GetModuleFileNameW(NULL, (LPWCH) szPath.c_str(), szPath.size()); szPath.append(szfilename); //// Open .dat mesh HANDLE h = CreateFileW((LPCWSTR)szPath.c_str(), GENERIC_READ, NULL, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (... 20 Dec 2009 21:17
Visual Studio 2008 on Windows 7
With my shiny new 64bit Windows 7 machine: 1. I install Visual Studio 2008 2. I install SP1 3. I copy across my C++ project 4. I rebuild all. It worked fine on 32 bit Vista but now fails to compile. The offending section is in atlcom.h #if !defined(_ATL_DLL_IMPL) && !defined(_ATL_DLL) ClassesAllowedInS... 2 Jan 2010 21:35
First  |  Prev |  Next  |  Last
Pages: 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31