原创 來自C#的C++:C++函數(在DLL中)返回false,但C#認爲它是真的!

來自C#的C++:C++函數(在DLL中)返回false,但C#認爲它是真的! C++基礎----C++ 布爾類型(bool)及BOOL和bool的區別 c#中bool

原创 c#winform界面製作系統日誌

sys_log爲一個文本框。 public void ShowLog(string Info) { sys_log.AppendText(DateTi

原创 c++輸出調試信息到vs中的輸出窗口

OutputDebugString函數 OutputDebugString(L"字符串");(VS中,#define OutputDebugString OutputDebugStringW ) OutputDebugString

原创 c#中窗體與窗體之間值的傳遞

方法一:利用set\get構造類的公有成員函數 ###問題: Form2爲主窗體,子窗體Form6的值→子窗體Form3中 ###代碼: 主窗體Form2: namespace GPS222 { public partia

原创 c#string字符串與16進制byte字節和16進制byte[]字節數組轉換

應用場景1: textbox中輸入str=“200”(string類型),需轉換爲16進制hex=c8(byte、char、int類型) 解決方法: 利用Convert.ToByte(str)/.ToChar(str)/.ToIn