i want to cast it to int.
is it possible?
i am unable to do it.
Printable View
i want to cast it to int.
is it possible?
i am unable to do it.
Is that VC++.NET ??
Why the hell would you want to cast it to an int for? ;)
Hope this helps.
no my program is in C#.
Oopps wrong.Quote:
Originally Posted by penagate
I want to convert int into System.__ComObject .
That's right.
I guess you're using an ActiveX control and you need to create an object for that control - is that right?
If so you should probably just create an object of the type the ActiveX control is looking for. When you use GetType.Type on a COM object, you get System.__ComObject. I'm assuming you've done this and this is why you think you need to turn an int into a System.__ComObject.
Instead, you need to figure out what type of object it really is, by using the "as" operator.
I'm guessing a bunch here, if you provide more details I might be able to help more.
Mike