֪ʶС½á(Delphi)
1) Error loading midas.dll ûÓÐ×¢²ámidas.dll ÔËÐÐRegSver32.exe midas.dll
2)Result := GetProcAddress(FGDIPlusLibrary, PChar(ProcName));±àÒë ³öÏÖÕâÑùµÄÎÊÌ⣬Ӧ¸ÃÊÇÉèÖ÷½ÃæµÄÎÊÌ⣬Project->Options->Complier->Hugestrings ¹³ÉϾÍokÁË£¡
3) TCheckListBoxÓиöitemEnable[Index] := FalseÊôÐÔ¿ØÖÆÄ³Ò»Ïî²»¿É¸Ä
4) ÅúÁ¿¸ù¾ÝATextÊÇ·ñΪ¿ÕÅжÏÑÕÉ«
procedure TM4_FaultModifyForm.SetColor(ALabel: array of TLabel;
AText: array of string);
var
VIndex: Integer;
begin
for VIndex := Low(AText) to High(AText) do
if AText[VIndex] = '' then
ALabel[VIndex].Font.Color := clBlue
else
ALabel[VIndex].Font.Color := clWindowText;
end;
5) ½çÃæÍø¸ñÐ޸ļǼºóÒªÖØÐ¶¨Î»µ½¸ÃÌõ¼Ç¼ÓÃdsQuery.DataSet.Locate('file_no', VFileNo, []);
6) Could not convert variant of type(Null) into type (string) ¼ÓVarToStr
7) ÐÞ¸ÄÍø¸ñµÄDataController.Summary.Options.soSelectedRecords := Trueʱ¾¹È»»á³öÏÖÕâÑùµÄÒì³£‘List index out of bounds(8)’
8) н¨»òÐÞ¸Äʱ¼äʱ£¬Ó¦¸Ã¶Ô¿Ø¼þcxDateEdit½øÐÐÅжÏÊÇ·ñΪ¿Õ£¬²»È»Ä¬ÈÏ´«Èë'0000:0:0'Öµ£¬²éѯ³ö´í
9) µ±Íø¸ñÖÐÐèÒªÒ»¸ö×ֶλòÕß¼¸¸ö×Ö¶ÎÊäÍêºóÁ¢¼´³öÀ´Ò»¸ö½á¹û£¬ÔòÓÃ×Ö¶ÎÖеÄProperties.OnValidateʼþ
10) ¶¨ÒåVstrΪstringÀàÐÍ£¬ÔòVstr[1]¿ÉÒÔÈ¡µ½¸Ã×Ö·û´®ÖеĵÚÒ»¸ö×Ö·û¡£ÀàËÆResultÈç¹ûΪstringÐÍÒ²¿ÉÒÔ¡£
11) ²é¿´Ê± Memo Îı¾¿òÒªÖ§³Ö Ctrl + A ȫѡ£¨ if (Key = 65) and (Shift = [ssCtrl]) then
(Sender as TDBMemo).SelectAll;£©,²¢ÇÒÖ§³Ö°´ESCÏìÓ¦Í˳ö¸ÄÊôÐÔWantReturns := False
н¨Ê±Memo Îı¾¿òÖ§³ÖESC£¬ÔÚOnKeyPressʼþÖÐif Key = #27 then Close
12) ɾ³ýĬÈϾ۽¹µ½È¡ÏûÉÏ£ºApplication.MessageBox('ÊÇ·ñÕæµÄҪɾ³ý¼Ç¼?', 'Ìáʾ', MB_OKCANCEL + MB_DEFBUTTON2)
13) Èç¹ûµ¯³öÈ磺'LebutFormD7...'ÀàËÆ¿ª·¢°üÑùµÄ´íÎ󣬺ÜÓпÉÄÜÊÇ¿ª·¢°üÒѾ¸üйý£¬ÖØÐ°²×°
14) Èç¹û°´Tab¼ü²»Ï£ÍûÔÚij¸ö¿Ø¼þÏÔʾ½¹µã£¬ÇҸÿؼþûÓÐTabstopÊôÐÔ£¬Ôò¿ÉÒÔÊÖд´úÂëÓ¦¸ÃÓдËÊôÐÔ
15) "License is in invalid or has expired
M4_ServiceDefintions.dpk(2): Readerror on 'c:\program files\borland\delphi7\lib\System.dcu"
½ñÌìͻȻ³öÏÖĪÃûÆæÃîµÄ´íÎóÐÅÏ¢£¬µ«Äã³öÏÖ´ËÀàÎÊÌâʱ£¬ºÜ¼òµ¥ÖØÐÂÆô¶¯
Ïà¹ØÎĵµ£º
ÓÐʱÐèҪʹÓÃ͸Ã÷¿Ø¼þÓÃÓÚ²¶»ñÊó±êÏûÏ¢
1.µ÷ÓÃWindows2000,xpеÄAPIº¯ÊýʵÏÖÕâÒ»¹¦ÄܵĹý³Ì¡£Ê¹ÓÃSetLayeredWindowAttributes
2.Ö±½ÓÉèÖÿؼþµÄalphablend,alphablendvalue£¬¼ä½Óµ÷ÓÃÉÏÊöapi.
3.ʹÓÃTStaticText¿Ø¼þ
procedure WMCtrlColor(var Message: TWMCtlColor); message WM_CTLCOLOR;
procedure TForm3.WMCtr ......
³£ÓÿؼþÃüÃûǰ׺
¿Ø¼þÀàÃû
ǰ׺
TFormµÈ´°ÌåÀà
frm
TButton, TSpeedButtonµÈËùÓеİ´Å¥Àà
btn
TCheckBoxµÈËùÓеļì²é¿ò
chk
TRadioButtonµ¥Ñ¡°´Å¥Àà
rdo
TListBoxµÈËùÓеÄÁбí¿òÀà
lst
TPanelµÈËùÓеÄÃæ°åÀà
pnl
TLabel, TStaticTextµÈËùÓÐÓÃÀ´ÏÔʾµÄ±êÇ©Àà
lbl
TE ......
Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í
DelphiÊý¾ÝÀàÐÍC/C++
ShorInt
8λÓзûºÅÕûÊý
char
Byte
8λÎÞ·ûºÅÕûÊý
BYTE,unsigned short
SmallInt
16λÓзûºÅÕûÊý
short
Word
16λÎÞ·ûºÅÕûÊý
unsigned short
Integer,LongInt
32λÓзûºÅÕûÊý
int,long
Cardinal,LongWord/DWORD
32λÎÞ·ûºÅÕûÊý
unsigned long
Int6 ......
Delphi ActiveX FormµÄʹÓÃʵÀý
By knityster
1. ActiveX¿Ø¼þ¼ò½é
ActiveX¿Ø¼þÒ²¾ÍÊÇÒ»°ãËù˵µÄOCX¿Ø¼þ£¬ËüÊÇActiveX¼¼ÊõµÄÒ»²¿·Ö¡£
ActiveX¿Ø¼þ¿ÉÒÔ±»¼¯³Éµ½ºÜ¶àÖ§³ÖActiveXµÄÓ¦Óõ±ÖÐÈ¥£¬»òÕßÖ±½ÓÓÃÀ´À©Õ¹Ó¦ÓõŦÄÜ£¬ÕâЩ֧³ÖActiveXµÄÓ¦ÓðüÀ¨C++ Builder¡¢Delphi¡¢Visual dBASE¡¢ Visual Basic¡¢Visual C++¡ ......
ÕâÀïÏÈ˵˵Á½¸ö¸ÅÄTheme(Ö÷Ìâ)ºÍ Visual Style ¡£Theme ×îÔç³öÏÖÔÚ Microsoft Plus! for Windows 95 ÖУ¬ÊÇ Windows ÖÐ Wallpaper¡¢Cursors¡¢Fonts¡¢Sounds ¡¢Icons µÈµÄÉèÖÃÖµ¼¯ºÏ¡£Visual Style ÔÚ Windows XP Öвű»ÒýÈ룬Visual Style ¹æ¶¨ÁË Contorls µÄÍâ¹Û£¬ÁíÍ⻹°üÀ¨Ê¹ÓÃÕâЩÍâ¹ÛµÄÒ»Ì× API ......