Type: Posts; User: Feoggou
Search took 0.04 seconds.
January 10th, 2012, 03:35 PM
thanks for your help guys.
November 9th, 2011, 10:23 AM
I'm having the following situation: I'm building an application that requires a service. The service is sometimes creating files and folders, for the user (it actually receives the files,...
October 11th, 2011, 10:57 AM
And what about the static data members?
I suppose, but I'm not 100% sure, that they're ok. Am I right?
And, is there a workaround to making a class singletone besides using pointers?
October 11th, 2011, 10:17 AM
So, the c++ standard says nothing about thread-safety of local static variables?
October 11th, 2011, 09:37 AM
I need some quick help here: Are local static variables thread-safe?
I'm thinking about something like this:
static MyClass myObj;
September 5th, 2011, 11:27 AM
I work with Visual C++ 2010, but never used test projects (unit tests, etc.) or profiling before. I worked only for myself so far (not in a team), and every time I needed to test something,...
June 27th, 2011, 09:31 AM
I have found this webpage:
which suggests these books:
some best-of-breed C++ morality guides:
1. Cline, Lomow, and Girou,...
March 9th, 2011, 07:59 AM
Well, it was an easy thing to put the inline functions in the header and don't use another .cpp file for one or two short inline functions.
Ok. thanks for helping me. The problem is solved....
March 9th, 2011, 05:41 AM
I've made a simple example.
the compile error is in Exceptions.h, in the constructor, where it calls:
the compile error is:
error C2079: 've' uses undefined class...
March 8th, 2011, 09:36 AM
a solution would be to define the GetDevice() function in a .cpp file (that would cause no error), but I don't understand the problem. :(
March 8th, 2011, 09:20 AM
m_Video is instantiated in main.cpp but General.h declared it as extern (about this extern I have shown in the previous post)
But that is meaningless, because if I write:
March 8th, 2011, 05:23 AM
1. Which is the best way to do it?
March 8th, 2011, 05:07 AM
thanks a lot.
When I was writing friend class class2; I was thinking that it is the same as a class class2; + declare it as friend.
As about the #pragma, I was in a hurry to put these sample...
March 7th, 2011, 02:32 PM
I do use #pragma once at the beginning of every header file.
I've changed my code in a few places. Now I've gotten to a situation like this:
March 7th, 2011, 01:51 PM
header guards? you mean, as the Microsoft's #pragma once ? Then, yes. Otherwise, perhaps not.
I don't know if I can post all my code in one post. Can I know the order in which files are included...
March 7th, 2011, 01:42 PM
if I do that I receive the following error:
error C2757: 'na' : a symbol with this name already exists and therefore this name cannot be used as a namespace name
perhaps because that header...
March 7th, 2011, 01:14 PM
well, in my little bit complicated project, I use: I'll re-check and write:
in general.h (general.h includes different header files):
March 7th, 2011, 10:42 AM
I don't understand what you mean. As far as I know, the definition of a class in c++ can belong in one header file only.
March 7th, 2011, 10:40 AM
ok, and if Class2 belongs to myNamespace, and thus, File2.h contains myNamespace which contains Class2, what is it best to do? Is there a way I can share a namespace without including the actual...
March 5th, 2011, 10:34 AM
Do you know some "good practices"?
I've came across certain situations where I had to add things to classes that required certain headers and the project could not have been compiled anymore...
March 5th, 2011, 09:57 AM
why aren't you just writing:
char s = "abc";?
but if you really don't want to waste that one byte (which is the '\0' character) you can also write like this:
s = 'a';...
March 5th, 2011, 09:46 AM
thanks a lot.
It seems that if you have a class defined like this:
March 4th, 2011, 01:12 PM
What is the difference between these object instantiation methods:
February 21st, 2011, 10:08 AM
ok, now I understood what he meant.
thanks guys for your help.
February 21st, 2011, 08:37 AM
ok, thanks guys for your help. It's clear to me now.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.