Search:

Type: Posts; User: Ducky

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    1,143

    My vector is used as an unsigned char array, I...

    My vector is used as an unsigned char array, I guess I could assign a string object to an unsigned char array too.

    Thank you laserlight.
  2. Replies
    2
    Views
    1,143

    Split a char vector

    I have a char vector with text in it.

    I'd like to split it into strings at every new line.

    Is it better to assign the vector to a string first or is there a function that can do this with the...
  3. Replies
    2
    Views
    1,237

    Thank you, that was it.

    Thank you, that was it.
  4. Replies
    2
    Views
    1,237

    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...
  5. Replies
    0
    Views
    2,287

    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...
  6. Replies
    9
    Views
    2,830

    Thats true, I didnt think about this.

    Thats true, I didnt think about this.
  7. Replies
    9
    Views
    2,830

    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...
  8. Replies
    9
    Views
    2,830

    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.
  9. Replies
    9
    Views
    2,830

    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,...
  10. 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...
  11. 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.
  12. 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...
  13. Thread: AnsiNext

    by Ducky
    Replies
    4
    Views
    1,203

    Thank you Sir, clear explanation, helped a lot!

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

    by Ducky
    Replies
    4
    Views
    1,203

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

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

    by Ducky
    Replies
    4
    Views
    1,203

    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...
  16. Replies
    4
    Views
    1,505

    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.
  17. Replies
    4
    Views
    1,505

    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.
  18. Replies
    2
    Views
    2,836

    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.
  19. Replies
    2
    Views
    2,836

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

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

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

    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.
  22. Replies
    4
    Views
    786

    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
  23. Replies
    0
    Views
    2,178

    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,
    ...
  24. Replies
    2
    Views
    898

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

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

    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>
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4