VS 2003 vs 2005 Startup properties

R

Rob

In VS2003 you had the option to select "Sub Main" as the Startup Object

It appears this option is not present in VS2005...

Is this the case ?

Thanks !
 
R

rowe_newsgroups

In VS2003 you had the option to select "Sub Main" as the Startup Object

It appears this option is not present in VS2005...

Is this the case ?

Thanks !

You must turn off the application framework first - then Sub Main will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(False)" to your Sub
Main to add back the features removed by unchecking the application
framework.

Thanks,

Seth Rowe
 
R

Rob

Instead of doing that... where would be a better palce to put some startup
code that applies to the whole program ?

Example... I place some code here to ensure that only 1 instance of the
program is running...

Thanks,
Rob
 
R

rowe_newsgroups

Instead of doing that... where would be a better palce to put some startup
code that applies to the whole program ?

Example... I place some code here to ensure that only 1 instance of the
program is running...

Thanks,
Rob
Example... I place some code here to ensure that only 1 instance of the
program is running...

If thats all your sub main does, just scrap it and check the "Make a
single instance application" on the application framework options box.

Thanks,

Seth Rowe
 
R

Rob

For any project that would be of the "Windows Application" type ?

Just want to know if there are some good cases for doing this...

Thanks,
Rob
 
R

rowe_newsgroups

For any project that would be of the "Windows Application" type ?

Just want to know if there are some good cases for doing this...

Thanks,
Rob

For example I have an application that shows a splash screen, updates
any dll files, registers a user with a database, grabs the appropriate
user settings, loads the main form into memory, hides the splash, and
finally shows the main form.

Thanks,

Seth Rowe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top