Forum
Contact





DirectX using C#
DirectX using C++
DirectX using Visual Basic



Latest Forum posts

 Tutorial 3 for Windows Phone 7
  Posted by: Anonymous
  When: 19/05/2013 at 11:27:50

 No download link for 2d series: shooter
  Posted by: zaboleq
  When: 07/05/2013 at 15:46:28

 Collision Class?
  Posted by: Anonymous
  When: 05/05/2013 at 19:03:59

 stack overflow
  Posted by: cityguy
  When: 07/04/2013 at 01:58:38

 Meshes looks strange.
  Posted by: ab_saratov
  When: 01/04/2013 at 04:31:08

 Lamppost Not loaded
  Posted by: Anonymous
  When: 22/03/2013 at 06:43:52

 Collision Class?
  Posted by: Da_Boom
  When: 21/03/2013 at 01:23:09

 Math boggles me
  Posted by: cityguy
  When: 17/03/2013 at 03:44:48

 Collision Class?
  Posted by: Da_Boom
  When: 16/03/2013 at 03:44:42

 Tree update
  Posted by: Anonymous
  When: 15/03/2013 at 21:11:22

 XNA 4.0
  Posted by: Anonymous
  When: 15/03/2013 at 19:43:57

 Error when I try to run.
  Posted by: Anonymous
  When: 15/03/2013 at 19:21:06

 Error With the Effect File
  Posted by: Anonymous
  When: 15/03/2013 at 18:21:01

 Can only get shadowmap
  Posted by: Anonymous
  When: 15/03/2013 at 15:48:52

 Vertex and Pixel Shader Versions?
  Posted by: Anonymous
  When: 15/03/2013 at 15:07:16

 Unsupported properties
  Posted by: Anonymous
  When: 15/03/2013 at 14:23:00

 Problem Loading Skybox
  Posted by: Rana
  When: 15/03/2013 at 10:34:45

 Black Screen Of Death - Help!
  Posted by: Anonymous
  When: 15/03/2013 at 03:43:43

 2.0 anyone?
  Posted by: Anonymous
  When: 15/03/2013 at 02:19:48

 Defitinition of tha rotation axis
  Posted by: Anonymous
  When: 15/03/2013 at 00:55:14




Topic: starting



  
Goto parent category
  
Create a new user account


   starting
 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 :)

  
Post a new reply
 





Google
 
Web www.riemers.net
If you appreciate the amount of time I spend creating and updating
these pages, feel free to donate -- any amount is welcome !
- Website design & DirectX code : Riemer Grootjans -
©2006 Riemer Grootjans


News
Home
Forum
XNA 2.0 Recipes Book (8)
XNA 3.0 Recipes Book (8)
Downloads
Extra Reading (3)
Matrices: geometrical
Matrix Mathematics
Homogenous matrices
Community Projects (1)
Tutorials (160)
XNA 4.0 using C# (89)
DirectX using C# (54)
Series 1:Terrain (14)
Opening a window
Linking to the Device
Drawing a triangle
Camera
Rotation - Translation
Indices
Terrain creation
Terrain from file
DirectInput
Importing bmp files
Colored vertices
DirectX Light basics
Mesh creation
Mesh lighting
Series 2: Flightsim (19)
Series 3: HLSL (19)
Short Tuts (2)
Resizing problem
Checking Device caps
DirectX using C++ (15)
DirectX using VB (2)