Load the dll automatically when autocad starts

Load the dll automatically when autocad starts

giskumar
Enthusiast Enthusiast
1,032 Views
1 Reply
Message 1 of 2

Load the dll automatically when autocad starts

giskumar
Enthusiast
Enthusiast

Hi All,

 

In autocad 2010, I would like to load a dll at autocad startup. 

My dll file is located in ..User/Application Data/ folder. 

I have tried below code to do the same but failed.

 

[DllImport("acad.exe", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Cdecl)]
extern static private int ads_queueexpr(string strExpr);

 

Please guide me how to resolve this issue.

 

Thanks,

Kumar.

 

 

 

0 Likes
1,033 Views
1 Reply
Reply (1)
Message 2 of 2

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> In autocad 2010, I would like to load a dll at autocad startup

check >>>that blog<<< from Kean Walmsley.

 

In newer versions (beginning with 2012) you can also use the plugin-technique.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes