First  |  Prev |  Next  |  Last
Pages: 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
create vector with index base 1
How do I create a vector that starts its index at 1 instead of 0? Daniel ... 23 Apr 2008 12:29
Making Unicode/non-Unicode function dll.
I want to be confirmed. I'm writing a dll which includes unicode and non-unicode version of Func, namely, FuncA and FuncW. The dll should include both of them and the application side must call these function accroding to their UNICODE setting. I guess I should give the app-writer header file which looks like,... 23 Apr 2008 05:54
passing vector as argument
How do I pass a variable of type std::vector in an argument list to a function? Daniel ... 9 May 2008 14:37
vector to use unsigned long long
I wrote code to declare a vector to use unsigned long long. However, I get a warning telling me that the vector is of type unsigned integer. What can I do to make the vector use unsigned long long? vector <unsigned long long> v(100000); ... 23 Apr 2008 09:18
accessing a library
the C++ way of accessing a library is using #include, consider the following include herarichy: main.cpp -> Demo.h -> Config.h -> Gconfig.h -> ConfigDef.h the above shows main.cpp include -> Demo.h and Demo.h include -> Config.h ... and so on then basically, main.cpp had inheritan everything of the 4 header... 24 Apr 2008 23:47
allocator for vector
I found a sample for using vectors: Could someone explain to me what the allocator is in the following sample: // Create a vector v3 with 3 elements of value 1 and with the allocator // of vector v2 vector <int> v3( 3, 1, v2.get_allocator( ) ); ... 23 Apr 2008 10:53
C++ utility calling "delete this" fails with exception on 2008.
I've a 32-bit command line C++ utility that fails on 2008 server. Code compiled with VS2005. The utility works fine (and released) on windows 2003 (64-bit too). I don't have any sample of reasonable size, but here is the description. 1. Class Hierarchy in DLL MyObjectBase{ AddRef() { Count++; return; } Re... 23 Apr 2008 03:31
VS 2008 warning about -Wp64
Hello, I am building some applications using Visual Studio 2008. These are applications that we've been building for x86 for a long time, and for x64 since Visual Studio 2005 became available. We normally build using cl on the command line using a makefile. The makefile includes win32.mak, which sets up v... 24 Apr 2008 11:49
Fault injection
Hi all, I am not very experienced with windows programming. What I want to do is setup a fault injection framework for white box and black box testing. But let's keep it simple and consider the white box first. What the framework has to do, is according to a failure pattern, when a system resource is requested (... 22 Apr 2008 08:54
pointer vs non-pointer
For pointer and non-pointer initialization of an object like MyCar mycar; MyCar* mycar = new MyCar(); I heard from other people saying if object i create must live outside scape, then I use pointer version, else if only use object for a limited scope, then use non-pointer version. Does limited scope means... 22 Apr 2008 20:23
First  |  Prev |  Next  |  Last
Pages: 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71