Search:

Type: Posts; User: Ducky

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,182

    How to send LVN_COLUMNCLICK message?

    I read it on MSDN that it should be sent through WM_NOTIFY.

    And that the iSubItem number has to be put in a NMLISTVIEW structure.

    But where do I put the NMLISTVIEW structure to tell it to which...
  2. Replies
    9
    Views
    885

    Thats true, I didnt think about this.

    Thats true, I didnt think about this.
  3. Replies
    9
    Views
    885

    Just added the include files you suggested. But...

    Just added the include files you suggested. But it compiles without them also and I get the good result 1.

    Anyway I realized that numbers cannot be compared as strings because they will be...
  4. Replies
    9
    Views
    885

    Thank you Jim, Now, I get 1 too on strcmp(). I...

    Thank you Jim,

    Now, I get 1 too on strcmp(). I dont understand why I got 0 before.
  5. Replies
    9
    Views
    885

    strcmp with numbers

    Hi, I need to compare two numbers.

    If the numbers are not made out of the same number of digits strcmp() will return 0 meaning that they are equal.

    strncmp() will return the correct answer 1,...
  6. The program is working fine, it's just that the...

    The program is working fine, it's just that the resource file will be a 16-bit program once it's created.


    I prefer CodeBlocks as editor for just a simple test program.

    I created a project in...
  7. No, no, I was just putting it simple. Of course...

    No, no, I was just putting it simple. Of course after rc.exe I compiled it with command: cl.exe program.cpp resource.res, and it compiled successfully.
  8. 32-bit binary resource saved as a 16-bit program

    I compiled calc.exe 32-bit with with the resource compiler rc.exe in command line, on Windows 10 with VS 2017.

    When I try to execute it, after loading the resource and writing it to a file, I get...
  9. Thread: AnsiNext

    by Ducky
    Replies
    4
    Views
    769

    Thank you Sir, clear explanation, helped a lot!

    Thank you Sir, clear explanation, helped a lot!
  10. Thread: AnsiNext

    by Ducky
    Replies
    4
    Views
    769

    Thanks, it's working with pText++ and CharNext...

    Thanks, it's working with pText++ and CharNext too. :)
  11. Thread: AnsiNext

    by Ducky
    Replies
    4
    Views
    769

    AnsiNext

    I'm trying to replace the AnsiNext function, which is obsolete, by incrementing the pointer in a Charles Petzold program.
    But it keeps crashing on the pointer incrementation: .

    What could be the...
  12. Replies
    4
    Views
    637

    I know but it's much too cumbersome and you...

    I know but it's much too cumbersome and you cannot compile just one file you have to create a project for it.
  13. Replies
    4
    Views
    637

    IDE that works with Visual Studio 2017

    Is there any IDE that works with Visual Studio 2017 and allows to compile an individual file without creating a project?

    Apparently Code Blocks isn't working anymore with VS 2017.
  14. Replies
    2
    Views
    1,791

    Windows 10 and Visual Studio 14.0. Thanks for...

    Windows 10 and Visual Studio 14.0.

    Thanks for the response, I tried now myself with a Win 7 64 bit and I can select both. Strange.
  15. Replies
    2
    Views
    1,791

    ListView single select not working

    I added LVS_SINGLESEL to the windows styles but still I can select multiple rows.

    What am I doing wrong?



    #include <windows.h>
    #include <commctrl.h>
    #include <stdio.h>
    #pragma...
  16. Replies
    4
    Views
    483

    Thank you, this is the solution. Happy new year,...

    Thank you, this is the solution. Happy new year, soon... :wink:
  17. Replies
    4
    Views
    483

    Yes but as I stated and dont want to tokenize...

    Yes but as I stated and dont want to tokenize the whole sentence, I want to keep "fox jumps over the lazy dog" together.
  18. Replies
    4
    Views
    483

    Tokenizing string

    How would you cut this line in 4 parts?

    "The quick brown fox jumps over the lazy dog"

    Like this:

    The
    quick
    brown
    fox jumps over the lazy dog
  19. Replies
    0
    Views
    1,304

    How to use the WTSFreeMemoryEx function?

    WTS_TYPE_CLASS enumeration the first parameter of the WTSFreeMemoryEx function has an enum type definition.


    typedef enum {
    WTSTypeProcessInfoLevel0,
    WTSTypeProcessInfoLevel1,
    ...
  20. Replies
    2
    Views
    593

    Ah, of course, I should use a vector I guess....

    Ah, of course, I should use a vector I guess. Thank you.
  21. Replies
    2
    Views
    593

    Xoring text with binary file

    Hi,

    Why can't we xor text with binary file?

    When I xor it back half of them are not the same, garbage characters.



    #include<fstream>
    #include<iostream>
  22. Replies
    11
    Views
    1,631

    Just like Laserlight showed me: ...

    Just like Laserlight showed me:



    vector<DATA> ks1(200);
  23. Replies
    11
    Views
    1,631

    Its a large C program that I transformed into...

    Its a large C program that I transformed into c++. :)

    Replaced mallocs with vectors.
  24. Replies
    11
    Views
    1,631

    Awesome, now its working! :) Thanks Laserlight...

    Awesome, now its working! :)

    Thanks Laserlight and Elysia for the detailed explanations!
  25. Replies
    11
    Views
    1,631

    So how do you initialize a union inside a struct...

    So how do you initialize a union inside a struct because this one wont compile for me.
    I get "error C2143: syntax error: missing ';' before '{'"



    typedef struct DES_ks
    {
    union
    {
    ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4