lol i didnt know you were going to reply so i edited my post. So any advice?
Even if i go into Start > Microsoft Visual Studio > Visual Studio tools > Visual Studio 2008 command prompt i still get the three errors.
Example.
I clicked Start > Notepad then pasted this code into the document:
Code:
using System.Windows.Form;
using System.Drawing;
Class Myform:Form{
public static void Main(){
Application.Run (New MyForm());
}
Protected override void OnPain(painteventargs e){
e.graphics.DrawingString("Hello World!", New Font("Arial", 35),
Brushes.Blue, 10, 100);
}
}
and then i save it in C:\ as hellogui.cs
I go back into my VS cmd and change the directory to C:\
i then type in
Code:
csc /target:winexe Hellogui.cs
and i get the same three errors:
Code:
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC>cd C:\
C:\>csc /target:winexe Hellogui.cs
Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\PlatformSDK\lib' specified in 'LIB environment variable'
-- 'The system cannot find the path specified. '
hellogui.cs(4,1): error CS0116: A namespace does not directly contain members
such as fields or methods
hellogui.cs(5,19): error CS1518: Expected class, delegate, enum, interface, or
struct
hellogui.cs(13,1): error CS1022: Type or namespace definition, or end-of-file
expected
C:\>
The errors are in Red. But you will also notice i put something in blue. How and where do i correct my path from:
Code:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\PlatformSDK\lib
to
Code:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib
please take in mind im on Windows Vista x64 bit