Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: sethjackson on November 06, 2006, 09:46:50 PM

Title: Scripting
Post by: sethjackson on November 06, 2006, 09:46:50 PM
Hey I'm having a newbie problem with scripts.

I keep getting errors with this kind of code:

Code (cpp) Select

base.AddLibDir(_T("sdk\tinyxml"));


Quote
Squirrel's strings, behave like C or C++, are delimited by quotation marks(") and can contain escape sequences(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh).

Well I need the \t in there so how do I go about doing this? Sorry for the n00b question. :P
Thanks. :)

Title: Re: Scripting
Post by: MortenMacFly on November 06, 2006, 09:49:59 PM
Quote from: sethjackson on November 06, 2006, 09:46:50 PM
Code (cpp) Select

base.AddLibDir(_T("sdk\tinyxml"));

(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh)
...maybe this way:
Code (cpp) Select

base.AddLibDir(_T("sdk\\tinyxml"));

...you could also use this:
Code (cpp) Select

base.AddLibDir(_T("sdk/tinyxml"));

...but I wonder if if really could be that simple...?! Did I miss something?
Title: Re: Scripting
Post by: killerbot on November 06, 2006, 09:50:11 PM
\\t
Title: Re: Scripting
Post by: mandrav on November 06, 2006, 09:52:12 PM
Code (cpp) Select
base.AddLibDir(_T("sdk\\tinyxml"));

*or*

Code (cpp) Select
base.AddLibDir(_T("sdk/tinyxml"));
Title: Re: Scripting
Post by: sethjackson on November 06, 2006, 09:59:35 PM
DOH! Thanks guys. :D