Search:

Type: Posts; User: Ducky

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    493

    Thank you, that was it.

    Thank you, that was it.
  2. Replies
    2
    Views
    493

    Issue with xoring C++ string

    I am trying to use a C++ string as the key for xoring another string.
    The program crashes with (0xC0000005) Access violation.
    Though it works if the key is declared as char key[260].


    #include...
  3. Replies
    0
    Views
    1,327

    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...
  4. Replies
    9
    Views
    1,097

    Thats true, I didnt think about this.

    Thats true, I didnt think about this.
  5. Replies
    9
    Views
    1,097

    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...
  6. Replies
    9
    Views
    1,097

    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.
  7. Replies
    9
    Views
    1,097

    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,...
  8. 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...
  9. 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.
  10. 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...
  11. Thread: AnsiNext

    by Ducky
    Replies
    4
    Views
    805

    Thank you Sir, clear explanation, helped a lot!

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

    by Ducky
    Replies
    4
    Views
    805

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

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

    by Ducky
    Replies
    4
    Views
    805

    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...
  14. Replies
    4
    Views
    736

    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.
  15. Replies
    4
    Views
    736

    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.
  16. Replies
    2
    Views
    1,873

    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.
  17. Replies
    2
    Views
    1,873

    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...
  18. Replies
    4
    Views
    518

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

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

    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.
  20. Replies
    4
    Views
    518

    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
  21. Replies
    0
    Views
    1,391

    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,
    ...
  22. Replies
    2
    Views
    633

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

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

    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>
  24. Replies
    11
    Views
    1,703

    Just like Laserlight showed me: ...

    Just like Laserlight showed me:



    vector<DATA> ks1(200);
  25. Replies
    11
    Views
    1,703

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

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

    Replaced mallocs with vectors.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4