Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: fsixteen

Search: Search took 0.00 seconds.

  1. Re: Conflicting declaration of objects. Need Solution Please

    Code after edit
  2. Re: Conflicting declaration of objects. Need Solution Please

    How to solve this problem.

    class FlipUpCommand: public Command
    {
    public:
    template <typename t>
    FlipUpCommand(t *obj)
    {

    }
  3. Re: Conflicting declaration of objects. Need Solution Please

    Why the colors are not appearing in my code ?
  4. Re: Conflicting declaration of objects. Need Solution Please

    trying code edit
  5. Re: Conflicting declaration of objects. Need Solution Please

    FlipUpCommand switchUp(*myobj);
  6. Re: Conflicting declaration of objects. Need Solution Please

    Error: `void*' is not a pointer-to-object type
  7. Re: Conflicting declaration of objects. Need Solution Please

    Ok. then I have to put FlipUpCommand switchUp(*myobj); statement in each 'IF' which I do not want to do.
  8. Re: Conflicting declaration of objects. Need Solution Please

    I am assuming that I do not have the right to change the vendor class and each vendor is providing its own class of implementation.
  9. Conflicting declaration of objects. Need Solution Please

    The Light and Fan are two different vendor classes and they are not derived from any base class.
    I am trying to implement the Command design pattern but with generic implementation, so it should...
  10. Replies
    9
    Views
    760

    Re: How to create global object

    The Light and Fan are two different vendor classes and they are not derived from any base class.
    I am trying to implement the Command design pattern but with generic implementation, so it should...
  11. Replies
    9
    Views
    760

    Re: How to create global object

    I am trying to create an object at user choice and then passing that object to the
    FlipUpCommand switchUp(*myobj);

    If user select Light then it creates Light object, if user select Fan...
  12. Replies
    9
    Views
    760

    Re: How to create global object

    Hi,
    How to solve the below mentioned problem ?

    Light *myobj;
    Fan *myobj;
    int choice;
    cout<<"Select Light (1): ";
    cout<<"Select Fan (2): ";
    cin>>choice;
  13. Replies
    9
    Views
    760

    How to create global object

    if (choice ==1){
    Light *myobj = new Light();
    }
    FlipUpCommand switchUp(*myobj);

    Error: `myobj' undeclared (first use this function)

    Please advice how to solve this problem without...
Results 1 to 13 of 14


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center