Results 1 to 6 of 6

Thread: System.__ComObject

  1. #1

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    System.__ComObject

    i want to cast it to int.
    is it possible?
    i am unable to do it.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: System.__ComObject

    Is that VC++.NET ??

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: System.__ComObject

    Why the hell would you want to cast it to an int for?

    Hope this helps.

  4. #4

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: System.__ComObject

    no my program is in C#.

  5. #5

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: System.__ComObject

    Quote Originally Posted by penagate
    Why the hell would you want to cast it to an int for?

    Hope this helps.
    Oopps wrong.
    I want to convert int into System.__ComObject .
    That's right.

  6. #6
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: System.__ComObject

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width