How to add a custom onAuthenticationReturn with C++?

Description
I’m using C++ to build my app that integrate Zoom SDK. I’m using code sample in this link https://marketplace.zoom.us/docs/sdk/native-sdks/windows/mastering-sdk/windows-sdk-functions.
But i’m still newbie with C++. When i try this code, i dont know how to assign my IAuthenService listener.
Can someone give me an example for this. Thank you very much.

Hey @hungnm,

Thanks for using the dev forum!

You need to have a class inherit from IAuthServiceEvent. This class must also implement all of the functions defined in IAuthServiceEvent. Once you have that class, and you create an object out of it. You pass it into that SetEvent method.
If you download the latest version of the video SDK, there is a demo app include. Ctrl+f for SetEvent and you should be able to find a couple different examples of this.

Thanks!
Michael

1 Like

Hey @Michael_Condon,
It worked. Thank you very much.

Hey @hungnm,

Awesome! I am happy to hear :slight_smile: please let us know if you have any other questions.

Thanks!
Michael

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.