|
view template instantiation Hi Group, Is there an compiler option can be set to view/generate the result of template instantiation? The option should be similiar to "/E (Preprocess to stdout)" Best regards, Lin ... 5 Jun 2008 09:38
Classes Hi, I am starting with classes and so far I wrote by Box class: -------------------------------------------------------------------------------- class Box { float * a; float * b; float * c; public: Box(); Box(float,float, float); ~Box(); float volume(); }; Box::Box(float x,float y, float z) {... 9 Jun 2008 18:05
Externs I am using VC++ Express and confess I am not well versed with it. I have a main.c, p1.c and p1.h. All three files are included in the project. In p1.c I have: extern int ex = 123; In main.c I have: extern int ex; main() { ... int i; i = ex; ... } Building yield... 4 Jun 2008 12:04
forward declaration to templates I have a compilation error I don't understand: My code is something like this: class A { template <class T> class B; .... template <class T> class B { B(); }; }; In class A, I HAVE to have a forward declaration of class B, BEFORE the actual declaration of B. This code is OK - c... 4 Jun 2008 08:08
What are all the to add Lib to MS- VC++6 projects Hi , Can anyone tell me, What are all the ways to add lib file reference to MS-VC++6 projects ? ... 4 Jun 2008 05:43
General Question! Hello, Can someone give me some general feedback on the folowing subjects. I would like to know what is the difference between VC++ and VC.NET. I guess VC++ uses unmanaged code where VC.NET uses managed code??? is this correct. I still would opt for the old VC++ with native code which is unmanaged code rig... 4 Jun 2008 10:29
VC8 Compiler bizarreness class TTexture; typedef TSmartPtr<TTexture> TTexturePtr; typedef TArray<TTexturePtr> TTexturePtrArray; TTexturePtrArray apTextures; I am having the most bizarre compiler error. Code that has been working for years all of a sudden, in one particular case, throws a compiler error: for (UINT i = 0; apTe... 5 Jun 2008 09:38
Order of evaluation of expression I am thinking of implementing a manipulator for a stream whose role would be to lock the stream, run some prefix code (output a few initial values) and then run some suffix code (flush and unlock the stream). The code below illustrates locking. struct Lock { void lock(); void unlock(); }; struct... 3 Jun 2008 20:12
Another question about multidimentional arrays I have wondered what the benefit is to using multidimensional arrays. Isn't int arr[10][10]; basically the same as int arr[100]; Is the only benefit in how you visual the array in your mind in columns and rows? Is there any speed gain in using a single dimensional array? Regards, Ron Francis www.RonaldFr... 3 Jun 2008 20:12
Passing address of multidimentional array I have an array defined in main.c and with to access it from a function in another file preferrably using array indices but pointers would be OK. I am not sure how to specify the function parameter or how to index the elements via the foreign function. Would like a little advice rather than proceeding blindly becau... 3 Jun 2008 20:12 |