Wahey, You're right, I wasn't aware about lifetimes. I've managed now, by removing the code that kills the XML object, but I'll have to look into my own buffer as you said (not really sure about that...
Type: Posts; User: Darkmonkey
Wahey, You're right, I wasn't aware about lifetimes. I've managed now, by removing the code that kills the XML object, but I'll have to look into my own buffer as you said (not really sure about that...
Opps, sorry, forgot about that :(
It's taken from a XML file. (Using TinyXMl). This codes gets the title, and sets it:
// XML
TiXmlDocument *xmlDoc = new TiXmlDocument(szFileName);
if...
Nope, still no luck. Still messes up the string. I think it might have been because there is no NULL terminator? but I don't know how to add one, if it is missing.
Hey, I was wondering if you could help me again. In the WM_PAINT code, when I try to show the title (though GDI or a message box), it messes up the text, and I just get a series of "Ý"'s. The title...
Wahey, It's working ^_^
Cheers, I used a pointer instead, and fiddled with the handle assigning a bit, and it works like a charm
Cheers, Again Mate, A real saviour :D
I must be doing something wrong :( I can't get it to work.
Here is the code from the WM_PAINT message:
// Do tha junk
PAINTSTRUCT ps;
HDC hdc;
// simply validate the window
hdc =...
Hey, I posted this in coding forums as well, but with no luck. I'm currently trying to make a program that uses an MDI, but I've hit a deadend :( I can't figure out how to keep track of each set...