Created
November 4, 2025 06:26
-
-
Save CEXT-Dan/891bff5a8cd1fe45aca3e49c756128b3 to your computer and use it in GitHub Desktop.
acrxEntryPoint for doc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //----------------------------------------------------------------------------- | |
| //----- ObjectARX EntryPoint | |
| class wxArx : public AcRxArxApp | |
| { | |
| public: | |
| wxArx() : AcRxArxApp() | |
| { | |
| } | |
| virtual AcRx::AppRetCode On_kInitAppMsg(void* pkt) | |
| { | |
| AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg(pkt); | |
| return (retCode); | |
| } | |
| virtual AcRx::AppRetCode On_kUnloadAppMsg(void* pkt) | |
| { | |
| AcRx::AppRetCode retCode = AcRxArxApp::On_kUnloadAppMsg(pkt); | |
| return (retCode); | |
| } | |
| virtual AcRx::AppRetCode On_kLoadDwgMsg(void* pkt) override | |
| { | |
| AcRx::AppRetCode retCode = AcRxDbxApp::On_kLoadDwgMsg(pkt); | |
| initOnce(); | |
| return retCode; | |
| } | |
| static bool initOnce() | |
| { | |
| static bool _called = false; | |
| if (!_called) | |
| { | |
| _called = true; | |
| acutPrintf(_T("\nInit once")); | |
| } | |
| return _called; | |
| } | |
| virtual void RegisterServerComponents() | |
| { | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment