Get rid of Notepad++ from my all PCs
Wednesday, 13. August 2008, 09:15:18
----我醉欲眠卿且去,明朝有意抱琴来
Wednesday, 3. September 2008, 10:17:06
Wednesday, 13. August 2008, 09:15:18
Thursday, 3. July 2008, 07:20:04
#include <stdio.h>
#include <string.h>
//
// b_full means the whole string matching
//
bool WildSearch(char *psz_buf, int n_buflen, char *psz_sub, int n_sublen, bool b_full, char sz_prechar)
{
if (n_buflen == 0 && n_sublen != 0)
{
if (n_sublen == 1 && psz_sub[0] == '*')
{
return true;
}
else
{
return false;
}
}
else if (n_buflen != 0 && n_sublen == 0)
{
if (b_full)
{
return false;
}
else
{
return true;
}
}
else if (n_buflen == 0 && n_sublen == 0)
{
return true;
}
if (psz_sub[0] == '*')
{
psz_sub++;
n_sublen--;
if (n_sublen == 0)
{
return true;
}
return WildSearch(psz_buf, n_buflen, psz_sub, n_sublen, b_full, '*');
}
else if (psz_sub[0] == '?')
{
psz_buf++;
n_buflen--;
psz_sub++;
n_sublen--;
return WildSearch(psz_buf, n_buflen, psz_sub, n_sublen, b_full, '?');
}
else
{
char *psz_star_pos = strchr(psz_sub, '*');
char *psz_question_pos = strchr(psz_sub, '?');
int n_len_to_star = (psz_star_pos == NULL) ? (int)strlen(psz_sub) : (int)(psz_star_pos - psz_sub);
int n_len_to_question = (psz_question_pos == NULL) ? (int)strlen(psz_sub) : (int)(psz_question_pos - psz_sub);
int n_compare_len = n_len_to_question > n_len_to_star ? n_len_to_star : n_len_to_question;
if (_strnicmp(psz_buf, psz_sub, n_compare_len) == 0)
//if (psz_buf[0] == psz_sub[0])
{
sz_prechar = psz_sub[0];
psz_buf++;
n_buflen--;
psz_sub++;
n_sublen--;
return WildSearch(psz_buf, n_buflen, psz_sub, n_sublen, b_full, sz_prechar);
}
else
{
if (sz_prechar != '*')
{
return false;
}
psz_buf++;
n_buflen--;
return WildSearch(psz_buf, n_buflen, psz_sub, n_sublen, b_full, sz_prechar);
}
}
return true;
}
int main(int argc, char** argv)
{
char sz_buf[] = "abcdefghijk";
char sz_sub[] = "abc?e*fg?i?*k*";
//char sz_sub[] = "ae";
bool b_result = WildSearch(sz_buf, (int)strlen(sz_buf), sz_sub, (int)strlen(sz_sub), false, ' ');
printf("%d\n", b_result);
return 0;
}
Tuesday, 1. July 2008, 04:49:35
Tuesday, 24. June 2008, 09:56:11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>#pragma comment(linker, "\"/manifestdependency:type='Win32' name='Test.Research.SampleAssembly' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='0000000000000000' language='*'\"")
"name='Microsoft.Windows.Common-Controls' processorArchitecture='x86' version='6.0.0.0' type='win32' publicKeyToken='6595b64144ccf1df'"
Microsoft.Windows.Common-Controls, processorArchitecture=x86, version=6.0.0.0, type=win32, publicKeyToken=6595b64144ccf1df
Thursday, 29. May 2008, 06:47:13
wParam
The LOWORD is the virtual key code of the hot key. The HIWORD is the key modifier that indicates the keys that define a hot key combination. ...
Returns the virtual key code and modifier flags. The virtual key code is in the low-order byte, and the modifier flags are in the high-order byte. ...
Wednesday, 21. May 2008, 07:26:37
SetDlgItemText(g_hWnd, IDC_EDIT_CONTENT, _T("Hello\r\nWorld!"));SetDlgItemText(g_hWnd, IDC_EDIT_CONTENT, _T("Hello\r\n"));
SetDlgItemText(g_hWnd, IDC_EDIT_CONTENT, _T("World!"));SetDlgItemText(g_hWnd, IDC_EDIT_CONTENT, _T("Hello\r\n"));
int nLen = (int)_tcslen(_T("Hello\r\n"));
SendDlgItemMessage(g_hWnd, IDC_EDIT_CONTENT, EM_SETSEL, nLen, nLen + 1);
SendDlgItemMessage(g_hWnd, IDC_EDIT_CONTENT, EM_REPLACESEL, (WPARAM)TRUE, (LPARAM)_T("World!"));Tuesday, 29. April 2008, 07:33:02
c:\program files\microsoft visual studio 8\vc\include\intrin.h(944) :
error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
c:\program files\microsoft visual studio
8\vc\include\intrin.h(944) : see declaration of '_interlockedbittestandset'
c:\program files\microsoft visual studio 8\vc\include\intrin.h(945) :
error C2733: second C linkage of overloaded function '_interlockedbittestandreset' not allowed
c:\program files\microsoft visual studio
8\vc\include\intrin.h(945) : see declaration of '_interlockedbittestandreset'
#define _interlockedbittestandset fk_m$_set #define _interlockedbittestandreset fk_m$_reset #include <intrin.h> #undef _interlockedbittestandset #undef _interlockedbittestandreset
Thursday, 24. April 2008, 10:53:04
HWND hwnd = CreateWindowEx (WS_EX_LAYERED | WS_EX_TOPMOST | WS_EX_TOOLWINDOW,
_T("EDIT"),
NULL/*szAppName*/,
WS_POPUP | ES_CENTER,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL,
NULL,
hInstance,
NULL);
OrignalWndProc = (WNDPROC)SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)WndProc);
//ShowWindow (hwnd, iCmdShow);
UpdateWindow (hwnd);
//SetThemeAppProperties(0);
SetLayeredWindowAttributes(hwnd, RGB(255, 0, 0), 200, LWA_ALPHA/* | LWA_COLORKEY*/);
Showing posts 1 - 10 of 236.
fantast_xue
2008-05-29 06:53:56
Aha!!
fantast_xue
2008-01-02 05:55:32
Happy New Year!
fantast_xue
2007-11-14 02:12:44
nice, thank you all.
greatlovesong
2007-11-13 22:58:05
Hi, Have a nice day!
sheil1
2007-11-13 13:35:02
how are u
sheil1
2007-11-13 13:34:55
hello
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |