如果使用UNICODE 一切都沒問題,richedit2.0以上對中文判斷為一個字元,GetTextLength擷取到中文字元為一個,這樣SETSEL完全OK。 但如果為ASCII,GetTextLength判斷中文字元為2個,這個時候setsel就會出錯,顯示的位置和設計的有區別,如何在ASCII下擷取到正確的字元長度呢,請使用: GETTEXTLENGTHEX gtl; gtl.flags = GTL_NUMCHARS; // You need to change
// readFileCreateTime.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include<stdio.h>#include<windows.h>int _GetFileTime(char *szFileName);int _SetFileTime(char *szFileName,char *szFileTime);int
相關資訊請查看http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;830482 概要為了向開發人員提供全面的 Microsoft eMbedded Visual C++ 異常處理,以及對 Microsoft Windows Powered Pocket PC 2003 裝置的動態轉換支援,Microsoft 發布了用於 Pocket PC 2003 SDK 的運行時類型資訊 (RTTI) 庫。從 Microsoft
In this Link and this one some VB6 programmers discussed about their favorite VB6 tools, I pick up the mostly-voted and some interesting ones as below: 29 votesEnable mouse wheel in VB6: Microsoft:enable the mouse scroll wheel 13 votes + 9 votes
/***********時間結構定義********************************/struct tm { int tm_sec; /*秒,0-59*/ int tm_min; /*分,0-59*/ int tm_hour;/*時,0-23*/ int tm_mday;/*天數,1-31*/ int tm_mon;
來源:〓中國駭客聯盟〓總站論壇 作者:玄風殘翼實驗環境:Microsoft Visual C++ 6.0,Windows XP SP2,補丁至最新。OllyDbg1.10。實驗目標:構造存在溢出漏洞的代碼,並構造特殊代碼以利用這個漏洞。漏洞代碼:為方便調試,我們用的是VC6.0的Win32 Console Application工程,切換到Release模式(Build->Set Active