Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c/c++
  • com

FindConnectionPoint , what parameters to pass

May 24, 2013 See the question and my original answer on StackOverflow

You need to pass the Interface Identifier (IID), so something like this:

point_container->FindConnectionPoint(IID__ISTIEventsEvents ,&conn_point);

If you don't have defined in a header file, you can create it using the #import "mytlb.tlb" directive, or just create it manually anywhere in your code using the 192B9F3E-DF39-41A5-95E0-0333B061CAB8 value.

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms