ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

acrxEntryPoint

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
898 Views, 3 Replies

acrxEntryPoint

hi everybody,

 

question:

 

i use loadlibrary to load a dll to
autocad.

 

ist it posible to register an dll or arx from
dllmain to autocad?

how do i implement the acrxEntryPoint if the
funktion

acrxEntryPoint() is not called?

 

regards

chris
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

chris wrote:
> hi everybody,
>
> question:
>
> i use loadlibrary to load a dll to autocad.
>
> ist it posible to register an dll or arx from dllmain to autocad?
> how do i implement the acrxEntryPoint if the funktion
> acrxEntryPoint() is not called?
>
> regards
> chris

Use acrxLoadModule() instead of LoadLibrary() and your entry point
function will be called.

--
|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: byron@cadwerx.net
| web site: http://www.cadwerx.net
|
Message 3 of 4
Anonymous
in reply to: Anonymous

hmm,

 

is there no other oportunity to get this funktion
called?

 

how does autocad itself call this
funktion?

why does autocad use acrxEntryPoint and not
dllmain?

 

 

regards

chris
Message 4 of 4
Anonymous
in reply to: Anonymous

chris wrote:
> hmm,
>
> is there no other oportunity to get this funktion called?
>
> how does autocad itself call this funktion?
> why does autocad use acrxEntryPoint and not dllmain?
>
>
> regards
> chris

AutoCAD does call DllMain(), I'm sure acrxLoadModule() calls
LoadLibrary() to map the dll/arx into memory. Then AutoCAD calls your
acrxEntryPoint() function. What are you trying to do and what doesn't
appear to be working?

--
|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: byron@cadwerx.net
| web site: http://www.cadwerx.net
|

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost