Search:

Type: Posts; User: Kirdra

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,345

    string reference

    Let's say I have a function that takes a reference to a string, is it safe to pass a c style string to this function? Or should I use a local copy so the constructor does it's job? I tested this and...
  2. Replies
    2
    Views
    892

    Thanks for the quick response, that's what i was...

    Thanks for the quick response, that's what i was looking for.
  3. Replies
    2
    Views
    892

    How does a class name return an expression

    How can the name of an object of a class be used as an expression, like what would I need to do in the class definition? I'm thinking something along the lines of how std::cin can be used to check if...
  4. Replies
    6
    Views
    3,122

    Thank you adeyblue, that looks very helpful :)

    Thank you adeyblue, that looks very helpful :)
  5. Replies
    6
    Views
    3,122

    Emulate an '@' keypress or any other char

    I know how I can use WM_KEYDOWN and WM_KEYUP to emulate keypresses or keyboard_event but this only seems to work for virtual key codes. How do I emulate character keys like '@'.

    Thanks.
  6. Replies
    1
    Views
    1,349

    Writing to custom resources

    Sorry to bother you :)

    I got a .bin im using as a custom resource file where I am storing 1 byte to save the state of a menu item, I don't want external files.


    Here is what I tried and it...
  7. I think I found my answer, dunno till I try it...

    I think I found my answer, dunno till I try it out, FindWindowEx is used for this purpose I am reading. FindWindow doesn.t work to get the child control handles.
  8. Get a window handle for control of other program

    I'm trying to make a little program that will fill out my account information on another program, because I can't be bothered to type it out every time. :)

    So here is what I am trying to do, get...
  9. Replies
    3
    Views
    1,432

    I want to get the pixels from the entire screen...

    I want to get the pixels from the entire screen not just a window.

    edit:

    I've discoverd that if i check the same spot hundreds of times sometimes it will show the color, so i guess it must have...
  10. Replies
    3
    Views
    1,432

    Finding the color of any pixel on screen

    I need to find the color of any/all pixel/s on the screen. The code I got so far seems to do that but it doesn't get the pixel of my game window (another program, direct draw window app).

    Here is...
  11. Replies
    6
    Views
    1,421

    thx twomers

    yea that works, thanks.
  12. Replies
    6
    Views
    1,421

    i don't want number on output

    if(keydown(VK_NUMPAD4))
    {
    while(keydown(VK_NUMPAD4))
    Sleep(1);

    cout << "set scroll number: ";
    cin >> scroll_num;

    return;
    }
  13. Replies
    10
    Views
    1,210

    I learned C++ first, but reviewing K&R TCPL was...

    I learned C++ first, but reviewing K&R TCPL was worthwhile.
  14. Replies
    4
    Views
    1,035

    string str = "Percentage "; str += percent;

    string str = "Percentage ";
    str += percent;
  15. Thread: C++ cout

    by Kirdra
    Replies
    30
    Views
    5,000

    namespaces are useful if you make a function...

    namespaces are useful if you make a function library. Their purpose is to reduce name clashes. Also it helps a human reader understand what a function or variable is for if they are grouped together...
  16. Replies
    29
    Views
    3,061

    I have brought you a fountain for your game... I...

    I have brought you a fountain for your game... I would also give your characters some kind of location variables (i.e x,y).



    cout << "You arrive at the fountain of forgiveness..." << endl;...
  17. Replies
    2
    Views
    1,635

    I had this problem using DirectInput, when I...

    I had this problem using DirectInput, when I played my game on another computer it worked.
  18. Replies
    7
    Views
    3,340

    That class is the equivalent of using plain...

    That class is the equivalent of using plain functions, if you only need one instance of data you don't need to put it in a class; you can just use plain data and functions. However a monster is the...
  19. Thread: Goto Command

    by Kirdra
    Replies
    13
    Views
    2,019

    He didn't ask for reasons not to use it, yes,...

    He didn't ask for reasons not to use it, yes, goto is shunned but it has its uses, particularly for optimisations.
  20. Replies
    15
    Views
    2,416

    The data is best kept private so you can...

    The data is best kept private so you can explictly control how objects are used. The public section provides the interface to the user. Also if there is an error causing a member to take an illegal...
  21. Replies
    16
    Views
    10,298

    I just use an integer to represent a tile; if it...

    I just use an integer to represent a tile; if it is above a certain number it is walkable, if not it is non walkble.

    Saving and loading is quite simple, though you'll have to read a tutorial or...
  22. Replies
    10
    Views
    1,453

    Turbo C++ runs in fullscreen :)

    Turbo C++ runs in fullscreen :)
  23. Replies
    6
    Views
    985

    add the scope operator to string... std::string.

    add the scope operator to string... std::string.
  24. Thread: Need loop help

    by Kirdra
    Replies
    9
    Views
    1,183

    I think you need to use integer type data...

    I think you need to use integer type data (int/char) to iterate through loops.
  25. Replies
    13
    Views
    3,621

    I did a test at drawing bitmaps, with DirectDraw...

    I did a test at drawing bitmaps, with DirectDraw I could draw over 1,000,000 32*32 bitmaps each loop(with considerable slowdown). The same test with the D3D9 caused the computer to crash, I then...
Results 1 to 25 of 108
Page 1 of 5 1 2 3 4