Hi, i got some Problems with getting TV3D 6.5 Running on Visual C# Express 2008, i added the .dll to my References but i can't simply start the Program
Here's my Main Method
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MTV3D65;
namespace myGame
{
public partial class Form1 : Form
{
//private variable to hold the instance of TVEngine.
private TVEngine _myTVEngine;
//private variable to hold the instance of TVInputEngine.
private TVInputEngine _myTVInputEngine;
//private variable to hold the instance of TVScreen2DText
private TVScreen2DText _myTVScreen2DText;
//boolean to hold if the main loop is still required.
private bool _isRunning;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
//Create and Initialise TVEngine Object
_myTVEngine = new TVEngine();
_myTVEngine.Init3DWindowed(Handle);
//Create and Initialise InputEngine Object
_myTVInputEngine = new TVInputEngine();
_myTVInputEngine.Initialize(true, true);
//Create a new TVScreen2DText Object
_myTVScreen2DText = new TVScreen2DText();
//Display our form
Show();
//Give our form focus
Focus();
//Start the Main Loop
MainLoop();
}
private void MainLoop()
{
_isRunning = true;
while (_isRunning)
{
//Clear the last iteration of the loop.
_myTVEngine.Clear();
//check the InputEngine for the escape key
if (_myTVInputEngine.IsKeyPressed(CONST_TV_KEY.TV_KEY_ESCAPE))
{
//set _isRunning to false to terminate the main loop
_isRunning = false;
}
//Add our Hello World text to the application
_myTVScreen2DText.NormalFont_DrawText("Hello World...", 50, 50, -16710933);
//Render this iteration of the loop to screen.
_myTVEngine.RenderToScreen();
// do events in the application
Application.DoEvents();
}
Application.Exit();
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
//terminate the main loop
_isRunning = false;
}
}
}
I get an FileNotFoundException in this Line:
Application.Run(new Form1());
Can someone help me get this Running?