typedef void* HSECS;
typedef int (*TEST_PROC)(HSECS session);
typedef map<string, TEST_PROC> TEST_PROC_MAP;
using HSECS = System.IntPtr;
delegate int TEST_PROC(HSECS hession);
还有一段代码
TEST_PROC_INFO test_proc_list[] =
{
{"1", test_send_ascii, "Send ASCII item to host." },
{"2", test_send_list, "Send List item to host." },
{"3", test_send_list_embedded, "Send List item(embedded) to host." },
{"4", test_send_U1_0, "Send U1_0 item to host." },
{"5", test_send_U4_0, "Send U4_0 item to host." },
{"7", test_send_U4_4294967295, "Send U4_4294967295 item to host." },
};
TEST_PROC_MAP test_proc_map;
有好多类你没贴出来
struct TEST_PROC_INFO
{
string id;
TEST_PORC ptr_proc;//少TEST_PORC的定义
byte[] desc;
}
typedef void* HSECS;
typedef int (*TEST_PROC)(HSECS session);