c398425861
V2EX  ›  C#

c# 调用 c++ dll 回调函数怎样同步返回

  •  
  •   c398425861 · Feb 23, 2023 via Android · 2324 views
    This topic created in 1220 days ago, the information mentioned may be changed or developed.

    private extern static int ts_scan_get_data_fun_register(ts_scan_get_data_fun fGetDataFun);

    public delegate void ts_scan_get_data_fun(string pBuf, int uiBufLen);

    想把这个函数封装成 webapi,怎样在接口里获取到 ts_scan_get_data_fun 里 pBuf 的值再返回

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:58 · PVG 16:58 · LAX 01:58 · JFK 04:58
    ♥ Do have faith in what you're doing.