Delphi and C++Builder 2010 code samples are online
http://blogs.embarcadero.com/davidi/2009/09/10/39800
C++ Builder 2010 ʾÀý´úÂëË÷Òý:
http://docwiki.embarcadero.com/CodeSamples/en/Category:C%2B%2B
²»´í£¬¼ÓÈëÊéÇ©ÁË
ÕâЩÒײ©Áú´óÅ£µÄ²©¿Í»¹ÊÇÓеãÓô¦µÄ¡£
......
char* WaveData;
WaveData=0;
WaveData = new char[buffer];
if(WaveData)delete[] WaveData;
delete[] WaveData;
var
WaveData: PChar;
begin
WaveData := nil;
GetMem(WaveData, Buffer);
if WaveData <> nil then FreeMem(WaveData);
end;
»ò ......
VC++ ÖУ¬ &±äÁ¿Ãû¡£ ÊÇʲôÒâ˼¡£ DelphiÖÐ ºÍËûÒ»ÑùµÄ·ûºÅ ÊÇÄĸö¡¢£¿
´ó¼Ò¶¼ÈÏΪ£¬CÓïÑÔÖ®ËùÒÔÇ¿´ó£¬ÒÔ¼°Æä×ÔÓÉÐÔ£¬ºÜ´ó²¿·ÖÌåÏÖÔÚÆäÁé»îµÄÖ¸ÕëÔËÓÃÉÏ¡£Òò´Ë£¬ËµÖ¸ÕëÊÇCÓïÑÔµÄÁé»ê£¬Ò»µã¶¼²»Îª¹ý¡£Í¬Ê±£¬ÕâÖÖ˵·¨Ò²ÈúܶàÈË ²úÉúÎó½â£¬ËƺõÖ»ÓÐCÓïÑÔµÄÖ¸Õë²ÅÄÜËãÖ¸Õë¡£Basic²»Ö§³ÖÖ¸Õ룬Ôڴ˲»ÂÛ¡£Æäʵ£¬PascalÓ ......
procedure TSG_Form.SpeedButton1Click(Sender: TObject);
begin
CurrentSGWave := (Sender as TSpeedButton).Tag;
SetupWavePara_Btn.Enabled := True;
ReDraw_timer.Enabled := False;
if (CurrentSGWave = 0) or (CurrentSGWave = 6) or (CurrentSGWave = 7) then
&n ......
ÇëÎÊÔÚ¶Ô»°¿òÀïÄÚǶä¯ÀÀÆ÷¿Ø¼þ£¬´ïµ½¸úÍøÒ³½»»¥
Ïëͨ¹ýJavaScriptµ÷ÓÃC++º¯Êý ÐèÒªÍê³É Äļ¸¸ö²½Ö裿
Çë°´²½Öè˵Ã÷¡£
C++½«º¯Êý·Åµ½ÄÄÀï ¹© JavaScript ²éѯ²¢µ÷ÓÃÄØ£¿
ËäÈ»ÓдúÂë µ«ÊÇ ÎÒ»¹ÊÇ¿´²»¶® £¬×÷Õß·â×°ÁËCOccManager ºÍ IDispatchÀà ÕâÁ½¸öÊǸÉʲôµ ......
ÔÚÒ»¸ö¶Ô»°¿òÄÚ°üº¬ä¯ÀÀÆ÷¿Ø¼þµÄ³ÌÐòÖУ¬ÏëÈÃJavaScriptÒ³Ãæµ÷ÓÃc++Äڵĺ¯Êý£¬ÇëÎÊÔõô½«º¯Êý±©Â¶¸øJavaScript
¶øJavaScriptÓÖ¸ÃÈçºÎµ÷ÓÃÕâ¸öº¯ÊýÄØ£¿
Ï£Íû²ûÊöµÄÔ½¼òµ¥Ô½Ã÷°×Ô½ºÃ£¬×îºÃÄÜÓôúÂë˵Ã÷£¬£¬£¬£¬£¬£¬£¬£¬£¬£¬£¬£¬£¬ÎÒÊÇÒ»Ö»²Ë²Ë²Ë²ËÄñ......ÏëÒª·ÉÈ´·É²»¸ß....
Ò²¿ÉÒÔËÑË÷¡°CCustomOccManager ......