Click here to Skip to main content
15,886,574 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multiple Generic Constraint Syntax? Pin
mike montagne17-Apr-07 18:25
mike montagne17-Apr-07 18:25 
QuestionDataRowState Not Working Pin
polishprogrammer17-Apr-07 11:56
polishprogrammer17-Apr-07 11:56 
AnswerRe: DataRowState Not Working Pin
kragan17-Apr-07 12:44
kragan17-Apr-07 12:44 
GeneralRe: DataRowState Not Working Pin
polishprogrammer18-Apr-07 5:51
polishprogrammer18-Apr-07 5:51 
QuestionPageSetupDialog Customization Pin
Wolfram Steinke17-Apr-07 11:19
Wolfram Steinke17-Apr-07 11:19 
Questionusing arrow key in a richtextbox Pin
dino209417-Apr-07 10:10
dino209417-Apr-07 10:10 
AnswerRe: using arrow key in a richtextbox Pin
il_masacratore17-Apr-07 21:16
il_masacratore17-Apr-07 21:16 
QuestionVirtual base class?? Pin
cbin17-Apr-07 9:30
cbin17-Apr-07 9:30 
Hi, the term is probably wrong, but this is what I need to do.

I want to make a base class that I cannot create instances of, but holds the prototypes for a bunch of functions. I will subclass from this later and make a real class. is an "interface" what I am looking to use?

For example: I have a method (call it "DoStuff") in a library that takes a "Surface" as one of its arguments. within that method I will evaluate a point on that surface, so "Surface" contains a method GetPoint(u,v). The surface class cannot do any evaluation because it could be a NURBS surface, or maybe an explicit surface, or any other kind that will evaluate differently, so to prevent a runtime bug, I want to prevent anyone from making an instance of "Surface". Instead, I want to create a subclass NurbsSurf : Surface that will know how to evaluate itself at u and v, and I will pass a "NurbsSurf" to "DoStuff", but the "DoStuff" method also needs to accept any other kind of surface that I might create.

Sorry, I know that this is probably a pretty basic question.

Thanks for any help

cb
AnswerRe: Virtual base class?? Pin
Pete O'Hanlon17-Apr-07 9:36
mvePete O'Hanlon17-Apr-07 9:36 
AnswerRe: Virtual base class?? Pin
Dan Neely17-Apr-07 9:49
Dan Neely17-Apr-07 9:49 
GeneralRe: Virtual base class?? Pin
cbin17-Apr-07 11:26
cbin17-Apr-07 11:26 
GeneralRe: Virtual base class?? Pin
DavidNohejl17-Apr-07 21:09
DavidNohejl17-Apr-07 21:09 
AnswerRe: Virtual base class?? Pin
DavidNohejl17-Apr-07 21:07
DavidNohejl17-Apr-07 21:07 
GeneralRe: Virtual base class?? Pin
cbin18-Apr-07 7:42
cbin18-Apr-07 7:42 
QuestionCan't add a variable watch! Pin
Lord Kixdemp17-Apr-07 9:04
Lord Kixdemp17-Apr-07 9:04 
AnswerRe: Can't add a variable watch! Pin
Judah Gabriel Himango17-Apr-07 9:27
sponsorJudah Gabriel Himango17-Apr-07 9:27 
Questionstruct with an array inside Pin
Marc Soleda17-Apr-07 8:59
Marc Soleda17-Apr-07 8:59 
AnswerRe: struct with an array inside Pin
Judah Gabriel Himango17-Apr-07 9:27
sponsorJudah Gabriel Himango17-Apr-07 9:27 
QuestionIs it possoble to create left mouse click ConextMenu? Pin
Khoramdin17-Apr-07 6:47
Khoramdin17-Apr-07 6:47 
AnswerRe: Is it possoble to create left mouse click ConextMenu? Pin
Martin#17-Apr-07 6:56
Martin#17-Apr-07 6:56 
QuestionGet Hardware Information in C sharp Pin
sottos17-Apr-07 6:15
sottos17-Apr-07 6:15 
AnswerRe: Get Hardware Information in C sharp Pin
Tarakeshwar Reddy17-Apr-07 6:24
professionalTarakeshwar Reddy17-Apr-07 6:24 
GeneralRe: Get Hardware Information in C sharp Pin
sottos17-Apr-07 6:40
sottos17-Apr-07 6:40 
QuestionASCII code Pin
marwan_siala17-Apr-07 5:57
marwan_siala17-Apr-07 5:57 
AnswerRe: ASCII code Pin
Guffa17-Apr-07 6:04
Guffa17-Apr-07 6:04 

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.