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

Search:

Type: Posts; User: Mybowlcut

Page 1 of 65 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: Cannot convert from 'X' to 'Y'

    I only mentioned it because I couldn't find the source of the error, so thought it may be due to the metaprogramming code. I see now that I am completely blind!

    Cheers. :)
  2. [RESOLVED] Cannot convert from 'X' to 'Y'

    Hey.

    I'm running into a problem with a class that uses template metaprogramming. I'm not well-versed with the methodology, so I'm a bit confused as to why I'm getting the error.

    The screen...
  3. Replies
    9
    Views
    1,575

    Re: converting integer to string and appending

    To convert an int to a string. As for appending a string to another string, that's just string concatenation.
  4. Re: Polymorphism violating private access modifier

    Actually, you have misunderstood what I meant. I was asking nuzzle how he would do this:

    I misread what he wrote, as I thought he said he was somehow enforcing that derived class virtual functions...
  5. Re: Polymorphism violating private access modifier

    Sorry, I understand that, but I still don't understand how you would enforce that a virtual function declared as private in a derived class but declared public in the base class is not called from a...
  6. Re: Polymorphism violating private access modifier

    How can they not be accessible considering my first post's sample code and output?
  7. Re: Polymorphism violating private access modifier

    Here is my GUI_Object class:

    class GUI_Object;

    typedef boost::shared_ptr<GUI_Object> gui_object_ptr;
    typedef boost::weak_ptr<GUI_Object> weak_gui_object_ptr;

    class Screen_Event;

    // The...
  8. Re: Polymorphism violating private access modifier

    The real reason that it came about was that I was creating a GUI builder, and I needed to have a function that could create an object that derived from GUI_Object based on a string parameter and...
  9. Re: Polymorphism violating private access modifier

    Because they suck at designing inheritance hierarchies. ;)

    I have a GUI_Object base class and decided recently that I needed my Text class to derive from it. However, the Text class shouldn't have...
  10. Polymorphism violating private access modifier

    I'm surprised I haven't encountered this yet (or perhaps I have but somehow didn't notice):


    #include <iostream>
    #include <vector>

    class Base
    {
    public:
    virtual bool Is_Mouse_Over()...
  11. Replies
    3
    Views
    1,274

    Re: Foo having a boost::weak_ptr member

    That completely slipped my mind haha. Cheers. :)
  12. Replies
    9
    Views
    1,057

    Re: passing vector object through parameters

    Edit: Nevermind, will let them work it out from Paul's post.
  13. Replies
    3
    Views
    1,274

    Foo having a boost::weak_ptr member

    As described in the code below: it doesn't seem possible, but I could really use it... Does anyone have any ideas of how to get around this?


    #include <iostream>

    #include...
  14. Replies
    12
    Views
    1,491

    Re: Off topic: A belated adieu

    That's awesome that you've figured out what's right for you. My Dad just realised after 49 years of life that he wants to direct movies, so he is studying that. Never too late to do what you want to...
  15. Re: Prining a * from a user input integer Loop Help

    Care to elaborate or just going to leave it at that?
  16. Replies
    3
    Views
    2,520

    Re: Precompiled header include order

    Just bumping this up to the top.
  17. Re: Prining a * from a user input integer Loop Help

    Like that?
  18. Replies
    3
    Views
    2,520

    Precompiled header include order

    I've just started properly using precompiled headers in my game engine:

    // stdafx.h : include file for standard system include files,
    // or project specific include files that are used...
  19. Replies
    3
    Views
    1,570

    Re: Static library using virtual methods

    So then IDBProvider is an abstract type - you either made it inherit from a class with a pure virtual function and did not override it, or you gave it a pure virtual function directly. Your options...
  20. Replies
    3
    Views
    1,570

    Re: Static library using virtual methods

    To create a pure virtual function:

    virtual int getInt(string columnLabel) = 0;

    Please use code tags.
  21. Re: I am having problems compiling and running this program

    Please use code tags to format your code.

    Your program gave me this linker error in Visual Studio:
    Error 2 error LNK2019: unresolved external symbol _main referenced in function...
  22. Replies
    1
    Views
    1,776

    Re: Compiling problem: Read serial data

    How did you add the files into your project? I have used CSerial successfully before, so it is definitely a problem with how you've added it or where it is on your computer. Chances are you might not...
  23. Replies
    7
    Views
    1,516

    Re: Type mismatch

    Yeah I know it's legal - that was my point, although I should have phrased it better.
  24. Replies
    7
    Views
    1,516

    Re: Type mismatch

    Great..


    Function get_player_attributes(team_no, players_per_team, attribute_name)
    ' ...
    get_players_attributes = player_attributes
    End Function


    I should mention at this point...
  25. Replies
    7
    Views
    1,516

    Re: Type mismatch

    I guess it is "classic ASP", but I'm not sure because I have very limited experience with it.


    ' Used to get an array of a specific teams players' atttributes (e.g. name, goals, points)
    Function...
Results 1 to 25 of 1601
Page 1 of 65 1 2 3 4





Click Here to Expand Forum to Full Width

Featured