thanks! Such is the case
I have encountered another problem:
Using the system's built-in csc.exe compiler:
macro cs5 is successful for Static function outStr (This method is very convenient for calling C # static methods)
macro cs6 is failed for Static function genGuid
So, I use a higher version of the csc.exe compiler to export the code of cs6 to COM component DLL(And already registered RegisterNetComComponent "$desktop$\cs6.dll" 2|4),
How to call the static methods in COM components in QM?
Macro cs5
Macro cs6
I have encountered another problem:
Using the system's built-in csc.exe compiler:
macro cs5 is successful for Static function outStr (This method is very convenient for calling C # static methods)
macro cs6 is failed for Static function genGuid
So, I use a higher version of the csc.exe compiler to export the code of cs6 to COM component DLL(And already registered RegisterNetComComponent "$desktop$\cs6.dll" 2|4),
How to call the static methods in COM components in QM?
Macro cs5
_s=
;using System;
;
;//C#5 Test
;public class cla
;{
;,public static void outStr(string s)
;,{
;,Console.Write(s);
;,}
;}
CsScript x.AddCode(_s)
out x.Call("outStr" "hello") ;;OKMacro cs6
