<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>http://forums.xna.com/forums/32.aspx</link><description>Don't know where to post your question? Post it here!</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: Compiler error</title><link>http://forums.xna.com/forums/thread/16040.aspx</link><pubDate>Sun, 08 Jul 2007 12:53:09 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:16040</guid><dc:creator>getviewsnow</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/16040.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=16040</wfw:commentRss><description>Thank you.&lt;br&gt;&lt;br&gt;I understand now.(providing a code snippet helped) Sorry, but I am still an english learner :)&lt;br&gt;&lt;br&gt;SOLVED&lt;br&gt;</description></item><item><title>Re: Compiler error</title><link>http://forums.xna.com/forums/thread/16028.aspx</link><pubDate>Sun, 08 Jul 2007 11:35:03 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:16028</guid><dc:creator>David Hunt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/16028.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=16028</wfw:commentRss><description>&lt;P&gt;Once again, a GraphicsDeviceManager is NOT a GraphicsDevice. The first parameter to the VertexDeclaration constructor is supposed to be a GraphicsDevice object, but you've passed a GraphicsDeviceManager object.&lt;/P&gt;
&lt;P&gt;graphics.GraphicsDevice.VertexDeclaration &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:red;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;new&lt;/SPAN&gt; VertexDeclaration(graphics.GraphicsDevice, VertexPositionColor.VertexElements);&lt;BR&gt;&lt;/P&gt;</description></item><item><title>Re: Compiler error</title><link>http://forums.xna.com/forums/thread/15999.aspx</link><pubDate>Sun, 08 Jul 2007 05:48:17 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:15999</guid><dc:creator>getviewsnow</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/15999.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=15999</wfw:commentRss><description>Sorry, but when I readed this phrase &lt;i&gt;"I'm pretty sure you have to replace "graphics.VertexDeclaration = " and the first argument to:"&lt;/i&gt; I tought that I have to delete &lt;i&gt;VertexDeclaration &lt;/i&gt;and write &lt;i&gt;graphics.GraphicsDevice&lt;/i&gt; instead.&lt;br&gt;&lt;br&gt;Now I have&lt;br&gt;&lt;div style="background-color:White;"&gt;&lt;div style="margin:0px;padding:2px 2px 2px 8px;background-color:White;overflow-x:scroll;overflow-y:hidden;width:505px;"&gt;&lt;pre&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt; graphics.GraphicsDevice.VertexDeclaration &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; VertexDeclaration(graphics, VertexPositionColor.VertexElements);&lt;br&gt;            graphics.GraphicsDevice.DrawUserPrimitives(PrimitiveType.TriangleList, vertices, 0, 1);&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;But I still get a compiler error:&lt;br&gt;&lt;br&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; The best overloaded method match for 'Microsoft.Xna.Framework.Graphics.VertexDeclaration.VertexDeclaration(Microsoft.Xna.Framework.Graphics.GraphicsDevice, Microsoft.Xna.Framework.Graphics.VertexElement[])' has some invalid arguments&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs&amp;nbsp;&amp;nbsp;&amp;nbsp; 133&amp;nbsp;&amp;nbsp;&amp;nbsp; 57&amp;nbsp;&amp;nbsp;&amp;nbsp; WindowsGame1&lt;br&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; Argument '1': cannot convert from 'Microsoft.Xna.Framework.GraphicsDeviceManager' to 'Microsoft.Xna.Framework.Graphics.GraphicsDevice'&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs&amp;nbsp;&amp;nbsp;&amp;nbsp; 133&amp;nbsp;&amp;nbsp;&amp;nbsp; 79&amp;nbsp;&amp;nbsp;&amp;nbsp; WindowsGame1&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Compiler error</title><link>http://forums.xna.com/forums/thread/15964.aspx</link><pubDate>Sat, 07 Jul 2007 18:30:40 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:15964</guid><dc:creator>David Hunt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/15964.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=15964</wfw:commentRss><description>&lt;P&gt;Same thing. The graphics variable is of type GraphicsDeviceManager. You need to access the GraphicsDevice member. e.g.:&lt;/P&gt;
&lt;P&gt;graphics.GraphicsDevice.DrawUserPrimitives(...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Compiler error</title><link>http://forums.xna.com/forums/thread/15942.aspx</link><pubDate>Sat, 07 Jul 2007 15:38:36 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:15942</guid><dc:creator>getviewsnow</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/15942.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=15942</wfw:commentRss><description>thanks.&lt;br&gt;&lt;br&gt;What about graphics.DrawUserPrimitives ?&lt;br&gt;</description></item><item><title>Re: Compiler error</title><link>http://forums.xna.com/forums/thread/15933.aspx</link><pubDate>Sat, 07 Jul 2007 14:06:14 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:15933</guid><dc:creator>Bapa</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/15933.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=15933</wfw:commentRss><description>&lt;P&gt;I'm pretty sure you have to replace "graphics.VertexDeclaration = " and the first argument to:&lt;BR&gt;&lt;BR&gt;graphics.GraphicsDevice;&lt;/P&gt;
&lt;P&gt;'Cause what is XNA gonna do with the thing that manages the graphics device? It wants the graphics device itself, thus: Graphics.GraphicsDevice;&lt;/P&gt;
&lt;P&gt;Blah. I wanna pet the kitty.&lt;/P&gt;</description></item><item><title>Compiler error</title><link>http://forums.xna.com/forums/thread/15930.aspx</link><pubDate>Sat, 07 Jul 2007 13:56:22 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:15930</guid><dc:creator>getviewsnow</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/15930.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=15930</wfw:commentRss><description>Hello,&lt;br&gt;&lt;br&gt;You probably remember me because of that stupid question ( DX10 on DX9 gpu).&lt;br&gt;&lt;br&gt;Anyway I decided to try XNA (I am not a game developer so I think I dont need to know DX10 for beginning.&lt;br&gt;&lt;br&gt;So I've learned some C# basics and started with XNA.&lt;br&gt;I have choosed "New game project" and I got the basic code and assembly configuration provided by C# Express. (very cool feature).&lt;br&gt;&lt;br&gt;So, I folowed a tutorial (mostly) and edited code on style I like (variable names and spaccing).&lt;br&gt;Now when I try to compile I get a compiler error:&lt;br&gt;&lt;div style="background-color:White;"&gt;&lt;div style="margin:0px;padding:2px 2px 2px 8px;background-color:White;overflow-x:scroll;overflow-y:hidden;width:505px;"&gt;&lt;pre&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;Error&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;'Microsoft.Xna.Framework.GraphicsDeviceManager' does not contain a definition &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;for&lt;/span&gt; 'VertexDeclaration'&amp;nbsp;&amp;nbsp;C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs&amp;nbsp;&amp;nbsp;133&amp;nbsp;&amp;nbsp;22&amp;nbsp;&amp;nbsp;WindowsGame1&lt;br&gt;Error&amp;nbsp;&amp;nbsp;2&amp;nbsp;&amp;nbsp;The best overloaded method match &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;for&lt;/span&gt; 'Microsoft.Xna.Framework.Graphics.VertexDeclaration.VertexDeclaration(Microsoft.Xna.Framework.Graphics.GraphicsDevice, Microsoft.Xna.Framework.Graphics.VertexElement[])' has some invalid arguments&amp;nbsp;&amp;nbsp;C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs&amp;nbsp;&amp;nbsp;133&amp;nbsp;&amp;nbsp;42&amp;nbsp;&amp;nbsp;WindowsGame1&lt;br&gt;Error&amp;nbsp;&amp;nbsp;3&amp;nbsp;&amp;nbsp;Argument '1': cannot convert from 'Microsoft.Xna.Framework.GraphicsDeviceManager' to 'Microsoft.Xna.Framework.Graphics.GraphicsDevice'&amp;nbsp;&amp;nbsp;C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs&amp;nbsp;&amp;nbsp;133&amp;nbsp;&amp;nbsp;64&amp;nbsp;&amp;nbsp;WindowsGame1&lt;br&gt;Error&amp;nbsp;&amp;nbsp;4&amp;nbsp;&amp;nbsp;'Microsoft.Xna.Framework.GraphicsDeviceManager' does not contain a definition &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;for&lt;/span&gt; 'DrawUserPrimitives'&amp;nbsp;&amp;nbsp;C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs&amp;nbsp;&amp;nbsp;134&amp;nbsp;&amp;nbsp;20&amp;nbsp;&amp;nbsp;WindowsGame1&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;The following lines are underlined:&lt;br&gt;&lt;div style="background-color:White;"&gt;&lt;div style="margin:0px;padding:2px 2px 2px 8px;background-color:White;overflow-x:scroll;overflow-y:hidden;width:505px;"&gt;&lt;pre&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;  graphics.VertexDeclaration &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; VertexDeclaration(graphics, VertexPositionColor.VertexElements);&lt;br&gt;          graphics.DrawUserPrimitives(PrimitiveType.TriangleList, vertices, 0, 1);&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;Hope you guys can help me :)&lt;br&gt;</description></item></channel></rss>