Snap!
Silly me. Thanks!!!
Type: Posts; User: KeithS
Snap!
Silly me. Thanks!!!
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...
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......
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.
...
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...
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...
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,...
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...
????
I am sorry, did not understand that...
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...
¡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(),
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...
Excellent help and advice, I am learning so much here. The code is decidedly looking (and working) better nowadays.
Thank you!
Hats off....
Certainly do. Works great now (here's one of the two options in action).
case WM_PAINT:
{
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...
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...
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;
//...
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...
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...
That makes perfect sense... now that you've pointed it out. Thanks!
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...