Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generic GDI+ error Pin
Alomgir Miah16-Jun-05 9:49
Alomgir Miah16-Jun-05 9:49 
GeneralValidating user login Pin
Guinness4Strength16-Jun-05 6:16
Guinness4Strength16-Jun-05 6:16 
GeneralRe: Validating user login Pin
nemopeti16-Jun-05 6:43
nemopeti16-Jun-05 6:43 
GeneralRe: Validating user login Pin
Guinness4Strength16-Jun-05 6:45
Guinness4Strength16-Jun-05 6:45 
GeneralRe: Validating user login Pin
nemopeti16-Jun-05 7:16
nemopeti16-Jun-05 7:16 
GeneralRe: Validating user login Pin
Guinness4Strength16-Jun-05 7:32
Guinness4Strength16-Jun-05 7:32 
GeneralRuntime cast down inheritance tree Pin
Gizz16-Jun-05 4:51
Gizz16-Jun-05 4:51 
GeneralRe: Runtime cast down inheritance tree Pin
S. Senthil Kumar16-Jun-05 5:10
S. Senthil Kumar16-Jun-05 5:10 
If the type of the class is decided at runtime, then you can't have code like
o.SomeFunctionInDerivedClass();

either. What you'd have to do is use reflection to invoke methods, something like
object obj = Activator.CreateInstance(passedType);
obj.GetType().InvokeMember("SomeFunctionInDerivedClass",...);


Of course, the type you instantiated might not have an "SomeFunctionInDerivedClass" method, it'll then result in an exception and you have to handle it. That's the price to pay for reflection, you lose compile time type safety.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Runtime cast down inheritance tree Pin
Colin Angus Mackay16-Jun-05 5:29
Colin Angus Mackay16-Jun-05 5:29 
QuestionIs it possible to store unicode as Ansi and convert back again? Pin
Member 9616-Jun-05 4:39
Member 9616-Jun-05 4:39 
AnswerRe: Is it possible to store unicode as Ansi and convert back again? Pin
Dave Kreskowiak16-Jun-05 5:08
mveDave Kreskowiak16-Jun-05 5:08 
GeneralRe: Is it possible to store unicode as Ansi and convert back again? Pin
Member 9616-Jun-05 5:11
Member 9616-Jun-05 5:11 
Answer*SOLVED* Pin
Member 9616-Jun-05 6:40
Member 9616-Jun-05 6:40 
GeneralRe: *SOLVED* Pin
Dave Kreskowiak16-Jun-05 8:09
mveDave Kreskowiak16-Jun-05 8:09 
GeneralParsing IL Pin
gantww16-Jun-05 4:06
gantww16-Jun-05 4:06 
GeneralRe: Parsing IL Pin
iliyang16-Jun-05 4:11
iliyang16-Jun-05 4:11 
QuestionImporting Macros from C header files? Pin
iliyang16-Jun-05 4:03
iliyang16-Jun-05 4:03 
AnswerRe: Importing Macros from C header files? Pin
Colin Angus Mackay16-Jun-05 4:32
Colin Angus Mackay16-Jun-05 4:32 
AnswerRe: Importing Macros from C header files? Pin
Dave Kreskowiak16-Jun-05 4:55
mveDave Kreskowiak16-Jun-05 4:55 
GeneralRe: Importing Macros from C header files? Pin
iliyang16-Jun-05 5:06
iliyang16-Jun-05 5:06 
GeneralRe: Importing Macros from C header files? Pin
Dave Kreskowiak16-Jun-05 5:10
mveDave Kreskowiak16-Jun-05 5:10 
GeneralNow Im really irritated!! Pin
Anthony Mushrow16-Jun-05 3:07
professionalAnthony Mushrow16-Jun-05 3:07 
GeneralRe: Now Im really irritated!! Pin
iliyang16-Jun-05 4:08
iliyang16-Jun-05 4:08 
GeneralRe: Now Im really irritated!! Pin
Michael Potter16-Jun-05 4:15
Michael Potter16-Jun-05 4:15 
Generalretrieving http sites (frames) Pin
alexffm16-Jun-05 3:00
alexffm16-Jun-05 3:00 

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.