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

Search:

Type: Posts; User: NLscotty

Page 1 of 9 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    965

    game with 3 threads

    Hello,

    I'm coding my own little game, which has 3 threads, the GUI thread, game logic thread and the packet recv thread. I'm coding this in C#. I believe the best thing I could do is to somehow...
  2. Thread: 2 Threads

    by NLscotty
    Replies
    2
    Views
    633

    2 Threads

    Hello,

    I'm writing a small tool which connects to a server. It recieves packets and when it does, it has do something. So when a packet is recieved my tool should do something, how should I do...
  3. Replies
    3
    Views
    770

    std::string debug function

    Hello,

    I'm trying to write a debug functions for my application so I can see all the values I like to.

    My goal is it looks like this:


    void Debug(std::message, ...)

    So that I can call it...
  4. Replies
    4
    Views
    702

    Re: c++ unsigned long long question

    http://msdn.microsoft.com/en-us/library/s3f49ktz%28v=vs.80%29.aspx

    Is perhaps intresting for you.
  5. Replies
    6
    Views
    988

    Re: C++ Loop will not end

    int playGame()
    {
    int count =0; int x = (rand()%10)+1; int y; // you could use this: int x = 0 , y = 0 , z= 2;

    for(int i = 0; i < 3; i++)
    {
    cout << "Guess the number 1-10: ";
    cin >>...
  6. Thread: Game design

    by NLscotty
    Replies
    0
    Views
    918

    Game design

    Hello,

    I've made a game design in classes. The games should look like this in the final stage. http://mmohuts.com/wp-content/gallery/maplestory/maplestory-jumping.jpg I now it wil never be so...
  7. Replies
    9
    Views
    4,366

    Re: syntax error : missing ';' before '.'

    Ok, I'll change this. I'll first redesign my ideas. I think I know a better solution instead of the singletons.

    I've checked ur website and it seems you know something about games? And it seems...
  8. Replies
    9
    Views
    4,366

    Re: syntax error : missing ';' before '.'

    It's for a little game. A class for a character, one for the monsters, one for the map and one for the Server connection. They are not dependent on each other. Or I could create all these instances...
  9. Replies
    9
    Views
    4,366

    Re: syntax error : missing ';' before '.'

    Thanks D_Drmmr, this looks indeed better. But if I've got 3 or 4 classes which should exists always the duration of the program, could I not make it like I did? Or is your way always better?

    grz
  10. Replies
    9
    Views
    4,366

    Re: syntax error : missing ';' before '.'

    O gosh, let's say it's late.

    Is this design good?
  11. Replies
    9
    Views
    4,366

    syntax error : missing ';' before '.'

    Hello,

    I'm using a singelton class ( is this coded correctly?), and from the main class, im trying to initiliaze my Direct2D class, only I do get this error:

    error C2143: syntax error : missing...
  12. Thread: Styles

    by NLscotty
    Replies
    1
    Views
    1,192

    Styles

    Hello,

    I would like to understand styles better. I mean the styles from a control or a window or what so ever.

    DWORD dw = 5;

    That makes sense bevause dw has the value 5, but this.

    DWORD...
  13. Replies
    2
    Views
    3,684

    Re: Capturing DbgPrint() output

    You tried running as admin?
  14. Replies
    13
    Views
    13,397

    Re: Pair with 3 elements?

    Would this fit?


    std::pair<int a , std::pair < int b, int c >>
  15. Replies
    3
    Views
    3,957

    Re: NtQuerySystemInformation vs Win64

    For some weird reason, process and thread id's are 64bit in the kernel and 32bit in the documented windows api on x64

    Process and thread is are 64 bit in kernel and only 32 bit in the...
  16. Replies
    3
    Views
    1,017

    Re: bringing the window to foreground

    http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545%28v=vs.85%29.aspx

    And for the second para use HWND_TOPMOST
  17. Replies
    3
    Views
    657

    Re: Using a class in other class

    why is it not possible to do it in the constructor with 'new'?
  18. Replies
    6
    Views
    2,992

    Re: std::make_pair

    Omg, so stupid. Thanks a lot :)
  19. Replies
    6
    Views
    2,992

    Re: std::make_pair

    Oki, ill post some more code



    class WinTraits
    {
    public:
    WinTraits();
    //,,,,,,,,,,,,,,,
    //,,,,,,,,,,,,,,,
  20. Replies
    6
    Views
    2,992

    Re: std::make_pair

    I never use const infront of it. I use it as the first example and it doesn NOT work. That's what is so weird, or there is a reason I don't know yet.
  21. Replies
    6
    Views
    2,992

    std::make_pair

    Hello,

    I'm using std::make_pair, to fill a std::pair. I only get some error and I can't find out why.


    std::pair <LONG,LONG> ControlSize;
    ControlSize = std::make_pair(rc.right -...
  22. Thread: Class Design

    by NLscotty
    Replies
    11
    Views
    2,030

    Re: Class Design

    Sorry, I was not clear about hundred. I will add also functions for loading Icons etcetc. I did take a look at Qt and MFC to. Qt has even more members.

    But still, if I want to have a QIcon class....
  23. Thread: Class Design

    by NLscotty
    Replies
    11
    Views
    2,030

    Re: Class Design

    For me a few hundered are quite a lot. And in that case I'll have all kind of Icon functions in my WinTraits class, isn't that wierd?


    [CODE]
    class wintraits..
    ...
    private:
    WinIcon* wIcon;...
  24. Thread: Class Design

    by NLscotty
    Replies
    11
    Views
    2,030

    Re: Class Design

    Thanks this realy helped me in thinking. Also thanks to other posters of course.

    In real life terms you could say: a Windows Icon is part of the Control/Dialog, same for the background and...
  25. Thread: Class Design

    by NLscotty
    Replies
    11
    Views
    2,030

    Class Design

    Hello,

    I have a question about my win32 class again, but this is not about stuff inside it. More about how I should work with class designs.

    I create for instance a Dialog, it will go like...
Results 1 to 25 of 220
Page 1 of 9 1 2 3 4





Click Here to Expand Forum to Full Width

Featured