[問題] delegate的使用
我這邊有以下code(MFC):
typedef int(_stdcall *OmrInit)(void);
typedef int(_stdcall *OmrClose)();
typedef int(_stdcall *OmrSG)(char *);
OmrInit Omrinit;
OmrClose OmrCLose;
OmrSG OmrSa,OmrGa;
根據問到的結果是說在C#中要用delegate
但是因為有指標,所以可能要把專案改成unsafe
請問有其他替代的方法嗎?
或是應該如何把上面的code轉成C#的code
謝謝...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.228.84.122
→
06/03 15:51, , 1F
06/03 15:51, 1F
→
06/05 13:15, , 2F
06/05 13:15, 2F
→
06/05 23:05, , 3F
06/05 23:05, 3F