Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-24-2006, 02:42 AM   #1
In Runtime
 
aff1993's Avatar
 
Join Date: Oct 2006
Posts: 115
Send a message via MSN to aff1993
Default My C# Program has a stupid error, need help.

My program has this error, i am trying to debug and it wont work.
Please help.
here is the error

Compiling IconEditor
error CS5001: Program 'c:\Documents and Settings\Tony\My Documents\SallyIDE C#\Sally IDE Source Code\IconEditor\obj\Debug\TestProject.exe' does not contain a static 'Main' method suitable for an entry point
Build failed.

Thanks, if you need more please ask, thanks
__________________

aff1993 is offline   Reply With Quote
Old 10-24-2006, 04:39 AM   #2
In Runtime
 
aff1993's Avatar
 
Join Date: Oct 2006
Posts: 115
Send a message via MSN to aff1993
Default Re: My C# Program has a stupid error, need help.

heres the code.


#region Garbage
/*
public class MyApplication
{
public static IconEditorDockContent mainWindow;
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
mainWindow=new IconEditorDockContent();
Application.Run(mainWindow);
}
}
*/
#endregion
}



Thanks
__________________

aff1993 is offline   Reply With Quote
Old 10-24-2006, 09:13 AM   #3
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: My C# Program has a stupid error, need help.

could it be that you've commented out all of the code?

and are left with

Code:
#region Garbage

#endregion
}
this is eaither a massive problem.
or you missed out a lot of code

I assume because of the last curled bracket that there is actually more code that you've cropped?
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:49 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0