Hello everyone!
I had already installed VC6.0 in my computer, then i installed the Vs.net.
I wrote some programs of vs.net with the UtraEdit and compiled them in
command line. For example, i wrote a program of Hello World with C#
language:
using System;
class MainApp
{
public static void Main()
{
Console.WriteLi ne("Hello World using C#!");
}
}
and wrote a batch file: build.bat
csc /debug+ /out:.\HelloCS.e xe HelloCS.cs
then i executed the batch command, but resulting informed "csc isn't a inner
command!"( system doesn't find the compile command of the csc. I find
windows don't add the path of vs.net to the default path of windows in the
installing( My system is win2k). The paths of vs6.0 had been added to the
default path of windows, these path include: \vc98\bin;\comm on\Ms Dev98\bin;
\common\Tools; \common\Tools\W inNT etc.
How can i reset the system path in order that the compile command, for
example: csc.exe command, can be find in the compiling.
thank you!
jzp
2003.10.28 1 1893
Try adding the following line to your build.bat file, before the call to csc:
call "%VSCOMNTOOLS%\ vsvars32.bat"
Calling this batch file will put the VS tools on your path. The VSCOMNTOOLS environment variable is added to your
default environment by the VS .NET 2002 installer, and points to Program Files\Microsoft Visual Studio .NET\Common7
\Tools on a default installation. If you're using VS .NET 2003, use VS71COMNTOOLS instead.
Thanks,
Grayson
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| >From: "ping" <jz****@sina.co m.cn>
| >Subject: How to Compile Program?
| >Date: Tue, 28 Oct 2003 09:41:57 +0800
| >Lines: 40
| >X-Priority: 3
| >X-MSMail-Priority: Normal
| >X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
| >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
| >Message-ID: <#D************ **@TK2MSFTNGP12 .phx.gbl>
| >Newsgroups: microsoft.publi c.dotnet.genera l
| >NNTP-Posting-Host: 61.149.30.80
| >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:113402
| >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >
| >Hello everyone!
| >I had already installed VC6.0 in my computer, then i installed the Vs.net.
| >I wrote some programs of vs.net with the UtraEdit and compiled them in
| >command line. For example, i wrote a program of Hello World with C#
| >language:
| >
| > using System;
| > class MainApp
| > {
| > public static void Main()
| > {
| > Console.WriteLi ne("Hello World using C#!");
| > }
| > }
| >
| >and wrote a batch file: build.bat
| > csc /debug+ /out:.\HelloCS.e xe HelloCS.cs
| >
| >then i executed the batch command, but resulting informed "csc isn't a inner
| >command!"( system doesn't find the compile command of the csc. I find
| >windows don't add the path of vs.net to the default path of windows in the
| >installing( My system is win2k). The paths of vs6.0 had been added to the
| >default path of windows, these path include: \vc98\bin;\comm on\Ms Dev98\bin;
| >\common\Tool s; \common\Tools\W inNT etc.
| >
| >How can i reset the system path in order that the compile command, for
| >example: csc.exe command, can be find in the compiling.
| >
| > thank you!
| >
| >
| >jzp
| >
| >2003.10.28
| >
| >
| >
| >
| >
| >
| > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brian |
last post by:
Greetings:
I am trying to compile the following code via command line.
It compiles just fine in visual studio 2002 v7 so i took looked at the
properties and i
got the following command line options, but when i try to compile i
get the errors listed
below. Can anyone give me a suggestion on how to compile this program?
|
by: newbiecpp |
last post by:
I have hard time to understand run-time environment. Let assume that I have
a program that has a simple variable alpha. When this variable is
statically allocated, the compiler can use the absolute address of alpha to
access to it. What confuses me is that when the variable is dynamically
allocated, how does the compiler implement it? We know the address of the
variable until run-time. During the compilation, how can we access to the...
|
by: Brice Prunier |
last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...)
The context is the following :
Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema:
no TargetNamespace )
Person.xsd includes Common-Naming.xsd ( anonimous schemas )
Common-Naming.xsd includes common.xsd ( both are anonimous schemas )
Compilation of Resident.xsd raise the following exception:
"System.Xml.Schema.XmlSchemaException: The attribute 'oid'...
|
by: Jean-David Beyer |
last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2
V6.1 (with all the FixPacks) on my old machine.
I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat
Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After
creating an instance, starting the database, creating a database, and
entering the table definitions, all of which seems to work OK, I entered a
tiny 8-row table and can do...
|
by: Bart Goeman |
last post by:
Hi,
I have a question about how to put redundant information in data
structures, initialized at compile time. This is often necessary
for performance reasons and can't be done at run time (data
structures are read only)
Ideally one should be able to put the redundant
information there automatically so no mistakes are possible, but in a lot
of case I see no way how to do it.
| |
by: |
last post by:
I am trying to compile a simple c# class in Web Matrix called howdy.cs:
// Program start class
public class HowdyPartner
{
// Main begins program execution
public static void Main()
{
// Write to console
|
by: John Smith |
last post by:
Hi
I'm porting some C++ code to new platforms and have some 1-byte aligned
structures which need a specific size. Since datatypes can vary on different
platforms (which I found out the hard way since longs are not the same size
on win64 and linux x64) I would like to do a check at compile time to make
sure things are correct. This will ease future work.
Is it possible to do something like the following at preprocessing stage:
|
by: 张沈鹏 |
last post by:
How to compile the HelloWorld of boost.asio?
Maybe this is a stupid problem , but I really don't konw how to find
the right way.
My compile environment is
WinXP,
Msys ,
MinGw ,
G++ 3.4.2,
Boost 1.33.1,
|
by: zaidalin79 |
last post by:
I have a java class that goes for another week or so, and I am going to fail if I can't figure out this simple program. I can't get anything to compile to at least get a few points... Here are the assignments...
4. CheckPoint: Inventory Program Part 1
Resource: Java: How to Program
Due Date: Day 5 forum
Choose a product that lends itself to an inventory (for example, products at your
workplace, office supplies, music CDs, DVD...
|
by: BruceWho |
last post by:
I downloaded boost1.35.0 and built it with following command:
bjam --toolset=msvc-7.1 --variant=release --threading=multi --
link=shared --with-system stage
and it failed to compile, error message is:
E:\software\development\boost_1_35_0\boost_1_35_0>bjam --
toolset=msvc-7.1 --variant=release --threading=multi --link=shared --
|
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |