|
|
#1 |
![]() Join Date: Jul 2009
Reputation: 9
Posts: 278
|
String Conversions
--
I have a simple problem I can't seem to figure out. It may be because it's late and I'm tired, but here it goes. I have a simple function that does one thing, set the text in a vgui::RichText, but what it gets passed is a 'char *', and the SetText function doesn't like it. Code:
#include <vgui_controls/RichText.h>
...
void CRssPanel::SetRSS(char *rss)
{
if(rss)
{
RssFeed->SetText(rss); *Boom Crash*
}
}
Here's SetText's declaration for reference: void SetText(const char *text); void SetText(const wchar_t *text); |
|
|
|
|
||||||
| Thread Tools | |
| Display Modes | |
|
|