Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2007, 09:39 PM
Registered User
 
Join Date: Apr 2007
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default [newbie] Please help me with Compiling in VB 2005

hello everyone! I have little experience programming in VB.
in VB 6, when i want to create an *.EXE file, I just Click file>>make *.exe..then I can have the executable file. However in VB 2005, i click the build button then I can have the *.exe on the "debug" folder or "obj" folder. that's ok right? but my problem is, that *.exe file doesn't run on other PC that doesn't have VB installed.

I have read about VBC.exe on compiling but when I tried it, it prompts that sub main was missing...

to those experienced programmers, please help me with compiling..as you know, I just want to make *.exe that will run on any computer using visual basic 2005..

Thanks^^

 
Old April 10th, 2007, 09:50 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Your .exe file will go to one of 2 places when you build it: Your debug folder or your release folder depending on how you have elected to build the file.

VBC is just the command line utility that will compile files for you; e.g. you are doing the same thing in Visual Studio when you hit CTRL+SHIFT+B (build)

In so far as your app not running, this has nothing to do with VB not being installed on the machine; it probably has more to do with the .NET framework not being installed on the other machine *or* you have the incorrect version installed (1.x as opposed to 2.0). Not having the correct version or not having the framework at all will cause your apps to fail.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 10th, 2007, 10:19 PM
Registered User
 
Join Date: Apr 2007
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thank you very much for your kind reply^^

.NET is quite confusing haha!
Sir, does it mean that I will have to install .NET v 2.0 to every computer that will use my application? is that what the "publish" does? because I notice when I do that, an installer is made? Does that Installer installs the .NET to the other machine?

God Bless^^

 
Old April 11th, 2007, 06:35 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You can specify to include the framework in the installer of your application (Just be aware this will cause your install file to grow by about 25+mb) and yes, the .NET framework MUST be installed on any computer you wish to run your application on.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
Worked on ASP 2005 but new to VB 2005 akhilhp Visual Basic 2005 Basics 0 May 18th, 2007 12:37 AM
Problem with compiling - 2005 pghTech Visual C++ 2005 0 June 28th, 2006 11:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.