How can I pass a .Net Socket as a parameter to COM

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moshec
    New Member
    • Jul 2010
    • 1

    #1

    How can I pass a .Net Socket as a parameter to COM

    Hi,

    I have a TCP listener that when a new connection is opene a new thread is opened to handle it. I have to pass the new opened socket to a com and use it in the COM. I tried to pass it through a VARIANT (because the IDL can't get method definition with the type Socket^),
    but I can't cast it from VARIANT or VARIANT* to Socket^.

    Any suggestion?

    thanks
    moshec
Working...