Search:

Type: Posts; User: renanmzmendes

Search: Search took 0.01 seconds.

  1. Yeah, I believe that's the best solution...

    Yeah, I believe that's the best solution available. Thanks.

    renanmzmendes
  2. Constructor calling another constructor

    Hi,

    In my code I have the following constructors for my class Point:



    Point();
    Point(float x, float y, float z);
  3. Replies
    5
    Views
    1,457

    So I can do it. Can anyone give me a refference...

    So I can do it. Can anyone give me a refference for further reading? Thanks.

    renanmzmendes
  4. Replies
    5
    Views
    1,457

    Windows Applications

    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...
  5. Replies
    6
    Views
    1,716

    Thanks, Elysia. I found out that argv[1] will...

    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
  6. Replies
    6
    Views
    1,716

    Yeah, that's what I have already done (according...

    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");
    ...
  7. Replies
    6
    Views
    1,716

    Hi, Wraithan. I'm not quite sure if I...

    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...
  8. Replies
    6
    Views
    1,716

    Saving and Loading Files

    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,...
  9. Replies
    5
    Views
    8,841

    Thanks, everyone. I forgot about specifying where...

    Thanks, everyone. I forgot about specifying where the type came from. So,



    WhereTheTypeIsDefined::Colors* c


    really did the trick.

    Thanks once again,
  10. Replies
    5
    Views
    8,841

    Using typedefs from other classes

    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,...
  11. Replies
    5
    Views
    4,221

    That's what I've thought too. But that class...

    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...
  12. Replies
    5
    Views
    4,221

    Destructor inaccessible

    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...
  13. Actually, I'm not using a B (or A) object as a...

    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.
    ...
  14. Thanks, laserlight. That indeed did the trick....

    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
  15. Hi, Thanks for your replies, people. ...

    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...
  16. Error when using other class' object as argument

    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...
  17. Replies
    2
    Views
    1,633

    Thanks, Elysia.

    Thanks, Elysia.
  18. Replies
    2
    Views
    1,633

    Declaring Global Variables

    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...
Results 1 to 18 of 18