OLE Base Class Generation

This forum is meant for questions and discussions about the X# language and tools
Post Reply
stefan.ungemach
Posts: 71
Joined: Thu Jul 15, 2021 10:46 am
Location: Germany

OLE Base Class Generation

Post by stefan.ungemach »

What would be the best approach to do something like VO "Automation Server Base Class Generation" in X#? We have tons of generated OLE code and the XPorter shows XS9010 (maybe more) - I'm not quiet sure if manually correcting the generated VO code would be the wise thing...
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

OLE Base Class Generation

Post by robert »

Stefan,
In most situations you do not need to generate anything, but you can directly add the automation server or ActiveX as reference to your project. The build system will then generate an interop dll for you.
There is an example in the X# help file and online that shows how to do it for Excel and another example that shows how to do the Shell.Explorer activeX control.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply