Demand Load doesnot load DLL

Demand Load doesnot load DLL

Anonymous
Not applicable
783 Views
1 Reply
Message 1 of 2

Demand Load doesnot load DLL

Anonymous
Not applicable

Hello,

I have problems with demand loading in AutoCAD Architecture 2017, when i try to load the .DLL file by adding path in Registry Key, it gives error as Unknown Command.

How to somehow load DLL on startup?

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R21.0\ACAD-0007:409\Applications\CSharpDLL]
"DESCRIPTION"="CSharpDLL"
"LOADER"="C:\\Program Files\\CSharpDLL\\Test.dll"
"MANAGED"=dword:00000001
"LOADCTRLS"=dword:00000002

 

Thanks,

Omkar Gavand

0 Likes
Accepted solutions (1)
784 Views
1 Reply
Reply (1)
Message 2 of 2

Keith.Brown
Advisor
Advisor
Accepted solution

When you demand load, your LOADCTRLS should be equal to 12.  You also need to define the commands in a subkey.

 

Please see this article http://through-the-interface.typepad.com/through_the_interface/2006/09/automatic_loadi.html

 

And pay attention to the instructions under the Loading Modules on command invocation section.