Author Topic: My Code does not load arx files in AutoCAD LT 2010  (Read 2481 times)

0 Members and 1 Guest are viewing this topic.

shiv_4feb

  • Guest
My Code does not load arx files in AutoCAD LT 2010
« on: September 17, 2011, 09:25:21 AM »
I am trying to load one arx file in AutoCAD LT 2010 with the following functions
 
bool loadOneAppNew(const TCHAR *appName, int printIt, bool asCmd, boolneedSetPtr)
{
      typedef int (*PFNDLL1)(const TCHAR*, int, bool);
      HMODULE     hLib = GetModuleHandle(m_acrx15Name);
      PFNDLL1 lpfn = (PFNDLL1)GetProcAddress(hLib ,m_acrxLoad);
      if (!lpfn) return false;
      int res = (lpfn)(appName,printIt,asCmd);
      return res ? true : false;
}
 
in the above code at runtime following values are being passed
m_acrx15Name= acdb18.dll
m_acrxLoad= ?acrxLoadModule@@YA_NPB_W_N1@Z
 
GetModuleHandle function successfully  returns the handle of the acdb18.dll but it do not loads arx files in the AutoCAD LT 2010 although this same function loads aecmodeler60.dbx in to the AutoCAD LT 2010 successfully.
 
I am new to objectarx development I thing I am missing something here.I tried exploring on internet but didn't find any help.  Please help in identifying the issue.
 
 
I will be highly thankful to you.
 
 
With Kind regards
Shiv

Nikolay Poleshchuk

  • Mosquito
  • Posts: 10
Re: My Code does not load arx files in AutoCAD LT 2010
« Reply #1 on: September 17, 2011, 12:28:48 PM »
AutoCAD LT does not support loading user applications. How did you manage?