Image

Imagejarodrussell wrote in Imagecpp

Strange strcat experience

I'm kind of new to Visual C++/Win32 programming (using VC++ .Net 2008 Express), and while I hate to ask what's likely a very simple problem, I'm unsure how to go about looking into this...


Image


The SayHi() function above is called by the following line of code:

MessageBox(hwnd, SayHi("Giggity"), "Stuff", MB_ICONEXCLAMATION | MB_OK);

I tested a similar function on its own with g++, and it worked. I've got a feeling I'm returning a compatible yet wrong type. Again, I'm working on googling for this, but I'm not sure how to look for those characters.


Any help would be appreciated. Thanks!