Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

DelphiÓëFlashÖ®¼äµÄÊý¾Ý´«µÝ¼¼ÇÉ


ҪʵÏÖÕâÒ»¹¦ÄÜ£¬Ê×ÏÈÒªÓõ½ActiveX¿Ø¼þÖеÄTShockwaveFlash¿Ø¼þ¡£
Ê×ÏÈÈÃÎÒÃÇÀ´½«TShockwaveFlash¿Ø¼þ¼ÓÈëµ½DelphiµÄ×é¼þÃæ°åÖУ¨Ã»ÓÐ×°FlashµÄÅóÓÑ¿ÉÒÔ´ÓÍøÉÏÏÂÔØÒ»¸öFlash8.ocxÎļþÀ´½øÐа²×°£©
1.´ò¿ªDelphi£¨±¾ÈËÓõÄÊÇDelphi7.0£©µã»÷²Ëµ¥ÖеÄComponent->Import ActiveX Control...
2.ÔÚµ¯³öµÄ´°¿ÚÖеÄImport ActiveX×Ó´°¿ÚÖÐÕÒµ½Shockwave Flash(Version1.0)£¬È»ºóµã»÷Install...°´Å¥£¬¸ù¾ÝÌáʾִÐоͿÉÒÔÁË
3.°²×°Íê³Éºó£¬Äã¿ÉÒÔ·¢ÏÖTShockwaveFlash¿Ø¼þÒѾ­¼ÓÈëµ½DelphiµÄActiveXÃæ°åÖÐÁË¡£
ÔÚÕâÀïÓбØÒª¸ú´ó¼Ò½²Ò»Ð©¹ØÓÚTShockwaveFlash¿Ø¼þµÄÊôÐÔÓë·½·¨£º
ÊôÐÔ£º
ReadState£º¶ÁÒ»¸öFlashÎļþʱµÄ״̬¡£
TotalFrames£º×ÜÖ¡Êý£¬Ö»Óе±ReadyState£½4ʱ²ÅÄÜ·ÃÎʸÃÊôÐÔ¡£
FrameNum£ºµ±Ç°²¥·ÅµÄÖ¡¡£
Playing£º²¥·Å»òÔÝÍ£Ò»¸öFlash¡£
Quality£ºÖ¸¶¨µ±Ç°äÖȾµÄÖÊÁ¿£¬0=Low¡¢1=High¡¢2=AutoLow¡¢3=AutoHigh¡£
ScaleMode£ºËõ·Åģʽ£¬0=ShowAll¡¢1=NoBorder¡¢2=ExactFit¡£
AlignMode£º¶ÔÆëģʽ£¬Left=1¡¢Right=2¡¢Top=4¡¢Bottom=8¡£
BackgroundColor£º±³¾°É«£¬£­1ΪĬÈÏÑÕÉ«¡£
Loop£ºÊÇ·ñÑ­»·¡£
Movie£ºÖ¸¶¨²¥·ÅµÄFlashÎļþ·¾¶£¬¿ÉÒÔΪһ¸öURL¡£
ʼþ&·½·¨£º
Play()£º¿ªÊ¼²¥·Å¶¯»­¡£
Stop()£ºÍ£Ö¹²¥·Å¶¯»­¡£×¢Ò⣺ҪʵÏÖÍ£Ö¹¹¦ÄÜ£¬±ØÐëͬʱµ÷ÓÃStop()ºÍRewind()º¯Êý¡£
Back()£º²¥·ÅÇ°ÒÔÖ¡¶¯»­¡£
Forward()£º²¥·ÅºóÒ»Ö¡¶¯»­¡£
Rewind()£º²¥·ÅµÚÒ»Ö¡¶¯»­¡£
SetZoomRect(int left,int top,int right,int bottom)£ºÉèÖÃËõ·ÅµÄÇøÓò¡£
Zoom(int percent)£ºËõ·Å£¨°´°Ù·Ö±È£©¡£
Pan(int x,int y,int mode)£ºËõ·Å²¥·ÅÃæ°å£¬ÆäÖÐģʽ0Ϊ°´ÏñËØ¡¢1Ϊ°´´°¿Ú°Ù·Ö±È¡£
TsetProperty£¨target:widestring£¬property_:integer,const value widestring£©£ºÉ趨FlashÖÐӰƬµÄÊôÐÔ¡£
TgetProperty£¨target:widestring,property_:integer£©£ºÈ¡µÃFlashÖÐӰƬµÄÊôÐÔ¡£
GetVariable£¨const name:widestring£©£ºÈ¡µÃFlashÖбäÁ¿µÄÖµ¡£
SetVariable£¨const name:widestring,const value:widestring£©£ºÉ趨FlashÖбäÁ¿µÄÖµ¡£
OnProgress£¨int percent£©£º¶ÁÈ¡Ò»¸öFlashʱ´¥·¢¡£
OnReadyStateChange£¨int state£©£º×´Ì¬¸Ä±äʱ´¥·¢¡£StatesµÄÖµ0=Loading¡¢1=Uninitialized¡¢2=Loaded¡¢3=Interactive¡¢4=Complete¡£
OnFSCommand£¨const command,args:WideString£©£ºÓÃÀ´¶ÁÈ¡Flash°´Å¥ÖеIJÎÊý¡£
ÎÒÃÇҪʵÏÖDelphiÓëFlashÖ®¼äµÄÊý¾Ý´«µÝ


Ïà¹ØÎĵµ£º

NAND FlashµÄÑ°Ö··½Ê½

NAND FlashµÄÑ°Ö··½Ê½
ÕâÁ½ÌìÕûÀíµÄ,·¢³öÀ´ºÍ´ó¼Ò¹²Ïí.
NAND Flash Addressing Mode
NAND FlashµÄÑ°Ö··½Ê½ºÍNAND FlashµÄmemory×éÖ¯·½Ê½½ôÃÜÏà¹Ø¡£NAND FlashµÄÊý¾ÝÊÇÒÔbitµÄ·½Ê½±£´æÔÚmemory cell£¬Ò»°ãÀ´Ëµ£¬Ò»¸öcellÖÐÖ»ÄÜ´æ´¢Ò»¸öbit¡£ÕâЩcellÒÔ8¸ö»òÕß16¸öΪµ¥Î»£¬Á¬³Ébit line£¬ÐγÉËùνµÄbyte(x8)/word(x16)£¬Õâ ......

DelphiÖи߼¶DLLµÄ±àдºÍµ÷Óü¼ÇÉ

¸ù¾ÝDelphiÌṩµÄÓÐ¹Ø DLL±àдºÍµ÷ÓõİïÖúÐÅÏ¢£¬Äã¿ÉÒԺܿìÍê³ÉÒ»°ãµÄ DLL±àдºÍµ÷ÓÃµÄ Ó¦ÓóÌÐò¡£±¾ÎĽéÉܵÄÖ÷ÌâÊÇÈçºÎ±àдºÍµ÷ÓÃÄܹ»´«µÝ¸÷ÖÖ²ÎÊý£¨°üÀ¨¶ÔÏóʵÀý£©µÄ DLL¡£ÀýÈ磬 Ö÷½Ð³ÌÐò´«µÝ¸ø DLLÒ»¸öADOConnection ¶ÔÏóʾÀý×÷Ϊ²ÎÊý£¬ DLLÖеĺ¯ÊýºÍ¹ý³Ìµ÷ÓÃͨ¹ý¸Ã¶ÔÏó ʵÀý·ÃÎÊÊý¾Ý¿â¡£
ÐèÒªÃ÷ȷһЩ»ù±¾¸ÅÄî¡£¶ÔÓ ......

Óà delphi ´ò¿ªÍøÒ³

uses ShellAPI;
procedure TForm1.Button1Click(Sender: TObject);
begin
//ÓÃIE´ò¿ª
  ShellExecute(Handle, 'open', 'IExplore.EXE', 'about:blank', nil, SW_SHOWNORMAL);
//Óûðºü´ò¿ª
  ShellExecute(Handle, 'open', 'firefox.exe', 'about:blank', nil, SW_SHOWNORMAL);
//ÓÃĬÈÏä¯ÀÀÆ÷´ò¿ª
&nbs ......

¸ÄÔìDelphiµÄTStringHash³É±È½ÏͨÓõĹþÏ£±í

ÓÐʱºòÎÒÃÇÐèÒª¿ÉÒÔ¸ßËÙ¼ìË÷µÄÁÐ±í£¬×ÔÈ»»áÏëµ½¹þÏ£±í£¬Æ½Ê±ÎÒÃÇ¿ÉÄÜÏëµ½ÓÃIniFilesµ¥ÔªÀïµÄTHashedStringList£¬µ« THashedStringListÿ´ÎÐÂÔöÒ»¸öItemºó¶¼ÐèҪˢÐÂÒ»±é£¬Êý¾Ý¶àÁË¿ÉÄÜ»áÓеãÂý£¬¸Ð¾õ²»Ì«ºÃ£¬¶øTStringHashÔòÖ»ÄÜ´æ IntegerÐ͵Ä(ËäÈ»ÎÒÃÇ¿ÉÒ԰ѱðµÄ¶«Î÷Ç¿ÖÆת³ÉÕûÐÍ´æ½øÈ¥£¬µ«¸Ð¾õ²»Ì«ºÃ)¡£TStringHashÒѾ­Ê ......

delphi È¡CPUÐòÁкŵķ½·¨


interface
uses Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls, StdCtrls, Buttons;
type
TDemoForm = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
GetButton: TBitBtn;
CloseButton: TBitBtn;
Bevel1: TBevel;
Label5: TLabel; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ