| Poster | : pizuzzu | | Posts | : 11 | | Country | : united states | | City | : benavides |
| | | | Posted by pizuzzu on 03/10/2006 at 23:05:51
| | | yes when i create the windows application in the c# SECTION it starts me of with form.cs wich is a box so what do i do. | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 04/10/2006 at 02:40:23
| | | You can rightclick on form.cs and choose Show code. Replace all that code with the code you find on my pages. | |
|
|
| |
| |
| Poster | : pizuzzu | | Posts | : 11 | | Country | : united states | | City | : benavides |
| | | | Posted by pizuzzu on 04/10/2006 at 12:27:56
| | | when i copy the source code to the form.cs file i get build errors about namespace directx does not exist what do i do | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 04/10/2006 at 12:44:44
| | | go to project->add references and pick DirectX and Direct3D | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 04/10/2006 at 14:06:20
| | | thank you | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 04/10/2006 at 14:18:48
| | | im still getting some errors after adding the directx reference when i copy your source code | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 04/10/2006 at 15:23:51
| | | Make sure you add references to Direct3D as well, and NOT to pick the 2.0 version of the DirectX reference, stick to the 1.0.9something | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 04/10/2006 at 18:02:00
| | | there are still problems maybe you could tell me step by step how to start this tutorial cuase right now i am lost, im using visual c# 2005 express | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 05/10/2006 at 04:40:00
| | | Try downloading one of the project files in www.riemers.net/Files/Forum | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 05/10/2006 at 16:38:18
| | | thx for the help but i got 1 more question, were did you put the source code | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 06/10/2006 at 02:44:31
| | in one of the .cs files, I think program.cs
rightclick, and select View code | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 07/10/2006 at 16:10:45
| | thx
| |
|
|
| |
| |
| Poster | : pizuzzu | | Posts | : 11 | | Country | : united states | | City | : benavides |
| | | | Posted by pizuzzu on 07/10/2006 at 19:28:24
| | | Ok one more question, well one more question in this section, in the tutorial you you only change the main function and add the two refrenses, so where does the rest of your source code come from becuase when i start on a project using Visual studio express 2005 i dont get that code, can you help me. | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 08/10/2006 at 06:56:31
| | | The code of the first chapter is the code I got when I started a new C# project in Visual Studio 2003 at that time. Maybe the basecode has changed, but you should get SOME code when you start a new project in VS express? | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 10/10/2006 at 23:08:45
| | I am using Visual Studio.Net 2003. I downloaded the DirectX 9.0b SDK and installed it. I go into Visual Studio and create a C# Windows Project. When I try to add a reference to DirectX and Direct3D, they don't even show up. So then I opened one of the sample projects, and it shows references to Microsoft.DirectX and 3D, but there's a yellow triangle with an exclamation point next to them.
What is the problem? | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 11/10/2006 at 02:44:26
| | | Sorry, can't help you there. I suggest you reinstall your DirectX SDK | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 20/10/2006 at 12:39:22
| | May I suggest that when instucting folks to create a new project in .NET, you specify whether its's a Windows Application, Empty Project or whatever. That would help some folks a lot. Also, in C# Express. The Main() method is in the Program.cs file.
Thanks. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 20/10/2006 at 12:40:00
| | May I suggest that when instucting folks to create a new project in .NET, you specify whether its's a Windows Application, Empty Project or whatever. That would help some folks a lot. Also, in C# Express. The Main() method is in the Program.cs file.
Thanks. | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 21/10/2006 at 06:51:49
| | | I've updated the page. thanks for the comment | |
|
|
| |
| |
| Poster | : jelamb | | Posts | : 1 | | Country | : United States | | City | : Rochester |
| | | | Posted by jelamb on 28/11/2006 at 21:20:36
| | | Sorry if I sound like a broken record, but yeah, I'm using VC# Express 2005 and the base code is completely different (there is no initialize method to change the window size). I copied/pasted the code from your first two tutorials (opening/linking) and it compiles, but in the process I got totally lost and I can't seem to get back on track - too much change to fast for my little mind to get around. Could you please update your tutorial to use the 2005 code? Maybe it's because of the above issue, but I can't seem to follow which code you're modifying either - program.cs or form1.cs | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 11/11/2007 at 02:37:11
| | same problem here, I get errors when successfully builded the form but when it calls for
| device.Clear(ClearFlags.Target, Color.DarkSlateBlue, 1.0f, 0); |
message: Object reference not set to an instance of an object.
so I'm stuck aswell :)
nice tutorial though! Can't wait to reach the resulst, but indeed it's a bit hard for beginners like me to try and get this working since the code from 2003 apparantly doesn't work in 2005 anymore :) | |
|
|