Set the value of one COM object member variable failed

  • Thread starter Thread starter jos
  • Start date Start date
J

jos

Hi,all
I wrote a C# project ,in this project , when I create the COM object ,it turns out no error , When I try to get the value of the object's member variable ,it can return the value successfully,but when I try to set the value of the object's member variable,it throws out a "unknown error"!

Could anybody tell me why?

-ja
 
jos,

Is it an exception? If so, what is the type of the exception? Can you show some sample code? Also, are you sure that the property isn't read-only?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,all
I wrote a C# project ,in this project , when I create the COM object ,it turns out no error , When I try to get the value of the object's member variable ,it can return the value successfully,but when I try to set the value of the object's member variable,it throws out a "unknown error"!

Could anybody tell me why?

-ja
 
Yes, it is not readonly, some other projects also use the COM component, they can set the value of object's member variable.
"Nicholas Paldino [.NET/C# MVP]" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ:%[email protected]...
jos,

Is it an exception? If so, what is the type of the exception? Can you show some sample code? Also, are you sure that the property isn't read-only?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,all
I wrote a C# project ,in this project , when I create the COM object ,it turns out no error , When I try to get the value of the object's member variable ,it can return the value successfully,but when I try to set the value of the object's member variable,it throws out a "unknown error"!

Could anybody tell me why?

-ja
 
Back
Top