Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 January 30th, 2005, 06:29 PM
Authorized User
 
Join Date: Jan 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can’t create dll file as in book example.

Re book: Beginning ASP.NET1.1 with VB.NET 2003 (#0764557076)
Chap.13 Pg. 475 “Try It Out. Compiling Our First ASP.NET Component"

The context of the Compile.bat file is:

cd c:\BegASPNET11\Chapter13
md bin

vbc /t:library /r:System.dll /out:bin/HelloWorld.dll HelloWorld.vb
pause

but when I try to recreate the HelloWorld.dll by double clicking the Compile.bat in Explorer I am getting a “ ‘vbc’ is not recognized as an internal or external command, operable program or batch file “ error in the Command Prompt window.

The book sample works because it comes with the dll file already installed. But when it comes to compile my own, I am stack on the middle of the book. HELP anyone please!!!


CONT.

I found some leads in Selected Forums and followed on them and found to have three VBC.exe application.
Windows/SevicePack, Windows/Microsoft.net/Framework1.1, and /Framework2.0
(what is VBC.exe-####### in windows/prefetch?)
I copy the VBC.exe from ServicePack to the Compile.bat file folder only to have the Command Prompt Window asking for more dll files each time I supply.

I entered the path in the compile.bat to the VBC.exe in windows directory like:

C:\windows\servicePackFiles\i386\vbc.exe /t:library /r:System.dll /out:bin/HelloWorld.dll HelloWorld.vb

Only to get the following error on dbl click.

msgBox Err.: “Entry point not found.
        The procedure entry point GetRequestRuntimeInfo could not be located in the dynamic link library mscoree.dll.

Error repeated 3 times then in the Command Prompt:
Fatal error BC2000: compiler initialization failed unexpectedly: ‘C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\s ystem.dll’ cannot be referenced because it is not an assembly.
(why does it reference MS.NET when I directed it to servicePackFiles?)

I tried to recreate the project in Visual Studio 2003 v7.1 with NET Framework 1.1 but I have no clue how to compile in here. The closest I could find build/build compiling do not react to any of the loaded files, and Tools doesn’t reference any compiling at all.

I guess there will be no assemblies and custom controls in my apps @#!!*.


Great Thanks in advance!

Henry
 
Old January 31st, 2005, 10:34 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Try doing your command from a visual studio command prompt, rather than an normal command prompt. This has all the necessary paths set.

 
Old January 31st, 2005, 07:17 PM
Authorized User
 
Join Date: Jan 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi jaucourt;
Thanks for your help;
Be with me as I am all new to Visual Studio.net.

How do you navigate to Command Prompt in VS or
How do you compile from it, but please line by line.

I’ll let you know how I’m doing.

Many thanks,
Henry


 
Old February 1st, 2005, 09:07 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Command prompt is under Start->Programs->Microsoft Visual Studio .NET 2003->Visual Studio .NET Tools, Visual Studio .Net 2003 Command Prompt.

 
Old February 1st, 2005, 02:36 PM
Authorized User
 
Join Date: Jan 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi jaucourt and many thanks again;

In my VS.NET under ‘Tools’ I have:
Debug Processes
Connect To Devise
Connect To Database
Add/Remove Toolbox
Add in Manager
Build Comment Web Pages
Macros
ActiveX Control Text Container
Create GUID
Dotfuscater Community Editor
Error Lookup
ATL/MFC Trade Tool
OLE/COM object viewer
Spy++
External Tools
Customize
Options

And none of those leads to Command Prompt! Any comments?

Thanks, Henry


 
Old February 3rd, 2005, 09:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Henry,

He is talking about going through your Windows "Start" menu, not a menu in Visual Studio. Follow his instructions and you should see it.

J
 
Old February 5th, 2005, 03:18 PM
Authorized User
 
Join Date: Jan 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi J
Thanks for correction (slow me :D).
It works with some errors, but that’s for later.

Right now I am trying to redo the same book’s samples in VS but I am getting the server error I never have before using the MS Web Matrix.

See my new tread above.

Henry
 
Old February 16th, 2005, 03:36 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hchlebowski, I've had the same damn problem for 2 days now and I just figured it out. You have to type in the entire path for the vbc.exe.

Windows 2000 would be:
c:\winnt\microsoft.net\framework\v1.1.4322\vbc.exe /t:library /r:System.dll /out:bin/HelloWorld.dll HelloWorld.vb






Similar Threads
Thread Thread Starter Forum Replies Last Post
Can’t add method to class in C#? arbab BOOK: Beginning C# 2005 Databases 0 September 29th, 2008 07:35 AM
How to create CLSID for dll as_prabahar ASP.NET 1.0 and 1.1 Professional 3 July 12th, 2006 02:36 AM
How to create DLL? randylsmith VB How-To 1 February 6th, 2006 08:41 AM
How To Create A Simple DLL with VB6 DSanborn3 VB How-To 2 February 23rd, 2005 04:23 PM
Create an ActiveX DLL .... miglou VS.NET 2002/2003 1 September 23rd, 2003 08:43 AM





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