<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community</title>
		<link>http://www.daniweb.com/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Tue, 01 Dec 2009 17:06:20 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Stack Overflow at runtime.</title>
			<link>http://www.daniweb.com/forums/thread242099.html</link>
			<pubDate>Sat, 28 Nov 2009 23:23:00 GMT</pubDate>
			<description><![CDATA[When I try to run my program( which is a test entity system for anyone who's wondering ), I get a Stack Overflow error, and I cannot find the source of this error. 
 
Here is my code: 
 
baseentity.h: 
#ifndef BASEENTITY_H 
#define BASEENTITY_H 
 
#include <vector>]]></description>
			<content:encoded><![CDATA[<div>When I try to run my program( which is a test entity system for anyone who's wondering ), I get a Stack Overflow error, and I cannot find the source of this error.<br />
<br />
Here is my code:<br />
<br />
baseentity.h:<br />
 <pre style="margin:20px; line-height:13px">#ifndef BASEENTITY_H<br />
#define BASEENTITY_H<br />
<br />
#include &lt;vector&gt;<br />
<br />
#define DECLARE_CLASS( className ) public: virtual char const *_GetClassName( ) { return #className; }<br />
<br />
class BaseEntity{<br />
&nbsp; &nbsp; &nbsp; &nbsp; DECLARE_CLASS( BaseEntity )<br />
private:<br />
&nbsp; &nbsp; &nbsp; &nbsp; typedef enum{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eTouch,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eCollide,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eSpawn<br />
&nbsp; &nbsp; &nbsp; &nbsp; } m_eEvents;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int m_nID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; static int sm_nCount;<br />
public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; static std::vector&lt;BaseEntity&gt; sm_vEntities;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; BaseEntity( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; ~BaseEntity( );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; virtual void OnTouch( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; virtual void OnCollide( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; virtual void OnSpawn( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; virtual void FireEvent( int nEvent );<br />
};<br />
<br />
#endif //BASEENTITY_H</pre><br />
baseentity.cpp:<br />
 <pre style="margin:20px; line-height:13px">#include &lt;vector&gt;<br />
#include &lt;iostream&gt;<br />
#include &quot;baseentity.h&quot;<br />
<br />
std::vector&lt;BaseEntity&gt; BaseEntity::sm_vEntities = std::vector&lt;BaseEntity&gt;(100000);<br />
int BaseEntity::sm_nCount = 1;<br />
<br />
BaseEntity::BaseEntity( )<br />
:m_nID( sm_nCount )<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; sm_vEntities.push_back( *this );<br />
&nbsp; &nbsp; &nbsp; &nbsp; sm_nCount++;<br />
}<br />
<br />
BaseEntity::~BaseEntity( )<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; sm_vEntities.erase( sm_vEntities.begin( ) + m_nID );<br />
}<br />
<br />
void BaseEntity::FireEvent(int nEvent)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; switch( nEvent )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; case eSpawn:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnSpawn( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; case eCollide:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnCollide( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; case eTouch:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnTouch( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
void BaseEntity::OnCollide( )<br />
{<br />
}<br />
<br />
void BaseEntity::OnTouch( )<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::cout &lt;&lt; _GetClassName( ) &lt;&lt; &quot;::OnTouch( ): This class does not have a OnTouch function.\n&quot;;<br />
}<br />
<br />
void BaseEntity::OnSpawn( )<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::cout &lt;&lt; _GetClassName( ) &lt;&lt; &quot;::OnSpawn( ): This class does not have a OnSpawn function.\n&quot;;<br />
}</pre><br />
main.cpp:<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;string&gt;<br />
#include &quot;baseentity.h&quot;<br />
<br />
//not my function<br />
void split_string(const std::string&amp; src, std::vector&lt;std::string&gt;&amp; dst, char split)<br />
{<br />
&nbsp; &nbsp; int startPos = 0, endPos = src.find(split);<br />
&nbsp; &nbsp; &nbsp; &nbsp; while(endPos != std::string::npos)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; dst.push_back(src.substr(startPos, endPos-startPos));<br />
&nbsp; &nbsp; &nbsp; &nbsp; startPos = endPos + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; endPos = src.find(split, startPos);<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
int main( )<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::string strCommand;<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::vector&lt;std::string&gt; vInputs;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; while( strCommand != &quot;exit&quot; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std::cout &lt;&lt; &quot;&gt; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getline( std::cin, strCommand );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; split_string( strCommand, vInputs, ' ' );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( vInputs&#91;0&#93; == &quot;spawn&quot; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for( int i = 0; i &lt; BaseEntity::sm_vEntities.size( ); ++i )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( BaseEntity::sm_vEntities&#91;i&#93;._GetClassName( ) == vInputs&#91;1&#93; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseEntity eTemp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eTemp.OnSpawn( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( vInputs&#91;0&#93; == &quot;touch&quot; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for( int i = 0; i &lt; BaseEntity::sm_vEntities.size( ); ++i )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( BaseEntity::sm_vEntities&#91;i&#93;._GetClassName( ) == vInputs&#91;1&#93; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseEntity eTemp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eTemp.OnTouch( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( vInputs&#91;0&#93; == &quot;collide&quot; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for( int i = 0; i &lt; BaseEntity::sm_vEntities.size( ); ++i )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( BaseEntity::sm_vEntities&#91;i&#93;._GetClassName( ) == vInputs&#91;1&#93; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseEntity eTemp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eTemp.OnCollide( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::cin.ignore( 1200, '\n' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::cin.get( );<br />
}</pre><br />
Thank you for your time.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242099.html</guid>
		</item>
		<item>
			<title>Compilers.</title>
			<link>http://www.daniweb.com/forums/thread240588.html</link>
			<pubDate>Mon, 23 Nov 2009 04:27:22 GMT</pubDate>
			<description><![CDATA[I've heard that compilers are built by compiling themselves? How can they possibly do this, how would you get it to compile itself?]]></description>
			<content:encoded><![CDATA[<div>I've heard that compilers are built by compiling themselves? How can they possibly do this, how would you get it to compile itself?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240588.html</guid>
		</item>
		<item>
			<title>Debugging features.</title>
			<link>http://www.daniweb.com/forums/thread240552.html</link>
			<pubDate>Mon, 23 Nov 2009 02:20:51 GMT</pubDate>
			<description><![CDATA[What kind of debugging features are there in VC++ 2008? 
I'm looking for things like: 
-Something to show which functions are being called and what   functions are they calling, but limiting what it shows to only functions in my source files. 
 
-Something to show me if there are any recursive...]]></description>
			<content:encoded><![CDATA[<div>What kind of debugging features are there in VC++ 2008?<br />
I'm looking for things like:<br />
-Something to show which functions are being called and what   functions are they calling, but limiting what it shows to only functions in my source files.<br />
<br />
-Something to show me if there are any recursive functions.<br />
<br />
-Something to show me how may times a certain function has been called.<br />
<br />
Thanks for you time.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240552.html</guid>
		</item>
		<item>
			<title>DirectX 9 Stack Overflow.</title>
			<link>http://www.daniweb.com/forums/thread240378.html</link>
			<pubDate>Sun, 22 Nov 2009 05:37:22 GMT</pubDate>
			<description><![CDATA[Ok, So I'm trying to create a 3D engine with DirectX 9, and I have run into a runtime error that says "Stack overflow". When I encountered this, I thought that it might have came from a for loop, so I checked that they went forever, and they all were fine. I still had this error after that and I...]]></description>
			<content:encoded><![CDATA[<div>Ok, So I'm trying to create a 3D engine with DirectX 9, and I have run into a runtime error that says &quot;Stack overflow&quot;. When I encountered this, I thought that it might have came from a for loop, so I checked that they went forever, and they all were fine. I still had this error after that and I couldn't figure out why it was or where the error was coming from so I put calls to MessageBox everywhere to tell me which part of code it's executing at that time, but they won't even show up! What I need help with is how to get the message boxes to show up and how to fix the Stack Overflow problem, I have attached the code in a .zip file.<br />
<br />
BTW I'm using WinXP and VC++.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12670&amp;d=1258868230">DirectX9_Engine.zip</a> (930.2 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240378.html</guid>
		</item>
		<item>
			<title>DirectX 9 Help Needed.</title>
			<link>http://www.daniweb.com/forums/thread240160.html</link>
			<pubDate>Sat, 21 Nov 2009 04:59:31 GMT</pubDate>
			<description>How do I load 3D meshes from a .x file, and extract the material data from it? Also, how do I apply a texture to the loaded mesh?</description>
			<content:encoded><![CDATA[<div>How do I load 3D meshes from a .x file, and extract the material data from it? Also, how do I apply a texture to the loaded mesh?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240160.html</guid>
		</item>
		<item>
			<title>DirectX 9 3D Models</title>
			<link>http://www.daniweb.com/forums/thread239938.html</link>
			<pubDate>Fri, 20 Nov 2009 06:19:44 GMT</pubDate>
			<description>How do I load 3D models that are in the .x format from DirectX 9? 
I am trying to make a simple engine and this is the part where I am stuck at.</description>
			<content:encoded><![CDATA[<div>How do I load 3D models that are in the .x format from DirectX 9?<br />
I am trying to make a simple engine and this is the part where I am stuck at.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239938.html</guid>
		</item>
		<item>
			<title><![CDATA[Need help with an error that I don't know how to fix, and have never seen it before.]]></title>
			<link>http://www.daniweb.com/forums/thread236158.html</link>
			<pubDate>Thu, 05 Nov 2009 06:40:44 GMT</pubDate>
			<description><![CDATA[When I try to compile my code, I get this error: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code...]]></description>
			<content:encoded><![CDATA[<div>When I try to compile my code, I get this error:<br />
 <pre style="margin:20px; line-height:13px">------ Build started: Project: SUD, Configuration: Debug Win32 ------<br />
Compiling...<br />
baseent.cpp<br />
c:\program files\microsoft visual studio 9.0\vc\include\xmemory(52) : error C2558: class 'BaseEnt' : no copy constructor available or copy constructor is declared 'explicit'<br />
&nbsp; &nbsp; &nbsp; &nbsp; c:\program files\microsoft visual studio 9.0\vc\include\xmemory(155) : see reference to function template instantiation 'void std::_Construct&lt;BaseEnt,_Ty&gt;(_T1 *,const _T2 &amp;)' being compiled<br />
&nbsp; &nbsp; &nbsp; &nbsp; with<br />
&nbsp; &nbsp; &nbsp; &nbsp; [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Ty=BaseEnt,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _T1=BaseEnt,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _T2=BaseEnt<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
&nbsp; &nbsp; &nbsp; &nbsp; c:\program files\microsoft visual studio 9.0\vc\include\xmemory(154) : while compiling class template member function 'void std::allocator&lt;_Ty&gt;::construct(BaseEnt *,const _Ty &amp;)'<br />
&nbsp; &nbsp; &nbsp; &nbsp; with<br />
&nbsp; &nbsp; &nbsp; &nbsp; [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Ty=BaseEnt<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
&nbsp; &nbsp; &nbsp; &nbsp; c:\program files\microsoft visual studio 9.0\vc\include\vector(429) : see reference to class template instantiation 'std::allocator&lt;_Ty&gt;' being compiled<br />
&nbsp; &nbsp; &nbsp; &nbsp; with<br />
&nbsp; &nbsp; &nbsp; &nbsp; [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Ty=BaseEnt<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
&nbsp; &nbsp; &nbsp; &nbsp; c:\program files\microsoft visual studio 9.0\vc\include\vector(439) : see reference to class template instantiation 'std::_Vector_val&lt;_Ty,_Alloc&gt;' being compiled<br />
&nbsp; &nbsp; &nbsp; &nbsp; with<br />
&nbsp; &nbsp; &nbsp; &nbsp; [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Ty=BaseEnt,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Alloc=std::allocator&lt;BaseEnt&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
&nbsp; &nbsp; &nbsp; &nbsp; c:\documents and settings\tom\my documents\visual studio 2008\projects\sud\sud\baseent.h(25) : see reference to class template instantiation 'std::vector&lt;_Ty&gt;' being compiled<br />
&nbsp; &nbsp; &nbsp; &nbsp; with<br />
&nbsp; &nbsp; &nbsp; &nbsp; [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Ty=BaseEnt<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
Generating Code...<br />
Compiling...<br />
main.cpp<br />
Generating Code...<br />
Build log was saved at &quot;file://c:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\SUD\SUD\Debug\BuildLog.htm&quot;<br />
SUD - 1 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</pre><br />
I clicked on it, and it pointed me to this line of code:<br />
 <pre style="margin:20px; line-height:13px">extern std::vector&lt;BaseEnt&gt; entities;</pre><br />
This is where BaseEnt is defined:<br />
<br />
 <pre style="margin:20px; line-height:13px">class BaseEnt{<br />
&nbsp; &nbsp; &nbsp; &nbsp; int id;<br />
&nbsp; &nbsp; &nbsp; &nbsp; static int count;<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::string hashcode;<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::string name;<br />
public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; BaseEnt();<br />
&nbsp; &nbsp; &nbsp; &nbsp; BaseEnt(std::string name);<br />
&nbsp; &nbsp; &nbsp; &nbsp; BaseEnt(BaseEnt &amp;other);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ~BaseEnt();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int GetID();<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::string GetHashCode();<br />
&nbsp; &nbsp; &nbsp; &nbsp; std::string GetClassName();<br />
&nbsp; &nbsp; int GetCount();<br />
};</pre><br />
This is where it's member definitions are:<br />
 <pre style="margin:20px; line-height:13px">int BaseEnt::count = 1;<br />
<br />
std::vector&lt;BaseEnt&gt; entities(;<br />
<br />
BaseEnt::BaseEnt()<br />
:id(count), name(&quot;unassigned&quot;), hashcode(HashCode())<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; name += HashCode();<br />
&nbsp; &nbsp; &nbsp; &nbsp; entities[id] = *this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; count++;<br />
}<br />
<br />
BaseEnt::BaseEnt(std::string classname)<br />
:id(count), name(classname), hashcode(HashCode())<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; entities[id] = *this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; count++;<br />
}<br />
<br />
BaseEnt::BaseEnt(BaseEnt &amp;other)<br />
:id(other.GetID()), name(other.GetClassName()), hashcode(other.GetHashCode())<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; entities[id] = *this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; count++;<br />
}<br />
<br />
BaseEnt::~BaseEnt()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; count--;<br />
}<br />
<br />
std::string BaseEnt::GetClassName()<br />
{ return name; }<br />
int BaseEnt::GetCount()<br />
{ return BaseEnt::count; }<br />
std::string BaseEnt::GetHashCode()<br />
{ return hashcode; }<br />
int BaseEnt::GetID()<br />
{ return id; }</pre><br />
I have never seen this error, and I can't figure out what it means, because I've got a copy constructor in my class(line  9).<br />
<br />
And help will be appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236158.html</guid>
		</item>
		<item>
			<title>Case Expression Not Constant</title>
			<link>http://www.daniweb.com/forums/thread235284.html</link>
			<pubDate>Mon, 02 Nov 2009 08:06:39 GMT</pubDate>
			<description><![CDATA[When I try to compile this: 
 
 
void *BaseEnt::GetVar(char const *varname) 
{ 
	char name = *varname; 
	switch(name) 
	{ 
	case "id": 
		return (void*)id;]]></description>
			<content:encoded><![CDATA[<div>When I try to compile this:<br />
<br />
 <pre style="margin:20px; line-height:13px">void *BaseEnt::GetVar(char const *varname)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; char name = *varname;<br />
&nbsp; &nbsp; &nbsp; &nbsp; switch(name)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; case &quot;id&quot;:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (void*)id;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case &quot;name&quot;:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (void*)name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case &quot;count&quot;:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (void*)count;<br />
&nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (void*)NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</pre><br />
I get these errors:<br />
<br />
 <pre style="margin:20px; line-height:13px">------ Build started: Project: Test Classes, Configuration: Debug Win32 ------<br />
Compiling...<br />
classes.cpp<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\test classes\test classes\classes.cpp(25) : error C2051: case expression not constant<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\test classes\test classes\classes.cpp(27) : error C2051: case expression not constant<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\test classes\test classes\classes.cpp(29) : error C2051: case expression not constant<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\test classes\test classes\classes.cpp(33) : warning C4065: switch statement contains 'default' but no 'case' labels<br />
Build log was saved at &quot;file://c:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\Test Classes\Test Classes\Debug\BuildLog.htm&quot;<br />
Test Classes - 3 error(s), 1 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</pre><br />
I thought that things like &quot;id&quot; were constant because they're a litteral?<br />
<br />
Any help would be appreciated.<br />
<br />
PS. If you need more information on my problem, feel free to ask.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235284.html</guid>
		</item>
		<item>
			<title>Problems with a leet speak converter</title>
			<link>http://www.daniweb.com/forums/thread234665.html</link>
			<pubDate>Fri, 30 Oct 2009 10:57:14 GMT</pubDate>
			<description><![CDATA[I tried to make a leet speak converter, but it outputs characters that I don't even tell it to.. 
 
This is what I mean: 
 
(Test run) 
Enter something to convert to L337 5P34K: Hi, how are you? 
L337 5P34K equivilent: hi,@H0w 4R3 Y0u? 
 
I don't know why it's got the '@' there.]]></description>
			<content:encoded><![CDATA[<div>I tried to make a leet speak converter, but it outputs characters that I don't even tell it to..<br />
<br />
This is what I mean:<br />
<br />
(Test run)<br />
Enter something to convert to L337 5P34K: Hi, how are you?<br />
L337 5P34K equivilent: hi,@H0w 4R3 Y0u?<br />
<br />
I don't know why it's got the '@' there.<br />
<br />
This is the code:<br />
<br />
 <pre style="margin:20px; line-height:13px">#L33TSP34K Converter.<br />
<br />
import random as rnd<br />
<br />
def toUpper(string):<br />
&nbsp; &nbsp; string_upper = &quot;&quot;<br />
&nbsp; &nbsp; for char in string :<br />
&nbsp; &nbsp; &nbsp; &nbsp; if&nbsp; ord(char) &lt; 97 :<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string_upper += char<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif ord(char) &gt;= 97 :<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string_upper += chr(ord(char) - 32)<br />
&nbsp; &nbsp; return string_upper<br />
<br />
def toLower(string):<br />
&nbsp; &nbsp; string_lower = &quot;&quot;<br />
&nbsp; &nbsp; for char in string :<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ord(char) &gt; 97 :<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string_lower += char<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif ord(char) &lt;= 97:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string_lower += chr(ord(char) + 32 )<br />
&nbsp; &nbsp; return string_lower<br />
<br />
def convertToLeetSpeak(src):<br />
&nbsp; &nbsp; string = src<br />
&nbsp; &nbsp; for c in src:<br />
&nbsp; &nbsp; &nbsp; &nbsp; if c == 'e' or c == 'E':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string += '3'<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif c == 'a' or c == 'A':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string += '4'<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif c == 't' or c == 'T':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string += '7'<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif c == 's' or c == 'S':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string += '5'<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif c == 'o' or c == 'O':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string += '0'<br />
&nbsp; &nbsp; &nbsp; &nbsp; else:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = rnd.randrange(1,3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if i == 1:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string += toUpper(c)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elif i == 2:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string += toLower(c)<br />
&nbsp; &nbsp; return string<br />
<br />
def main():<br />
&nbsp; &nbsp; choice = raw_input(&quot;Enter something to convert to L337 5P34K: &quot;)<br />
&nbsp; &nbsp; choice = convertToLeetSpeak(choice).replace(choice, '')<br />
&nbsp; &nbsp; print 'L337 5P34K equivilent:',choice<br />
<br />
if __name__ == '__main__':<br />
&nbsp; &nbsp; main()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234665.html</guid>
		</item>
		<item>
			<title>Extra Paramaters</title>
			<link>http://www.daniweb.com/forums/thread233379.html</link>
			<pubDate>Mon, 26 Oct 2009 07:32:39 GMT</pubDate>
			<description>How do I access the paramaters entered after param1? 
 
Like this: 
 
void foo(param1, ...); 
 
How do I access the ... part?</description>
			<content:encoded><![CDATA[<div>How do I access the paramaters entered after param1?<br />
<br />
Like this:<br />
<br />
void foo(param1, ...);<br />
<br />
How do I access the ... part?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233379.html</guid>
		</item>
		<item>
			<title>C++ Array Size Limit?</title>
			<link>http://www.daniweb.com/forums/thread233357.html</link>
			<pubDate>Mon, 26 Oct 2009 05:50:34 GMT</pubDate>
			<description><![CDATA[When I try to compile this: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div>...]]></description>
			<content:encoded><![CDATA[<div>When I try to compile this:<br />
<br />
 <pre style="margin:20px; line-height:13px">#define NODES_MAX 100000<br />
extern node_t _nodes[NODES_MAX];</pre><br />
It gives me this error:<br />
------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------<br />
Compiling...<br />
main.cpp<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.h(12) : error C2148: total size of array must not exceed 0x7fffffff bytes<br />
Generating Code...<br />
Compiling...<br />
core.cpp<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.h(12) : error C2148: total size of array must not exceed 0x7fffffff bytes<br />
Generating Code...<br />
Compiling...<br />
ae_3d.cpp<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.h(12) : error C2148: total size of array must not exceed 0x7fffffff bytes<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.cpp(7) : error C2148: total size of array must not exceed 0x7fffffff bytes<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.cpp(7) : error C2148: total size of array must not exceed 0x7fffffff bytes<br />
Generating Code...<br />
Build log was saved at &quot;file://c:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\TheAlienEngine\TheAlienEngine\Debug\BuildLog.htm&quot;<br />
TheAlienEngine - 5 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br />
<br />
I can only get it to compile if I lower this limit to around 500.. this is not acceptable because I'm making a 3D engine and every object in my world will be a node_t...<br />
<br />
Is there any way to fix this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233357.html</guid>
		</item>
		<item>
			<title>Linker Errors..</title>
			<link>http://www.daniweb.com/forums/thread233135.html</link>
			<pubDate>Sun, 25 Oct 2009 10:33:20 GMT</pubDate>
			<description><![CDATA[I am trying to make a 3D Engine using OpenGL, I've got all the model loading, 3D nodes, all that stuff done, but I get linker errors when I try to compile, it.. these are the errors: 
 
------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------ 
Compiling... 
main.cpp...]]></description>
			<content:encoded><![CDATA[<div>I am trying to make a 3D Engine using OpenGL, I've got all the model loading, 3D nodes, all that stuff done, but I get linker errors when I try to compile, it.. these are the errors:<br />
<br />
------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------<br />
Compiling...<br />
main.cpp<br />
core.cpp<br />
ae_3d.cpp<br />
Generating Code...<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.cpp(33) : warning C4700: uninitialized local variable 'model' used<br />
c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.cpp(49) : warning C4700: uninitialized local variable 'node' used<br />
Linking...<br />
core.obj : error LNK2005: &quot;struct options_t somecrazyoptions&quot; (?somecrazyoptions@@3Uoptions_t@@A) already defined in main.obj<br />
core.obj : error LNK2005: &quot;struct node_t * _nodes&quot; (?_nodes@@3PAUnode_t@@A) already defined in main.obj<br />
ae_3d.obj : error LNK2005: &quot;struct node_t * _nodes&quot; (?_nodes@@3PAUnode_t@@A) already defined in main.obj<br />
C:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\TheAlienEngine\Debug\TheAlienEngine.exe : fatal error LNK1169: one or more multiply defined symbols found<br />
Build log was saved at &quot;file://c:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\TheAlienEngine\TheAlienEngine\Debug\BuildLog.htm&quot;<br />
TheAlienEngine - 4 error(s), 2 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br />
<br />
I have used include guards in all the header files and I have looked through the pre-processed file and I still couldn't find where those things are defined twice.. I've attached the code in a .zip file if you want to see.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12292&amp;d=1256466767">TheAlienEngine_Code.zip</a> (1.02 MB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233135.html</guid>
		</item>
		<item>
			<title>Using google appengine with facebook?</title>
			<link>http://www.daniweb.com/forums/thread231922.html</link>
			<pubDate>Wed, 21 Oct 2009 09:51:24 GMT</pubDate>
			<description><![CDATA[I am wanting to create a program that everytime I run it, it gets the current playing tune in iTunes, and sets this as my Facebook status: 
 
"I'm listening to current_playing_song, corrent_artist." 
 
I have no idea how to start. 
can someone suggest how?]]></description>
			<content:encoded><![CDATA[<div>I am wanting to create a program that everytime I run it, it gets the current playing tune in iTunes, and sets this as my Facebook status:<br />
<br />
&quot;I'm listening to current_playing_song, corrent_artist.&quot;<br />
<br />
I have no idea how to start.<br />
can someone suggest how?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231922.html</guid>
		</item>
		<item>
			<title>string manipulation</title>
			<link>http://www.daniweb.com/forums/thread231095.html</link>
			<pubDate>Sun, 18 Oct 2009 05:14:38 GMT</pubDate>
			<description><![CDATA[Is there any functions that split a string? 
 
Such as this: 
 
 
string s1 = "lol-lol2-lol3"; 
string s2[3]; 
char spliter_char = '-'; 
 
split_strings(s1, s2, spliter_char);]]></description>
			<content:encoded><![CDATA[<div>Is there any functions that split a string?<br />
<br />
Such as this:<br />
<br />
 <pre style="margin:20px; line-height:13px">string s1 = &quot;lol-lol2-lol3&quot;;<br />
string s2&#91;3&#93;;<br />
char spliter_char = '-';<br />
<br />
split_strings(s1, s2, spliter_char);<br />
//s2 should now be:<br />
//{&quot;lol&quot;,&quot;lol2&quot;,&quot;lol3&quot;}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231095.html</guid>
		</item>
		<item>
			<title>iterating through a file</title>
			<link>http://www.daniweb.com/forums/thread229052.html</link>
			<pubDate>Sat, 10 Oct 2009 07:13:50 GMT</pubDate>
			<description>How would I be able to iterate through each character in a file? The file is of type ifstream.</description>
			<content:encoded><![CDATA[<div>How would I be able to iterate through each character in a file? The file is of type ifstream.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229052.html</guid>
		</item>
		<item>
			<title>NASM Painting Pixels</title>
			<link>http://www.daniweb.com/forums/thread229040.html</link>
			<pubDate>Sat, 10 Oct 2009 06:05:37 GMT</pubDate>
			<description>How do you paint pixels in NASM, could someone tell me about it and mabey give me an example?</description>
			<content:encoded><![CDATA[<div>How do you paint pixels in NASM, could someone tell me about it and mabey give me an example?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum125.html">Assembly</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229040.html</guid>
		</item>
		<item>
			<title>File info</title>
			<link>http://www.daniweb.com/forums/thread229016.html</link>
			<pubDate>Sat, 10 Oct 2009 03:21:19 GMT</pubDate>
			<description><![CDATA[I want to be able to extract the file info of music files(title, artist, album, genere, ect.) and then rename the file to the title of the music track. But I don't know anything about this and have no idea where to start, can someone tell me?]]></description>
			<content:encoded><![CDATA[<div>I want to be able to extract the file info of music files(title, artist, album, genere, ect.) and then rename the file to the title of the music track. But I don't know anything about this and have no idea where to start, can someone tell me?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229016.html</guid>
		</item>
		<item>
			<title>my first program</title>
			<link>http://www.daniweb.com/forums/thread228263.html</link>
			<pubDate>Wed, 07 Oct 2009 08:12:00 GMT</pubDate>
			<description><![CDATA[I am trying to make a program that prompts the user for input then outputs it to them(back to the good old days :D). It all works, except it doesn't output what the user inputs, it outputs a bunch of crazy numbers, can someone help me? 
 
Btw I am using NASM. 
 
Test Run: 
  <div class="codeblock">...]]></description>
			<content:encoded><![CDATA[<div>I am trying to make a program that prompts the user for input then outputs it to them(back to the good old days :D). It all works, except it doesn't output what the user inputs, it outputs a bunch of crazy numbers, can someone help me?<br />
<br />
Btw I am using NASM.<br />
<br />
Test Run:<br />
 <pre style="margin:20px; line-height:13px">Please enter something(max 255 chars): tom<br />
You entered: 7</pre><br />
 <pre style="margin:20px; line-height:13px">&#91;section .data&#93;<br />
&nbsp; &nbsp; &nbsp; &nbsp; choice:&nbsp; db &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; fmt1:&nbsp; &nbsp; db &quot;%s&quot;,10,0<br />
&nbsp; &nbsp; &nbsp; &nbsp; output:&nbsp; db &quot;Please enter something(max 255 chars): &quot;,0<br />
&nbsp; &nbsp; &nbsp; &nbsp; output2: db &quot;You entered: %s&quot;,0<br />
&#91;section .text&#93;<br />
&nbsp; &nbsp; &nbsp; &nbsp; global _main <br />
&nbsp; &nbsp; &nbsp; &nbsp; extern _printf, _scanf <br />
_main:<br />
&nbsp; &nbsp; &nbsp; &nbsp; push output<br />
&nbsp; &nbsp; &nbsp; &nbsp; call _printf<br />
&nbsp; &nbsp; &nbsp; &nbsp; add esp, 4<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; push choice<br />
&nbsp; &nbsp; &nbsp; &nbsp; push fmt1<br />
&nbsp; &nbsp; &nbsp; &nbsp; call _scanf<br />
&nbsp; &nbsp; &nbsp; &nbsp; add esp, 8<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; push dword&#91;choice&#93;<br />
&nbsp; &nbsp; &nbsp; &nbsp; push output2<br />
&nbsp; &nbsp; &nbsp; &nbsp; call _printf<br />
&nbsp; &nbsp; &nbsp; &nbsp; add esp, 8<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; mov eax, 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; ret</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum125.html">Assembly</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228263.html</guid>
		</item>
		<item>
			<title>Would this do damage to my computer?</title>
			<link>http://www.daniweb.com/forums/thread227377.html</link>
			<pubDate>Sat, 03 Oct 2009 08:40:03 GMT</pubDate>
			<description><![CDATA[Would this do any damage if I left it running for a while: 
 
 
int main(){ while(1) new char[0]; }]]></description>
			<content:encoded><![CDATA[<div>Would this do any damage if I left it running for a while:<br />
<br />
 <pre style="margin:20px; line-height:13px">int main(){ while(1) new char&#91;0&#93;; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227377.html</guid>
		</item>
		<item>
			<title>searching classes</title>
			<link>http://www.daniweb.com/forums/thread226713.html</link>
			<pubDate>Wed, 30 Sep 2009 07:53:59 GMT</pubDate>
			<description><![CDATA[In the Quake 4 console, there is a "spawn" command, then you put the class name of what you want to spawn, eg. "spawn weapon_railgun". 
>Meaning that it tried to construct the weapon_railgun class from this input. 
 
 If the class that you specify is not one that can be spawned, it says something...]]></description>
			<content:encoded><![CDATA[<div>In the Quake 4 console, there is a &quot;spawn&quot; command, then you put the class name of what you want to spawn, eg. &quot;spawn weapon_railgun&quot;.<br />
&gt;Meaning that it tried to construct the weapon_railgun class from this input.<br />
<br />
 If the class that you specify is not one that can be spawned, it says something like this: &quot;[class_entered] does not have a  spawnfunc or a spawnclass&quot;.<br />
&gt;Meaning that they were able to know if weapon_railgun had a spawnfunc.<br />
<br />
What I want to know is how they could've inplemented this:<br />
<br />
1) How would you be able to construct a class from a string of user input?<br />
2) How would you be able to search a class to see if it has a function or data in it?(such as spawnfunc)<br />
<br />
Thanks for your time</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226713.html</guid>
		</item>
		<item>
			<title>struct help</title>
			<link>http://www.daniweb.com/forums/thread224468.html</link>
			<pubDate>Mon, 21 Sep 2009 00:15:13 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a href="#"...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">struct{<br />
&nbsp; &nbsp; &nbsp; &nbsp; int&nbsp;  health;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int&nbsp;  armor;<br />
&nbsp; &nbsp; &nbsp; &nbsp; char* wep_name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; char* name;<br />
} test_player = {<br />
&nbsp; &nbsp; &nbsp; &nbsp; 100,<br />
&nbsp; &nbsp; &nbsp; &nbsp; 10,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &quot;master sword&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &quot;tom&quot;<br />
};</pre><br />
how to i access the members of test_player ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224468.html</guid>
		</item>
		<item>
			<title>Quake 2 Source</title>
			<link>http://www.daniweb.com/forums/thread223597.html</link>
			<pubDate>Wed, 16 Sep 2009 22:06:05 GMT</pubDate>
			<description>When I try to compile the Quake 2 Source code from the if Software website, I get this error: 
 
------ Build started: Project: quake2, Configuration: Debug Alpha Win32 ------ 
Compiling resources... 
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 
Copyright (C) Microsoft...</description>
			<content:encoded><![CDATA[<div>When I try to compile the Quake 2 Source code from the if Software website, I get this error:<br />
<br />
------ Build started: Project: quake2, Configuration: Debug Alpha Win32 ------<br />
Compiling resources...<br />
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1<br />
Copyright (C) Microsoft Corporation.  All rights reserved.<br />
.\win32\q2.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.<br />
Build log was saved at &quot;file://C:\Documents and Settings\tom\Desktop\Quake 2 Source\quake2-3.21\DebugAxp\BuildLog.htm&quot;<br />
quake2 - 1 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========<br />
<br />
<br />
Does anyone know how to fix it?<br />
I would also like to know if it's possible to create an exe from the source, because when I build it it doesn't.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223597.html</guid>
		</item>
		<item>
			<title>VC++ Compiler Options</title>
			<link>http://www.daniweb.com/forums/thread222870.html</link>
			<pubDate>Mon, 14 Sep 2009 07:34:24 GMT</pubDate>
			<description>I need to be able to use the /P compiler option, how do I set them in VC++ 2008?</description>
			<content:encoded><![CDATA[<div>I need to be able to use the /P compiler option, how do I set them in VC++ 2008?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222870.html</guid>
		</item>
	</channel>
</rss>
