PB 12.5 外部宣告如下:
Function ulong UuidCreate(ref uuid lpUUID) LIBRARY "rpcrt4.dll" alias for "UuidCreate;Ansi"
Function ulong UuidToString (ref uuid lpUUID, ref long lpUUIDString) LIBRARY "rpcrt4.dll" Alias for "UuidToStringA;Ansi"
Function ulong RpcStringFree(long lpUUIDString) LIBRARY "rpcrt4.dll" Alias for "RpcStringFreeA;Ansi"
通過代碼生成 guid 時,是亂碼,哪位大俠能給解決下?
只針對利用rpcrt4.dll生成的方法,
我的分數比較少,大家見諒
uj5u.com熱心網友回復:
把第二個函式換個定義Function ulong UuidToString (ref uuid lpUUID, ref long lpUUIDString) LIBRARY "rpcrt4.dll" Alias for "UuidToStringW"
uj5u.com熱心網友回復:
另外,uuid定義為含5個ulong的結構體即可,網上有些定義是錯的,你對比你之前定義出來的值和按我要求的值就知道了uj5u.com熱心網友回復:
你如果是用的string(lpUUIDString, "address") 應該是亂碼的, 需要按照pb8的方法來, 改成 UuidToStringW, RpcStringFreeW轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/28176.html
標籤:API 調用
上一篇:急急。。請幫忙解決問題,重分答謝
