Click here to Skip to main content
15,670,416 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: why I cann't cast the object???? Pin
leppie27-Sep-02 2:34
leppie27-Sep-02 2:34 
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 16:02
fftongzhi27-Sep-02 16:02 
GeneralRe: why I cann't cast the object???? Pin
leppie27-Sep-02 16:21
leppie27-Sep-02 16:21 
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 16:36
fftongzhi27-Sep-02 16:36 
AnswerRe: why I cann't cast the object???? Pin
Eric Gunnerson (msft)27-Sep-02 8:43
Eric Gunnerson (msft)27-Sep-02 8:43 
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 16:21
fftongzhi27-Sep-02 16:21 
Thank you first,but the problem is still here.
I think it doesn't matter with the version.
I made a test like this.
First I build a interface(Imyclass) in a Imyclass.dll;
Reference it in the project of myclass which implemented the Imyclass and build a myclass.dll
And then,reference the Imyclass.dll to the project want to load myclass.dll at runtime.
and these codes will still create a exception(specified cast is not void);
Imyclass ImyCls =(Imyclass)Activator.CreateInstance(t);

In this case,the version of Imyclass.dll will same in each project,and the problem is still going on.
Some thing special is ,in myclass,I used some struct defined by myself for fuction parameters and return value.Is that the problem of system defult serialization???
Frown | :(

lost my way
GeneralRe: why I cann't cast the object???? Pin
fftongzhi27-Sep-02 20:30
fftongzhi27-Sep-02 20:30 
GeneralADO.NET with C# Pin
Rickard Andersson2027-Sep-02 0:20
Rickard Andersson2027-Sep-02 0:20 
GeneralRe: ADO.NET with C# Pin
leppie27-Sep-02 2:38
leppie27-Sep-02 2:38 
GeneralRe: ADO.NET with C# Pin
Rickard Andersson2027-Sep-02 3:55
Rickard Andersson2027-Sep-02 3:55 
GeneralRe: ADO.NET with C# Pin
David Stone27-Sep-02 8:42
sitebuilderDavid Stone27-Sep-02 8:42 
GeneralRe: ADO.NET with C# Pin
Derek Smigelski28-Sep-02 10:06
Derek Smigelski28-Sep-02 10:06 
GeneralRe: ADO.NET with C# Pin
David Stone28-Sep-02 10:32
sitebuilderDavid Stone28-Sep-02 10:32 
Questionmay i read the same object on network from a file? Pin
imran_rafique26-Sep-02 16:27
imran_rafique26-Sep-02 16:27 
AnswerRe: may i read the same object on network from a file? Pin
Rickard Andersson2026-Sep-02 20:41
Rickard Andersson2026-Sep-02 20:41 
Questionhow to show gif image on toolbar? Pin
bclangren26-Sep-02 15:02
bclangren26-Sep-02 15:02 
AnswerRe: how to show gif image on toolbar? Pin
Luis Alonso Ramos27-Sep-02 4:36
Luis Alonso Ramos27-Sep-02 4:36 
Generalctl+c problem Pin
Anonymous26-Sep-02 9:53
Anonymous26-Sep-02 9:53 
GeneralAccessing data in one assembly from another Pin
ez226-Sep-02 9:30
ez226-Sep-02 9:30 
GeneralRe: Accessing data in one assembly from another Pin
leppie26-Sep-02 10:41
leppie26-Sep-02 10:41 
GeneralCopy of files from one folder to another Pin
Cintch26-Sep-02 6:05
Cintch26-Sep-02 6:05 
GeneralRe: Copy of files from one folder to another Pin
leppie26-Sep-02 10:53
leppie26-Sep-02 10:53 
General[Remoting]No receiver registered Pin
Ricciolo26-Sep-02 5:50
Ricciolo26-Sep-02 5:50 

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.