This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TITLE test.c | |
.386P | |
include listing.inc | |
if @Version gt 510 | |
.model FLAT | |
else | |
_TEXT SEGMENT PARA USE32 PUBLIC 'CODE' | |
_TEXT ENDS | |
_DATA SEGMENT DWORD USE32 PUBLIC 'DATA' | |
_DATA ENDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COM异常操作 | |
try | |
{ | |
} | |
catch (_com_error& ex) | |
{ | |
CString strEX = ex.Description(); // 这个最重要的信息最终却没抛出去! | |
if (_TKLibrary::TK_CheckDebug()) | |
::MessageBox(NULL, strEX, _T("数据库操作异常"), MB_OK ); | |
bR = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOOL InitInstance() | |
{ | |
m_hMutex = ::CreateMutex(NULL, FALSE, APP_MUTEX_NAME); | |
if (NULL == m_hMutex) | |
{ | |
Suicide(); | |
return FALSE; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
// CCustomListBox | |
class CCustomListBox : public CListBox | |
{ | |
DECLARE_DYNAMIC(CCustomListBox) | |
////////////////////////////////////////////自绘ListBox | |
CArray<int> m_arySeparators; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use File::Path; | |
use strict; | |
use warnings; | |
my @tree=<*>; | |
foreach (@tree){ | |
&if_a_tree($_); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 等待打包工具初始化成功,等待时间为10秒 | |
DWORD dwWait = WAIT_FAILED; | |
MSG msg; | |
do | |
{ | |
dwWait = MsgWaitForMultipleObjects( | |
1, | |
&hEvent, | |
TRUE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include "Cx_SeaLog.h" | |
#include <string> | |
#include <sstream> | |
#include <vector> | |
using namespace std; | |
#define MAX_LOGFILE_SIZE 1024*1024 // LOG文件最大为1MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
源码鉴赏 来源path.c wine | |
static BOOL do_searchW(PCWSTR file, PWSTR buffer, BOOL recurse, | |
PENUMDIRTREE_CALLBACKW cb, PVOID user) | |
{ | |
HANDLE h; | |
WIN32_FIND_DATAW fd; | |
unsigned pos; | |
BOOL found = FALSE; | |
static const WCHAR S_AllW[] = {'*','.','*','\0'}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
源码鉴赏 来源path.c wine | |
static BOOL do_searchW(PCWSTR file, PWSTR buffer, BOOL recurse, | |
PENUMDIRTREE_CALLBACKW cb, PVOID user) | |
{ | |
HANDLE h; | |
WIN32_FIND_DATAW fd; | |
unsigned pos; | |
BOOL found = FALSE; | |
static const WCHAR S_AllW[] = {'*','.','*','\0'}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Process Hacker - | |
* queued lock | |
* | |
* Copyright (C) 2010-2011 wj32 | |
* | |
* This file is part of Process Hacker. | |
* | |
* Process Hacker is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |