Search:

Type: Posts; User: KeithS

Search: Search took 0.00 seconds.

  1. Snap! Silly me. Thanks!!!

    Snap!

    Silly me. Thanks!!!
  2. Thanks, Salem, but you see that's just it. I am...

    Thanks, Salem, but you see that's just it. I am having trouble figuring out how to pass a reference of something that already appears to have pointer behaviour. I would love to treat it as an if...
  3. Access vector elements in a function, how?

    Some help please. I have confused myself with pointers, structures and vectors again, and all references are only aggravating that confusion at this stage. I need a clear, specific answer, please......
  4. Replies
    6
    Views
    2,577

    I have already managed to figure out something...

    I have already managed to figure out something along those lines, xentaka, but thank you very much for the suggestion just the same!

    Consider this one solved, thanks again, and all the best.
    ...
  5. Replies
    6
    Views
    2,577

    Right you are. Thanks. What I want to do is...

    Right you are. Thanks.

    What I want to do is find the nearest space to the end of each 20 character long segment of the string and cut the string there, make a new smaller string with that (with a...
  6. Replies
    6
    Views
    2,577

    Large STL String into smaller chunks

    Okay, I have tried. I know it is still a little rough, but before I go any farther, anyone know a different or better way?



    #include <string>
    #include <vector>
    #include <iostream>

    using...
  7. Yes, that works a treat. Thank you for your help!...

    Yes, that works a treat. Thank you for your help!

    Point (appropriately) taken about revising the pointer conventions. I am reasonably clear on passing arrays by reference and value to functions,...
  8. Yeah, okay. Solved I went back to basics with...

    Yeah, okay. Solved

    I went back to basics with this one and did this ejercicio with a bog-standard int (*) pointer. Thanks for those comments. It is working now, so doing it with My_Struct is just...
  9. ???? I am sorry, did not understand that...

    ????

    I am sorry, did not understand that...
  10. Help Returning a new Dynamic Array from a Function

    Hi all.

    This is actually something related to a WINAPI project, but is a basic C++ problem that has caused a glitch. First the code, then the description of the problem...



    //Passing arrays...
  11. Replies
    3
    Views
    1,334

    ¡Muchas gracias, Joelito! That did the trick,...

    ¡Muchas gracias, Joelito!

    That did the trick, and also implemented as shown below. Nice!



    HWND hwndButton0 = CreateWindowEx(
    WS_EX_WINDOWEDGE,
    "BUTTON",
    MyFile[0].c_str(),
  12. Replies
    3
    Views
    1,334

    Yet another button question!

    Hi all,

    I need to wrap text on a button. It is for a question bank, in which the answer is displayed on buttons for the user to select. The problem starts when the length of the string is longer...
  13. Replies
    15
    Views
    4,057

    Excellent help and advice, I am learning so much...

    Excellent help and advice, I am learning so much here. The code is decidedly looking (and working) better nowadays.

    Thank you!
  14. Replies
    15
    Views
    4,057

    Hats off.... Certainly do. Works great now...

    Hats off....



    Certainly do. Works great now (here's one of the two options in action).



    case WM_PAINT:
    {
  15. Replies
    15
    Views
    4,057

    Hi once again, some continued bother, please.......

    Hi once again, some continued bother, please....

    It seems there are some basic issues in there between C++ and WINAPI string handling, and it has forced me backwards a bit, instead of allowing...
  16. Replies
    15
    Views
    4,057

    Yes, that is what was confusing me; why the char...

    Yes, that is what was confusing me; why the char pointer was outputting the whole string without any need to step through and retrieve each character, including looking for the NULL terminator. Bit...
  17. Replies
    15
    Views
    4,057

    Hi again, Yes, it does appear to be my...

    Hi again,

    Yes, it does appear to be my handling of the pointer is at fault. Now, what I was doing was not far off what is in the snippet above, but a different way...


    char* resdata;
    //...
  18. Replies
    15
    Views
    4,057

    That did produce some positive results. The...

    That did produce some positive results. The behaviour of that pointer made by LockResource seems to be a bit unconventional(?), but I seem to be getting around it, slowly. The main thing is I can get...
  19. Replies
    15
    Views
    4,057

    But it was not it, unfortunately. However, I...

    But it was not it, unfortunately.

    However, I am a bit clearer on what objective I am after now. It is like this;

    1). Embed a text file as a resource.
    2). Access text file resource from the...
  20. Replies
    15
    Views
    4,057

    That makes perfect sense... now that you've...

    That makes perfect sense... now that you've pointed it out. Thanks!
  21. Replies
    15
    Views
    4,057

    String as Resource in txt file

    Hi to everyone. First post.

    WIN API fan, and have been "lurking" for a while, getting most questions answered on MSDN or indirectly here. Not a programmer by profession, but need it every once in...
Results 1 to 21 of 21