473,804 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

command line compile options

I would like to compile a class I have built to a library. I use the following command line:
vbc /reference:Micro soft.VisualBasi c.dll /t:library /sdkpath:c:\wind ows\microsoft.n et\framework\v1 .1.4322 ClockControl.vb

But I get the following errors (not all are listed):
vbc /reference:Micro soft.VisualBasi c.dll /t:library /sdkpath:c:\wind ows\microsof
t.net\framework \v1.1.4322 /imports:System, System.Drawing ClockControl.vb
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
Using alternate mscorlib.dll version 1.1.4322.573
Using alternate Microsoft.Visua lBasic.dll version 7.10.3052.4
Imports System.Drawing. Drawing2D
~~~~~~~~~~~~~~~ ~~~~~~~~~
C:\Documents and Settings\GaryO\ My Documents\Visua l Studio Projects\Analog ClockClockContr ol.vb(3) : error BC30002: Type 'System.Windows .Forms.UserCont rol' is n
ot defined.

Inherits System.Windows. Forms.UserContr ol
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~
C:\Documents and Settings\GaryO\ My Documents\Visua l Studio Projects\Analog ClockClockContr ol.vb(14) : error BC30451: Name 'ResizeRedraw' is not declared.

ResizeRedraw = True
~~~~~~~~~~~~
C:\Documents and Settings\GaryO\ My Documents\Visua l Studio Projects\Analog ClockClockContr ol.vb(18) : error BC30284: sub 'Dispose' cannot be declared 'Overrides
' because it does not override a sub in a base class.

Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
~~~~~~~
C:\Documents and Settings\GaryO\ My Documents\Visua l Studio Projects\Analog ClockClockContr ol.vb(28) : error BC30002: Type 'System.Compone ntModel.IContai ner' is
not defined.

Private components As System.Componen tModel.IContain er
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~
C:\Documents and Settings\GaryO\ My Documents\Visua l Studio Projects\Analog ClockClockContr ol.vb(37) : error BC30456: 'Enabled' is not a member of 'ClockControl'
...

Me.Enabled = False
~~~~~~~~~~
C:\Documents and Settings\GaryO\ My Documents\Visua l Studio Projects\Analog ClockClockContr ol.vb(38) : error BC30456: 'Name' is not a member of 'ClockControl'.

Me.Name = "ClockContr ol"
~~~~~~~
C:\Documents and Settings\GaryO\ My Documents\Visua l Studio Projects\Analog ClockClockContr ol.vb(49) : error BC30002: Type 'Graphics' is not defined.

This compiles correctly in the IDE but not from the command line. What I am missing?
Thanks,
Gary

Nov 20 '05 #1
3 1808
* =?Utf-8?B?R2FyeSBP?= <an*******@disc ussions.microso ft.com> scripsit:
I would like to compile a class I have built to a library. I use the following command line:
vbc /reference:Micro soft.VisualBasi c.dll /t:library /sdkpath:c:\wind ows\microsoft.n et\framework\v1 .1.4322 ClockControl.vb

But I get the following errors (not all are listed):
vbc /reference:Micro soft.VisualBasi c.dll /t:library /sdkpath:c:\wind ows\microsof
t.net\framework \v1.1.4322 /imports:System, System.Drawing ClockControl.vb
Add a reference to "System.Windows .Forms.dll" and "System.Drawing .dll"...
This compiles correctly in the IDE but not from the command line. What I am missing?


--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Thanks, that took care of some of them. I still can't seem to get DateTime, Point, and Graphics, even though I am referencing System.Drawing. dll, etc
Any other clues?
Nov 20 '05 #3
Gary,
Thanks, that took care of some of them. I still can't seem to get DateTime, Point, and Graphics, even though I am referencing System.Drawing. dll, etc.
Any other clues?


Try adding

/imports:System

to the command line, or

Imports System

to the source file.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3111
by: Christopher Bohn | last post by:
(repost under MSDN account) When building a solution that consists of one managed C++ project with a project reference to a C# project in the same solution, there is a bug when trying to build from the command line. The /FU arguments that should be present for the project's references appear in the IDE's buildlog.htm but they do not appear when built from the command line. Everything builds just fine from the IDE. We are running on XP...
1
2072
by: rforman1 | last post by:
I have found many threads with this question asked and ostensibly answered, but none with an example of how exactly to do it. Help! I know that in order to set up the values of command line arguments from within the IDE, I go to Project Properties, Configuration Properties, and then the text box labeled "Command Line Arguments" under the label "Start Options." But what exactly do I put into that text box? What I want to do is set up a...
2
453
by: aladdin | last post by:
I use outside .jpg picture files in a Windows Form project. I try to compile use csc.exe at command line. I use resgen.exe to generate a resource file like: resgen.exe Form1.resx MyNameSpace.MainForm.resources then use csc to compile: csc /nologo /t:winexe /out:app1.exe /res:MyNameSpace.MainForm.resources /win32icon:App.ico *.cs The output exe file has the same size as compiled in VS.NET IDE, however, at runtime the program still...
12
5391
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the manuals for the proper techniques to prepare an sqlj program. When I went to try the sqlj command, I got this: Exception in thread "main" java.lang.NoClassDefFoundError: sqlj/tools/Sqlj
4
7554
by: Brett | last post by:
I have recently purchased Visual C++ . Net compiler and i am trying to compile a project that i had working in Visual C++ 6.0. When I compile, I am receiving the warning: cl : Command line warning D4025 : overriding '/EHs' with '/EHa' I have specifically asked for the /EHsc switch because that is what I require.
5
3413
by: clsmith66 | last post by:
I've been asked to find out if a project is possible, but I'm not having much luck finding the information I need, I hope some one can help. I need to see if I can build a windows service on the fly customized to a specific client. Is it possible to run the VS command line tool through another application (VB.NET)? I'm thinking I can run the tools as a process and pass the necessary parameters to the process, but I'm not sure how to go...
8
3521
by: Andrew Robert | last post by:
Hi Everyone. I tried the following to get input into optionparser from either a file or command line. The code below detects the passed file argument and prints the file contents but the individual swithces do not get passed to option parser.
0
1138
by: drken567 | last post by:
I'm trying to execute a command line from my C++ .NET code/WinXP. The program (call it myprog.exe) is located in a directory (C:\mypath) which is included in the system 'path' environment variable. From a DOS window, I can do the following: "C:\any_other_path>myprog option1 option2...." with no problem. From my code, I've tried using the old 'system()' C-style call (only works if I specify it as "system("c:\mypath\myprog options..."); then I...
17
3384
by: Matt | last post by:
Hello. I'm having a very strange problem that I would like ot check with you guys. Basically whenever I insert the following line into my programme to output the arguments being passed to the programme: printf("\nCommand line arguement %d: %s.", i , argv ); The porgramme outputs 3 of the command line arguements, then gives a segmentation fault on the next line, followed by other strange
3
4581
by: Tom Baxter | last post by:
I just set up VS 2008 B2 and did a simple command line compile from the VS command prompt. I received this warning: warning CS1668: Invalid search path 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' When I checked, sure enough, the "lib" directory is not present'. Perhaps I
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5535
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.