Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-01-2012, 02:52 AM   #1
BakonGuy
 
 
 
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*
	}
}
So how to I handle the 'char *' before I pass it along to SetText?

Here's SetText's declaration for reference:
void SetText(const char *text);
void SetText(const wchar_t *text);
BakonGuy is offline  
Reply With Quote
 

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 12:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.