Yeah, I believe that's the best solution available. Thanks.
renanmzmendes
Type: Posts; User: renanmzmendes
Yeah, I believe that's the best solution available. Thanks.
renanmzmendes
Hi,
In my code I have the following constructors for my class Point:
Point();
Point(float x, float y, float z);
So I can do it. Can anyone give me a refference for further reading? Thanks.
renanmzmendes
Hi,
I've got a Win32 Console Application, built in VS 2005 Express Edition. When running my application, I would like, in a particular time, for a window to appear, where I could type some...
Thanks, Elysia.
I found out that argv[1] will be the filename when you doubleclick the file with the extension associated to your executable. That shall do it!
renanmzmendes
Yeah, that's what I have already done (according to my first message). The thing is: in my code I need to know the filename to be able to use:
ifstream reader;
reader.open("filename.x");
...
Hi, Wraithan.
I'm not quite sure if I completely understood what you've said, but I didn't want to have to type my file name every time I used my application. I wan't to use it like you'd use...
Hi,
In my graphics application, I have a class that deals with saving and loading files and I've created my own extension .x . I have a method in that class that takes the name of a file,...
Thanks, everyone. I forgot about specifying where the type came from. So,
WhereTheTypeIsDefined::Colors* c
really did the trick.
Thanks once again,
Hi,
I have created a public typedef in one class, but I want to use it in another class. Let me clarify using an example:
class WhereTypeIsDeclared
{
public:
typedef enum {RED,...
That's what I've thought too. But that class wasn't mine. It was already in a package for OpenSceneGraph developers. There must be some reason for that...
Anyway, I've simply changed my member...
Hi,
My program used to compile perfectly, until I've added a member to a class that consists of an object of another class. Now, I get the following warning:
"Class 'Reta': destructor...
Actually, I'm not using a B (or A) object as a class member. I'm justing using it as an argument in a member function of the other class. But I'll keep that in mind for future situations. Thanks.
...
Thanks, laserlight. That indeed did the trick. I've just declared class B in class A's definition and vice-versa and I was able to compile my application. Thanks again.
Renan M Z Mendes
Hi,
Thanks for your replies, people.
Each class does use the other, having functions with the other class' objects as arguments.
I've read through your answers but I haven't...
Hi,
Let's say I have two classes - A and B. In a public member function of A, I use a B object as argument. I use separate files, so I always include the appropriate .h before the function...
Thanks, Elysia.
Hi,
I'm programming with Visual Studio Express Edition 2005 and my source code consists of many separate header files (.h) and .cpp that describe the various classes. I would like, then, to...