Search:

Type: Posts; User: Ducky

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    1,947

    No, not sub-process, just opens a file simply. ...

    No, not sub-process, just opens a file simply.

    But you gave me an idea, maybe if I open it up from a thread I could check for the thread if its still running.
  2. Replies
    2
    Views
    1,947

    Checking if a file is closed

    I want my program to detect when a file is closed in order to encrypt it again.

    Is there a better way to do this than checking periodically the process list if the program opened the file is still...
  3. Replies
    5
    Views
    1,751

    Yes, that's a simpler solution than mine. With...

    Yes, that's a simpler solution than mine.

    With only the modulus operator you replaced half of my code :)

    Thank you Salem.
  4. Replies
    4
    Views
    1,701

    Ah, of course, thanks!

    Ah, of course, thanks!
  5. Replies
    4
    Views
    1,701

    No, Names[1] will access the second letter in...

    No, Names[1] will access the second letter in each name, returns:
    a
    i
    o

    I didnt express myself clear enough, I meant second element of the list.

    I would like to access "Dick".

    I guess we...
  6. Replies
    4
    Views
    1,701

    Access specific element in for each loop

    Hello

    Can you access only a specific element in a for each loop?

    For example how would I print only the second element in the Names array?


    #include <windows.h>
    #include <array>
    #include...
  7. Replies
    5
    Views
    1,751

    No, finally its not permutation what I was...

    No, finally its not permutation what I was looking for.

    This is permutation:
    abc
    acb
    bac
    bca
    cab
    cba
  8. Replies
    5
    Views
    1,751

    Thank you, yes, its permutation what I was...

    Thank you, yes, its permutation what I was looking for, with permutation it is much simple.

    I managed to do it with for loop after all.


    #include <windows.h>
    #include <iostream>
    using...
  9. Replies
    5
    Views
    1,751

    Looping through a list infinitely

    Hello and Happy New Year,

    I would like to loop through a list of names infinitely like this:

    Harry
    Dick
    Tom
    ===
    Dick
    Tom
  10. Replies
    0
    Views
    27,321

    No debug output in Visual Studio

    Hello

    Im trying to debug WM_KEYDOWN messages in Visual Studio 2022 in order to see why I dont get Ctrl-A message in the second edit box but I dont see any message in the debug output window.

    Im...
  11. Replies
    2
    Views
    4,245

    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.
  12. Replies
    2
    Views
    4,245

    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...
  13. Replies
    2
    Views
    3,083

    Thank you, that was it.

    Thank you, that was it.
  14. Replies
    2
    Views
    3,083

    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...
  15. Replies
    0
    Views
    6,088

    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...
  16. Replies
    9
    Views
    11,844

    Thats true, I didnt think about this.

    Thats true, I didnt think about this.
  17. Replies
    9
    Views
    11,844

    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...
  18. Replies
    9
    Views
    11,844

    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.
  19. Replies
    9
    Views
    11,844

    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,...
  20. 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...
  21. 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.
  22. 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...
  23. Thread: AnsiNext

    by Ducky
    Replies
    4
    Views
    6,068

    Thank you Sir, clear explanation, helped a lot!

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

    by Ducky
    Replies
    4
    Views
    6,068

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

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

    by Ducky
    Replies
    4
    Views
    6,068

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