Õâ¸öզд³Édelphi´úÂ룿 лл
[Õâ¸öզд³Édelphi´úÂ룿 лл
code=C/C++]
BOOL CheckFile(LPCTSTR szFile)
{
BOOL bFindFile;
ATL::CString cPath = szFile;
cPath.MakeUpper();
if (PathFileExists(cPath.GetString()))
{
return TRUE;
}
else
{
cPath.Remove(L'\"');
if (cPath.Find(L"\\") == -1)
{
return TRUE;
}
if (cPath.Left(1) == L"\\")
{
return TRUE;
}
if (cPath.Find(L"\\") == -1)
{
return TRUE;
}
if (cPath.Find(L"RUNDLL32") != -1)
{
return TRUE;
}
if (cPath.Left(8) == L"SYSTEM32")
{
return TRUE;
}
if (cPath.Find(L"SYSTEM32\\SVCHOST") != -1)
{
return TRUE;
}
int nEmpty = cPath.Find(L".EXE");
if (nEmpty != -1)
{
cPath = cPath.Left(nEmpty + 4);
}
TCHAR szPath[MAX_PATH] = { 0 };
if (ReplaceEnvironmentString(cPath.GetString(), szPath))
{
cPath = szPath;
}
bFindFile = PathFileExists(cPath.GetString());
}
return bFindFile;
}
[/code]
function CheckFile(szFile:str
Ïà¹ØÎÊ´ð£º
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
ÎÒ°²×°µÄÊÇÆóÒµ°æ¡£¡£¡£
ÎÒÎÊÏ£¬ CTRL+×ó¼ü Äܲ鿴 windows.pas Âð£¿
¾ÍÊÇ ½Ó¿ÚÀïµÄwindows¡£
µ±È»¿ÉÒÔ,CTRL+×ó¼üµã»÷Interface²¿·ÖµÄWindows¾Í¿ÉÒÔÁË
ɶɶÆóÒµ°æ£¿È¥°²×°Ä¿Â¼¿´¿´libÎļþ¼ÐÏÂÓÐÃ»Ó ......
×òÍíÔÚDelphiÊý¾Ý¿â²éѯÖÐÓöµ½ÁËÒ»¸öÒɻ󡣴úÂëÈçÏ£º
procedure TFormSearchAchievement.ComboBoxXYChange(Sender: TObject);
var
XY : string;
begin
XY := comboboxxy.Items[comboboxx ......
ÈçÌ⣬ µã»÷DelphiµÄFile²Ëµ¥µÄExitÍ˳öDelphi£¬ Delphi²¿·Ö¹Ø±Õ--¼´²»ÄÜÔÙ²Ù×÷Delphi£¬µ«ÈÎÎñÀ¸ºÍ½ø³ÌÀDelphi»¹ÔÚÔËÐУ¬Ã»ÓÐÕæÕýµÄÍ˳ö¡£ÊDz»Êǰ²×°ÁËjre¸Ä±äÁËijЩ»·¾³±äÁ¿µ¼Ö£¬ÇëÎʸßÊÖÈçºÎ½â¾ö£¿ ×¢£ºÃ»°²×° ......
ÎÒÔÚ³ö¿â´°¿ÚдÁ˸ö·½·¨£ºADOQueryBill µÄbNum ×ֶεÄOnValidate·½·¨ ʵÏÖµÄÊdzö¿âÊýÁ¿²»ÄÜ´óÓÚÈë¿âµÄÊýÁ¿£¬·ñÔò¾ÍÖØÐÂÊäÈëÊýÁ¿£¬ÒÔÏÂÊÇÎҵĴúÂ룺
procedure TFrmStockOut.ADOQueryBillbNum_Validate(Sender: TFie ......