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
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
Code: cpp
base.AddLibDir(_T("sdk\tinyxml"));
(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh)
...maybe this way:
Code: cpp
base.AddLibDir(_T("sdk\\tinyxml"));
...you could also use this:
Code: cpp
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
base.AddLibDir(_T("sdk\\tinyxml"));

*or*

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