Click to See Complete Forum and Search --> : System.__ComObject
vbPoet
Oct 7th, 2005, 02:35 AM
i want to cast it to int.
is it possible?
i am unable to do it.
Pirate
Oct 7th, 2005, 11:14 PM
Is that VC++.NET ??
penagate
Oct 10th, 2005, 11:22 AM
Why the hell would you want to cast it to an int for? ;)
Hope this (http://support.microsoft.com/?kbid=320523) helps.
vbPoet
Oct 15th, 2005, 10:16 PM
no my program is in C#.
vbPoet
Oct 15th, 2005, 10:17 PM
Why the hell would you want to cast it to an int for? ;)
Hope this (http://support.microsoft.com/?kbid=320523) helps.
Oopps wrong.
I want to convert int into System.__ComObject .
That's right.
Mike Hildner
Oct 16th, 2005, 03:18 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.