V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
c398425861
V2EX  ›  C#

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

  •  
  •   c398425861 · Feb 23, 2023 via Android · 2175 views
    This topic created in 1161 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   ·   2754 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:03 · PVG 19:03 · LAX 04:03 · JFK 07:03
    ♥ Do have faith in what you're doing.