Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 645 Bytes

rpcdllexportcode.md

File metadata and controls

32 lines (24 loc) · 645 Bytes

Just DLL it

namespace csharpdll {
    public class Main {
        public static MyNewWindow frm = null;

        [DllExport(CallingConvention = CallingConvention.StdCall)]
        public static Int32 ShowSharpMesssage(
            [MarshalAs(UnmanagedType.LPWStr)] string Text
        ) {
            frm = new MyNewWindow();
            frm.DoSomething(Text);
            return frm.ShowDialog() == true ? 1 : 0;
        }
}}
function ShowSharpMesssage(const Text: PChar): Int32; stdcall; external 'csharpdll.dll';