- Joined
- Nov 12, 2007
- Messages
- 333
- Reaction score
- 3
Ok so i want to make this basic Hello world application like this tutorial tells me to.
So i got a few questions.
1. When i open Main.c and click new, do i choose AVR project, Console Application, D application, or Empty project?
2. So i chose Console Application because i have a feeling thats what this is. Then it says C or C++? Well im learning C# so i think i should choose C. Am i right so far?
3. Ok now that i have it open it shows this:
do i delete it or keep it there?
4. If i keep it there and type in the script it tells me to:
So now i have:
5. When i click build i get 8 errors.
[/U]Can someone tell me what im doing wrong? I don't mean to sound like a noob here but it really sucks when u first start something and you get it wrong right away. The tutorial doesnt tell me where to enter the code, or what to start the project as (Such as Console program or Windows Application or etc..)
So i got a few questions.
1. When i open Main.c and click new, do i choose AVR project, Console Application, D application, or Empty project?
2. So i chose Console Application because i have a feeling thats what this is. Then it says C or C++? Well im learning C# so i think i should choose C. Am i right so far?
3. Ok now that i have it open it shows this:
![Thesnowman - [C#]Starting off - RaGEZONE Forums Thesnowman - [C#]Starting off - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
![Thesnowman - [C#]Starting off - RaGEZONE Forums Thesnowman - [C#]Starting off - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
do i delete it or keep it there?
4. If i keep it there and type in the script it tells me to:
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);
}
}
So now i have:
![Thesnowman - [C#]Starting off - RaGEZONE Forums Thesnowman - [C#]Starting off - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
![Thesnowman - [C#]Starting off - RaGEZONE Forums Thesnowman - [C#]Starting off - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
5. When i click build i get 8 errors.
Code:
[U][B]File Line Message[/B]
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |9| error: syntax error before "System"|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |17| error: syntax error before "void"|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |17| error: syntax error before "e"|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c ||In function `OnPain':|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |18| error: `e' undeclared (first use in this function)|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |18| error: (Each undeclared identifier is reported only once|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |18| error: for each function it appears in.)|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |18| error: `New' undeclared (first use in this function)|
C:\Users\kyle\Desktop\Programming\Projects\Hello World\main.c |18| error: syntax error before "Font"|
||=== Build finished: 8 errors, 0 warnings ===|
[/U]Can someone tell me what im doing wrong? I don't mean to sound like a noob here but it really sucks when u first start something and you get it wrong right away. The tutorial doesnt tell me where to enter the code, or what to start the project as (Such as Console program or Windows Application or etc..)