Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
Question.NET Remoting Chat Pin
Zuhair Rizvi27-Feb-07 19:46
Zuhair Rizvi27-Feb-07 19:46 
QuestionRegarding Online Forms Pin
ravindra250627-Feb-07 19:44
ravindra250627-Feb-07 19:44 
AnswerRe: Regarding Online Forms Pin
Sandeep Akhare27-Feb-07 21:12
Sandeep Akhare27-Feb-07 21:12 
QuestionHelp! I've fallen and can't get up. Pin
JMOdom27-Feb-07 19:14
JMOdom27-Feb-07 19:14 
AnswerRe: Help! I've fallen and can't get up. Pin
Harini N K27-Feb-07 19:40
Harini N K27-Feb-07 19:40 
AnswerRe: Help! I've fallen and can't get up. Pin
mike montagne27-Feb-07 19:49
mike montagne27-Feb-07 19:49 
GeneralRe: Help! I've fallen and can't get up. Pin
JMOdom28-Feb-07 10:57
JMOdom28-Feb-07 10:57 
GeneralRe: Help! I've fallen and can't get up. Pin
mike montagne28-Feb-07 12:24
mike montagne28-Feb-07 12:24 
You are really getting what you want here. What you need to do is ponder the error message for just a minute. Once you get used to *thinking* (relatively hard I suppose) about what messages express, you can interpret them relatively easily. Get used to thinking hard if you want to write software. You are going to have to develop cleaner thinking habits than "normal" people.

("Dirty thinking people,' in C# nomenclature.)

Smile | :)

The message tells you what your declaration is, and it is trying to tell you (no more cryptically than practical) how your declaration errs.

You have declared "Exer10Ch4.SchoolFigures.DetermineName(string)"

The term "body" must refer to a pair of braces {}. I had to figure that out myself as well (as I haven't got such an error in a long long while).

So, what the error is saying that if your declaration doesn't have a body, it must refer to an external declaration somewhere, for which case you have to declare it with the extern keyword:

extern Exer10Ch4.SchoolFigures.DetermineName(string);


This probably isn't the error (but possibly it is).

The compiler is telling you that it would also accept this statement if it were marked as abstract:

abstract Exer10Ch4.SchoolFigures.DetermineName(string);


The other condition it is telling you it would accept is that you declare a body:

Exer10Ch4.SchoolFigures.DetermineName(string)
     {
     }


The compiler is trying (all it can, really) to help you be a clean thinking person. You need to pay attention to the rules of the core language to interpret the message (easily, and cleanly).

Cool | :cool:
QuestionSocket Problem Pin
Rahul.RK27-Feb-07 18:42
Rahul.RK27-Feb-07 18:42 
Questionclosing form with its parent Pin
Saira Tanwir27-Feb-07 17:54
Saira Tanwir27-Feb-07 17:54 
AnswerRe: closing form with its parent Pin
Shajeel27-Feb-07 18:23
Shajeel27-Feb-07 18:23 
AnswerRe: closing form with its parent Pin
Saira Tanwir27-Feb-07 18:42
Saira Tanwir27-Feb-07 18:42 
GeneralRe: closing form with its parent Pin
Shajeel27-Feb-07 19:20
Shajeel27-Feb-07 19:20 
AnswerRe: closing form with its parent Pin
Saira Tanwir27-Feb-07 19:29
Saira Tanwir27-Feb-07 19:29 
QuestionHow to do XML serialization. Pin
wout de zeeuw27-Feb-07 17:49
wout de zeeuw27-Feb-07 17:49 
QuestionTooltip on disabled controls? Pin
Nilesh K.27-Feb-07 17:18
Nilesh K.27-Feb-07 17:18 
AnswerRe: Tooltip on disabled controls? Pin
Shajeel27-Feb-07 18:40
Shajeel27-Feb-07 18:40 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.27-Feb-07 18:50
Nilesh K.27-Feb-07 18:50 
GeneralRe: Tooltip on disabled controls? Pin
Harini N K27-Feb-07 18:56
Harini N K27-Feb-07 18:56 
GeneralRe: Tooltip on disabled controls? Pin
Shajeel27-Feb-07 19:13
Shajeel27-Feb-07 19:13 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.27-Feb-07 20:10
Nilesh K.27-Feb-07 20:10 
GeneralRe: Tooltip on disabled controls? Pin
mike montagne27-Feb-07 20:12
mike montagne27-Feb-07 20:12 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.27-Feb-07 20:22
Nilesh K.27-Feb-07 20:22 
GeneralRe: Tooltip on disabled controls? Pin
mike montagne28-Feb-07 5:41
mike montagne28-Feb-07 5:41 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.28-Feb-07 16:01
Nilesh K.28-Feb-07 16:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.