http://www.hur.cn/Soft/2009/3614.html 我下載了上述的界面源程式,但運行時發現登錄界面的登錄與退出的漢字全部為?,
uj5u.com熱心網友回復:
今天發現,該程式在pb9 win7(32位)下面運行正常,沒有亂碼顯示 ,在筆記本win10 (64位)+ pb12.5 就不行了uj5u.com熱心網友回復:
下載后分析了一下,你把uo_commandbutton -> api函式宣告 Local External Functions里的代碼//該函式在指定的矩形里寫入格式化文本
Function ulong DrawText(ulong hd,ref string lpStr,ulong nCount,ref RECT lpRect,ulong wFormat) LIBRARY "user32.dll" ALIAS FOR "DrawTextA;Ansi"
里的;Ansi去掉,改為
Function ulong DrawText(ulong hd,ref string lpStr,ulong nCount,ref RECT lpRect,ulong wFormat) LIBRARY "user32.dll" ALIAS FOR "DrawTextA"
就好了
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/23001.html
標籤:控件與界面
