DBX Load Error

DBX Load Error

Anonymous
Not applicable
1,581 Views
2 Replies
Message 1 of 3

DBX Load Error

Anonymous
Not applicable

Hello all,

 

Perhaps I am missing something simple somewhere. But can't figure out what.

 

I have a ObjectARX app that is working fine. I open AutoCAD, load DBX, then load ARX and it does what I want.

 

I needed to use some object from another DLL that is created by a colleague. So I added headers and code. Then I link to the lib in project settings. The compile and link of DBX goes smooth.

 

Then I copy the new DLL in the same folder where I have my DBX file and try to load the DBX in AutoCAD using Appload. The DBX load fails.

 

If I remove all the code of the new object, remove the linking, and build DBX, the DBX loads fine.

 

Looks like DBX is not loading because I added dependency on this new DLL. I opened the DBX file and new dll in dependency walker and they seem fine.

 

Any ideas?

 

Thanks in advance,

 

K

 

0 Likes
Accepted solutions (2)
1,582 Views
2 Replies
Replies (2)
Message 2 of 3

owenwengerd
Advisor
Advisor
Accepted solution

Unless your DBX folder is in the Windows search path, Windows won't find your DLL when AutoCAD loads your DBX. See my blog for a solution:

Using /delayload to specify dependent DLL path

--
Owen Wengerd
ManuSoft
Message 3 of 3

Anonymous
Not applicable
Accepted solution

Worked like a charm!!! Thanks a lot.

0 Likes