Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

How to use static classes from C# assemblies ?

$
0
0

Dear sirs,   I am trying to make a Delphi port (XE10.1 version) of some existing "plugin" DLL originally written in C#. This plugin DLL is a COM Server, that exports an object behaves like Singleton. But the original APP uses some trick: in imports some objects from "parent" application, that are declared as static class with static methods. So, when I imported TLB, it has only interfaces declaration and nothing about those static classes.   Original C# declaration is: namespace USE55.Common.BLL{    public static class VbBLL    {        public static IUSE55DBConnect DBConnectObj { get; }    }} I tried to import original DLL that is references in C#, but the imported file is nearly empty - it has just several empty interfaces,and several CoClass declarations that has nothing like the names declared upper. So, the question is: is there any way I can access this VbDLL class ? And also, how can I declare the whose declaration in Delphi Berlin ?


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>