Autodesk ObjectARX
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to register the “ClassDict ionary of AcBrEntity ” ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
How to register the “ClassDictionary of (cBrEntity” ?
You search ??? atmy source VisualC++s.
#include "brgbl.h"
#include "brent.h"
#include "brtrav.h"
#include "brment.h"
#include "brsample_pch.h" //precompiled header
[source]
AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt)
{
switch (msg) {
case AcRx::kInitAppMsg:
asserte("G170");
acrxDynamicLinker->unlockApplication(pkt);
acrxDynamicLinker->registerAppMDIAware(pkt);
//initAsdkIconSamp();
initApp();
if (!(acrxClassDictionary->at(_T("AcBrEntity"))))
{
asserte("G240");
if (acrxDynamicLinker->loadModule(_T("libacbr.dll"), 1)) ?????
ads_printf(_T("\nLoadLibraryEx(\"libacbr.dll\")=ok
else
ads_printf(_T("\nLoadLibraryEx(\"libacbr.dll\")=fa
asserte("G241");
if (acrxClassDictionary->at(_T("AcBrEntity"))) ????
ads_printf(_T("\nRegisterClassDictionary(\"libacbr
else
ads_printf(_T("\nRegisterClassDictionary(\"libacbr
};
break;
[/source]
At text screen (at line command):
[source]
AcRxDynamicLinker failed to load 'libacbr.dll'
LoadLibraryEx("libacbr.dll")=failed g240err
RegisterClassDictionary("libacbr.dll")=failed g241err
[/source]
Best regards.
Solved! Go to Solution.
Re: How to register the “ClassDict ionary of AcBrEntity ” ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: How to register the “ClassDict ionary of AcBrEntity ” ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you., for your replay.....
![]()
I found the solution ,myself
[source]
#define DLLNAME_ACBR "acbr17.dbx"
initApp();
if (!(acrxClassDictionary->at(_T("AcBrEntity"))))
{
if (acrxDynamicLinker->loadModule(_T(DLLNAME_ACBR), 1))
ads_printf(_T("\nLoadLibraryEx(\"DLLNAME_ACBR\")=
else
ads_printf(_T("\nLoadLibraryEx(\"DLLNAME_ACBR\")=
[/source]
Re: How to register the “ClassDict ionary of AcBrEntity ” ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
If your module has a dependency on the acbr17.dbx module, then you should be calling loadModule() regardless whether it is already loaded (and call unloadModule() when your dependency expires).
Owen Wengerd
ManuSoft



