This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ICustomCommand Interop.ActiveDs

Hello,

   I am trying to compile the supplied managedcode.cs example. I have followed the instructions and added the required references to include ActiveDs. However, while the IADs class is resolved the ICustomCommand interface throws an error as it:


Error    CS1748    Cannot find the interop type that matches the embedded interop type 'Interop.ActiveDs.IADs'. Are you missing an assembly reference?

I am using VS 2017

Thanks

Parents
  • In case anyone else comes across this, I was able to find a solution. I took the activeds.tlb file in C:\windows\system32 and created a DLL using tlbimp. I used the /namespace: switch to set the namepsace to Interop.ActiveDs instead of just ActiveDs as the default DLL provided.

Reply
  • In case anyone else comes across this, I was able to find a solution. I took the activeds.tlb file in C:\windows\system32 and created a DLL using tlbimp. I used the /namespace: switch to set the namepsace to Interop.ActiveDs instead of just ActiveDs as the default DLL provided.

Children
No Data