摘要: char dec2hexChar(short int n) { if ( 0 <= n && n <= 9 ) { return char( short('0') + n ); } else if ( 10 <= n && n <= 15 ) { return char( short('A') + n - 10 ); } else { return char(0); }}short int hexChar2dec(char c) { if ( '0'<=c && c&l 阅读全文
posted @ 2009-10-21 17:19 k1988 阅读(130) 评论(0) 推荐(0) 编辑
摘要: if IsWindow(Handle) then // If the application exists... begin WaitForInputIdle(HProcess, INFINITE); SetWindowLong(Handle, GWL_HWNDPARENT, Self.Handle); EnableWindow(Self.Handle, False); //WindowList := DisableTaskWindows(hProcess); MsgWaitForSingleObject(hProcess); EnableWindow(... 阅读全文
posted @ 2009-10-21 16:24 k1988 阅读(289) 评论(0) 推荐(0) 编辑