Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Form Designer Pin
leppie27-Sep-02 9:55
leppie27-Sep-02 9:55 
GeneralRe: Windows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 10:13
Nnamdi Onyeyiri27-Sep-02 10:13 
GeneralRe: Windows Form Designer Pin
leppie27-Sep-02 10:38
leppie27-Sep-02 10:38 
GeneralRe: Windows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 11:17
Nnamdi Onyeyiri27-Sep-02 11:17 
GeneralRe: Windows Form Designer Pin
leppie28-Sep-02 1:53
leppie28-Sep-02 1:53 
GeneralRe: Windows Form Designer Pin
Tomas Petricek27-Sep-02 11:08
Tomas Petricek27-Sep-02 11:08 
GeneralRe: Windows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 12:03
Nnamdi Onyeyiri27-Sep-02 12:03 
GeneralRe: Windows Form Designer Pin
leppie27-Sep-02 13:36
leppie27-Sep-02 13:36 
GeneralInterfaces Pin
Nick Parker27-Sep-02 7:46
protectorNick Parker27-Sep-02 7:46 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 7:59
Paul Riley27-Sep-02 7:59 
GeneralRe: Interfaces Pin
Nick Parker27-Sep-02 8:15
protectorNick Parker27-Sep-02 8:15 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 8:26
Paul Riley27-Sep-02 8:26 
GeneralRe: Interfaces Pin
Nick Parker27-Sep-02 8:42
protectorNick Parker27-Sep-02 8:42 
GeneralRe: Interfaces Pin
Nick Parker27-Sep-02 8:52
protectorNick Parker27-Sep-02 8:52 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 10:16
Paul Riley27-Sep-02 10:16 
GeneralRe: Interfaces Pin
afronaut27-Sep-02 11:07
afronaut27-Sep-02 11:07 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 13:03
Paul Riley27-Sep-02 13:03 
GeneralRe: Interfaces Pin
leppie27-Sep-02 13:43
leppie27-Sep-02 13:43 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 14:16
Paul Riley27-Sep-02 14:16 
GeneralRe: Interfaces Pin
afronaut1-Oct-02 10:35
afronaut1-Oct-02 10:35 
GeneralClass Builder Wizard Pin
afronaut27-Sep-02 5:54
afronaut27-Sep-02 5:54 
GeneralRe: Class Builder Wizard Pin
leppie27-Sep-02 6:51
leppie27-Sep-02 6:51 
GeneralRe: Class Builder Wizard Pin
afronaut27-Sep-02 11:08
afronaut27-Sep-02 11:08 
Questionwhy I cann't cast the object???? Pin
fftongzhi27-Sep-02 0:23
fftongzhi27-Sep-02 0:23 
I pocket a class in a dll.And the class implement a interface.
and then I load the dll with these code:
Assembly a = Assembly.Load("mydll");
Type t = a.GetType("mydll.myClass");
object obj = Activator.CreateInstance(t);
MyInterface Imyclass=(MyInterface)obj;//this line will cause runtime error;

The biggest problem is that when I use it as below,it can work.
import the dll to my project first.
MyInterface Imyclass=new myClass();

What is the problem??? Anyone can help???Cry | :((



lost my way
AnswerRe: why I cann't cast the object???? Pin
leppie27-Sep-02 2:34
leppie27-Sep-02 2:34 

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.