The OLE Connection number from IConnectionPoint::Advise.

Help
2013-05-08
2013-05-09
  • Andrey Romanenko

    Hello,

    Sorry, for some reason I posted my message into a wrong forum (2.0 Migration), so I take the liberty to post it here where I believe it is more appropriate:

    I need to implement the Refresh() method of OPCAE specification and it requires that The OLE Connection number from IConnectionPoint::Advise be provided.
    I have found this way below

       IJIComObject object = ....;
       Object[] connInfo = object.internal_getConnectionInfo(callbackID);
        connNumber = (Integer)connInfo[1];
    

    but internal_getConnectionInfo() is declared as an internal method of the framework. Could anybody suggest if there is a better way? Thank you.

     
    • Vikram Roopchand

      Hi,

      You can use that method. We won't be removing it :).

      Best regards,
      Vikram
      On May 8, 2013 11:22 PM, "Andrey Romanenko" androm@users.sf.net wrote:

      Hello,

      Sorry, for some reason I posted my message into a wrong forum (2.0
      Migration), so I take the liberty to post it here where I believe it is
      more appropriate:

      I need to implement the Refresh() method of OPCAE specification and it
      requires that The OLE Connection number from IConnectionPoint::Advise be
      provided.
      I have found this way below

      IJIComObject object = ....;
      Object[] connInfo = object.internal_getConnectionInfo(callbackID);
      connNumber = (Integer)connInfo[1];

      but internal_getConnectionInfo() is declared as an internal method of the
      framework. Could anybody suggest if there is a better way? Thank you.


      The OLE Connection number from IConnectionPoint::Advise.https://sourceforge.net/p/j-interop/discussion/600730/thread/d833101e/?limit=25#dbb8

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/j-interop/discussion/600730/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks