Search:

Type: Posts; User: pYro

Search: Search took 0.00 seconds.

  1. Replies
    35
    Views
    20,084

    this algorithm should work 0 + 0 = 0 1 + 0 =...

    this algorithm should work

    0 + 0 = 0
    1 + 0 = 1
    0 + 1 = 1
    1 + 1 = 10
    1 + 1 + 1 = 11
    from http://www.allaboutcircuits.com/vol_4/chpt_2/2.
  2. no worries :), stumped me too for a bit; so was...

    no worries :), stumped me too for a bit; so was good to find a solution.
  3. gotit, GetMessage returns -1 after window close,...

    gotit, GetMessage returns -1 after window close, in the loop check for getmessage error like msdn example

    // Message Loop
    BOOL b_Ret = FALSE;
    while( ( b_Ret =...
  4. Check the return value of GetMessage or take a...

    Check the return value of GetMessage or take a look at PeekMessage, Strange the window messgaes look fine, can you verify that WM_DESTROY is being called.

    WNDCLASS should be fine msdn states: "You...
  5. Replies
    5
    Views
    1,606

    ++ has higher precedence than *, both t++...

    ++ has higher precedence than *, both t++ increment the pointer. Is this your intention
  6. Replies
    3
    Views
    1,438

    the message loop is provided by the DialogBox...

    the message loop is provided by the DialogBox function, if you use CreateDialog ( modeless ) you will be using your own message loop. yes you can create a memory block and put a DLGTEMPLATE first...
  7. Replies
    3
    Views
    1,438

    you are right, you only should need a separate...

    you are right, you only should need a separate class for windows that require different class styles n such, not window styles. However for simple windows like about boxes, you can use a modal dialog...
  8. Replies
    6
    Views
    3,780

    yes that is far simpler, but if the user of your...

    yes that is far simpler, but if the user of your app has not installed IE past a certain version, the shell lightweight API may be missing and it has a terrible overhead for dependencies as it...
  9. Replies
    6
    Views
    3,780

    RegCreateKeyEx, RegSetValueEx Function's. These...

    RegCreateKeyEx, RegSetValueEx Function's. These aren't the easiest of API for a beginner to use. Search around for examples and keep an eye out for a registry wrapper class, there are a few I have...
  10. yes, msdn says

    yes, msdn says
  11. when the window is minimised it wont have...

    when the window is minimised it wont have keyboard focus, you can use a hook to capture the keyboard information SetWindowsHookEx Function, Using Hooks
  12. Replies
    4
    Views
    1,133

    still need to declare a variable double *x =...

    still need to declare a variable
    double *x = new double[ 200 ]; no data type sets x to an int/undefined?? and sizeof(x) is returning 4 most probably ( 32 bits ) or 8 for 64-bit OS
  13. If a window has been created it will still...

    If a window has been created it will still receive messages while inactive, minimised, hidden.
  14. Replies
    2
    Views
    1,139

    yes you are using it wrong, 6 || 9 equals true....

    yes you are using it wrong, 6 || 9 equals true. If you are comparing answer to either 6 or 9 you need to do each comparison seperatly
    ( answer == 6 ) || ( answer == 9 )

    look up operator...
  15. Replies
    10
    Views
    3,639

    The console is limited to the maximum width of...

    The console is limited to the maximum width of chars in its properties. This is restricted to modification with the mouse and explains why the window will resize to a certain extent then stop....
  16. Replies
    1
    Views
    788

    const int GetByte(void* i, unsigned char byte) {...

    const int GetByte(void* i, unsigned char byte)
    {
    return ( ( char* ) i )[ byte ];
    }

    you are taking the void* and using its address '&i' rather than i itself
  17. in your header files add #pragma once this will...

    in your header files add
    #pragma once this will prevent multiple declarations. A result of multiple declaration is the compilation unit being dropped and data objects declared following the...
  18. Replies
    6
    Views
    12,599

    someString is one thing, and you are explicitly...

    someString is one thing, and you are explicitly specifying its definition twice.

    try
    template< typename T > std::string ContainerClass< T >::someString = std::string("test");

    if you use a...
  19. Replies
    1
    Views
    874

    you cannot define a callback in a 'MyWindow'...

    you cannot define a callback in a 'MyWindow' class and use it with a windows system because the callback is a function of type 'MyWindow::WndProc' and windows has no way of knowing what the...
  20. Replies
    3
    Views
    3,294

    What sort of project type are you using, a win32,...

    What sort of project type are you using, a win32, .net, or managed. I only use win32 projects, but that looks like it is using some interface related stuff, i.e. COM objects. But an undefined error...
  21. Replies
    7
    Views
    976

    you need to assign data to newtime. not sure...

    you need to assign data to newtime.

    not sure what your intentions were for the sprintf call.
    <code>
    newtime[ 0 ] = 'a';
    newtime[ 1 ] = 'b';
    newtime[ 2 ] = 'c';
    </code>
  22. Replies
    3
    Views
    1,773

    rags_to_riches is right, also I didn't read the...

    rags_to_riches is right, also I didn't read the code but I noticed an abundance of 'random2 == ??'. Use arrays with loops. When it comes time to update this code adding even a single case to random2...
  23. goto statements are fine except they are evil....

    goto statements are fine except they are evil. People are pressuring C++ standard boards ( IEEE 'n' stuff ) to remove it from the language as it is considered an illogical statement as it causes an...
Results 1 to 23 of 23