AnsweredAssumed Answered

swAppFileCloseNotify

Question asked by Joerg Koch on Nov 21, 2016

I'm not able to use a CallBack with swAppFileCloseNotify in C++/COM Integration.

Nearly all other CallBack's we use work fine.

 

Here is some code.

 

STDMETHOD(AppFileCloseNotify)(BSTR docPath, long type);

   

    BEGIN_SINK_MAP(CSwAddin1)

        SINK_ENTRY_EX(ID_SLDWORKS_EVENTS, __uuidof(DSldWorksEvents), swAppActiveDocChangeNotify, OnDocChange)

        SINK_ENTRY_EX(ID_SLDWORKS_EVENTS, __uuidof(DSldWorksEvents), swAppDocumentLoadNotify, OnDocLoad)

        SINK_ENTRY_EX(ID_SLDWORKS_EVENTS, __uuidof(DSldWorksEvents), swAppFileNewNotify2, OnFileNew)

        SINK_ENTRY_EX(ID_SLDWORKS_EVENTS, __uuidof(DSldWorksEvents), swAppActiveModelDocChangeNotify, OnModelDocChange)

        SINK_ENTRY_EX(ID_SLDWORKS_EVENTS, __uuidof(DSldWorksEvents), swAppFileOpenPreNotify, FileOpenPreNotify)

        SINK_ENTRY_EX(ID_SLDWORKS_EVENTS, __uuidof(DSldWorksEvents), swAppFileOpenPostNotify, OnFileOpenPostNotify)

        /// swAppFileCloseNotify Only on Drawings

        SINK_ENTRY_EX(ID_SLDWORKS_EVENTS, __uuidof(DSldWorksEvents), swAppFileCloseNotify, AppFileCloseNotify)

    END_SINK_MAP( )

Regards,

 

Joerg Koch

Outcomes