Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to VB - need to create an .exe

Status
Not open for further replies.

dpu

IS-IT--Management
Jan 24, 2005
179
US
Hello -
I am new to VB. I just created a simple console program that displays different phone numbers for my multiple offices. The app runs fine when I am running VB and debugging. But I tried to copy the .exe file to my desktop so I can run it from the shortcut but the app just flashes after I enter the office location I want a number retreived for. What am I missing that will allow me to run the .exe from my desktop?
 
Are there any referenced DLLs in your project? Sometimes those DLLs must be located in the same directory as the exe.

Is it throwing any exceptions?

Senior Software Developer
 
Possible Easy fix for this would be to compile it as static instead of shared. Most computers don't have required libraries installed by default to run programs compiled as shared.

However this doesn't sound like the problem. So, that being said, try compiling the program for release and using that one.
 
How would I compile this program as static?
 
OK - I think I got it. Now my new problem is how to create an install file for my new project. I am only using Standard Edition of VB.NET 2003 and when I create a new project under Setup and Deployment I only see the Setup Project and not the Setup wizard?
 
Yah, I have not used that yet so I cant help there. And sorry about the static compile. I don't see that for VB. I'm a C++ programmer. I haven't used VB except for few things recently, in a few years.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top