Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 December 29th, 2003, 11:49 AM
Authorized User
 
Join Date: Oct 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to yescarthik
Default compilation of c#

I installed .Net frame work in my system and i compiled a c# code using csc <filename.cs> in the folder "d:\files\c" and iam able to compile the code successfully.

       now i changed my directory to "d:\files\c#" written the same program and when i compiled the code it displays me an error.

       i think it might have created a path to the former directory

       how can i change the path .please help me

       actually am a beginner of c#.

        thanks in advance

   with regards,
   karthik.





 
Old December 30th, 2003, 06:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Just putting your cs file in a different directory shouldnt cause any problem unless your program has things like hard coded paths etc. Write back with what error you are getting.

Ankur Verma
.Net and C++ Specialist
Wiley Tech Support
 
Old January 2nd, 2004, 05:36 AM
Authorized User
 
Join Date: Oct 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to yescarthik
Default

I get the following error

              "sample.exe" doesnot have entry point defined

        where "sample.cs" is my actual file name

 
Old January 3rd, 2004, 07:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Make sure that your program has a function with name 'Main' beginning exactly as

static void Main

Write back if the problem persists.


Ankur Verma
.Net and C++ Specialist
Wiley Tech Support





Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation error pratik28 C# 1 September 24th, 2006 07:39 AM
Compilation Error allyant ASP.NET 2.0 Basics 1 August 5th, 2006 05:51 PM
Compilation Error don baroo ASP.NET 1.0 and 1.1 Basics 2 August 26th, 2005 08:05 PM
compilation error msrnivas .NET Web Services 3 June 9th, 2004 07:19 AM
Compilation Error Ophir Classic ASP Basics 1 June 3rd, 2004 01:05 PM





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