@waseefur.rahman wrote:
Hi,
I am trying to load the dll through arx application,
bool bLoads = acrxLoadModule(pathLvPty, true);
there are two dll which is being loaded in that one is successfully loaded, while other gives the error message as:
acrxGetApiVersion not found in e:\waseef\property_isolate.dll
Make sure the app links with rxapi.lib and export the symbol.AcRxDynamicLinker failed to load 'e:\waseef\property_isolate.dll
Can anyone please advice, where I need to change to load the dll successfully.
Thanks
Both dll's are arx/dbx files? If dll is mixed/managed application you have to load it such as:
1) LoadLibrary()
2) Also acdbmgd.lib export function LoadManagedDll:
enum Acad::ErrorStatus __stdcall LoadManagedDll(ACHAR const *path);
Sample:
enum Acad::ErrorStatus __stdcall LoadManagedDll(ACHAR const *path);
static int ads_netload(void)
{
struct resbuf *pArgs = acedGetArgs () ;
acedRetNil();
if (pArgs && pArgs->restype == RTSTR) {
Acad::ErrorStatus es = LoadManagedDll(pArgs->resval.rstring);
if (es != Acad::eOk) {
acutPrintf(_T("\nLoadManagedDll(\"%s\")=%s"),
pArgs->resval.rstring,acadErrorStatusText(es));
} else
acedRetStr(pArgs->resval.rstring);
}
return (RSRSLT) ;
}
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
