Hi,
My Windows application has a startup object defined in the properties of its project. This startup object has a public constructor that has a simple singleton implementation. The application has been running fine for almost a year.
Right now I'm in the middle of changing database-access from MS Access to MySql, and for some reason when I try to build the solution, VS2003 gives me this error:
'xxxxx.Applicatie' does not have a suitable Main method'
Well, the startup object doesn't have a Main method, but it never had one!
Here is the constructor for the startup object:
Can anybody see what is wrong with this?
TIA,
Hokke
My Windows application has a startup object defined in the properties of its project. This startup object has a public constructor that has a simple singleton implementation. The application has been running fine for almost a year.
Right now I'm in the middle of changing database-access from MS Access to MySql, and for some reason when I try to build the solution, VS2003 gives me this error:
'xxxxx.Applicatie' does not have a suitable Main method'
Well, the startup object doesn't have a Main method, but it never had one!
Here is the constructor for the startup object:
Code:
public Applicatie()
{
if (deApplicatie==null)
{
Thread th = new Thread(new ThreadStart(DoSplash));
th.Start();
deApplicatie = this;
if (LogonSuccesvol()==true)
{
th.Abort();
System.Windows.Forms.Application.Run(new FormHoofdscherm());
}
else
{
if (frmLogon.Cancel==false)
{
System.Windows.Forms.MessageBox.Show("some message.", "Hoorspelacteurs");
}
frmLogon.Close();
th.Abort();
}
}
else
{
System.Windows.Forms.MessageBox.Show("some message", "Hoorspelacteurs");
}
}
Can anybody see what is wrong with this?
TIA,
Hokke