Message 1 of 8
creaing a net dll for AutoCAD and call from COM exe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am sure this has been discussed before, but I can't find any solid answer after doing some search.
I found many samples for creating a net dll which uses the new AutoCAD net api. But how can I link to the net dll and call the functions from a COM exe (VB6) file ? I found a sample which works for linkng non-AutoCAD net dll (i.e. register for com interlop) , but what I am looking for is a sample code which passes and returns parameters between COM exe and NET dll where NET dll retreives some AutoCAD values through the net api and return them to the calling COM routine. I am assumming that the NET dll must be loaded in AutoCAD first or is there a way to load it from the calling COM exe file ?
Thanks in advance for your reply.
Andrew,
I found many samples for creating a net dll which uses the new AutoCAD net api. But how can I link to the net dll and call the functions from a COM exe (VB6) file ? I found a sample which works for linkng non-AutoCAD net dll (i.e. register for com interlop) , but what I am looking for is a sample code which passes and returns parameters between COM exe and NET dll where NET dll retreives some AutoCAD values through the net api and return them to the calling COM routine. I am assumming that the NET dll must be loaded in AutoCAD first or is there a way to load it from the calling COM exe file ?
Thanks in advance for your reply.
Andrew,