¡¡ÏÖ½ñÊÐÃæÉÏÁ÷ÐеÄһЩӢÓïѧϰÈí¼þ£¬ÔÚ¹ã¸æ´ÊÉϾ³£Ëµ×Ô¼ºÊ¹ÓÃÁ˹ú¼Ê¶¥¼âµÄÈ«³ÌÓïÒôTTS¼¼Êõ£¬ÄܽøÐÐÕû¶ÎÓ¢ÎĵÄÁ÷ÀûÀÊ
¶Á£¬²¢ÄÜ×ÔÓɵ÷½ÚÀʶÁµÄËÙ¶ÈÓëƵÂʵȡ£ÄÇô£¬Õâ¸öÉñÆæµÄTTS¾¿¾¹ÊÇʲô¶«Î÷ÄØ£¿
¡¡¡¡Æäʵ£¬TTSÊÇ΢Èí³öÆ·µÄÒ»Ì×ÎÄ×ÖÀʶÁÒýÇ棨Text-To-Speech Engine)£¬ÕâЩӢÓïÈí¼þ¾ÍÊǵ÷ÓÃËüÀ´½øÐÐÓ¢ÎÄÀʶÁµÄ¡£ÎÒÃÇÔÚÓ¢Óï
ѧϰÈí¼þµÄ±à³Ì¿ª·¢ÖÐÒ²¿ÉʹÓÃTTS¼¼Êõ£¬ÏÂÃæ±ÊÕß½«ÀûÓÃVisual Basic 5.0À´½Ò¿ªTTSÉñÃصÄÃæÉ´¡£
¡¡¡¡Ò»¡¢°²×°TTSÒýÇæ
¡¡¡¡TTSÒýÇæËùÐèµÄMicrosoft Text-to-Speech EngineÓëMicrosoft Speech APIÈí¼þ¶¼¿Éµ½Î¢ÈíµÄÕ¾µãÈ¥ÏÂÔØ£¬Ò²¿ÉÒÔÔÚ“½ðɽ´Ê°Ô
2000”»ò“½ðɽ´Ê°Ô.net”µÄ°²×°¹âÅÌÉÏÕÒµ½£¨ÎļþÃûΪMSTTS.EXEÓëSPCHAPI.EXE)¡£°²×°ÁËTTSÒýÇæºó£¬ÔÚWindowsËùÔÚĿ¼Ï»áÉú
³ÉÒ»¸öSPEECHĿ¼£¬ÆäÖÐÓÐÒ»¸öVtxtauto.tlbÎļþ£¬ÔÚ±à³ÌʱÎÒÃÇÐèÒªµ÷ÓÃËü¡£
¡¡¡¡¶þ¡¢ÔÚVBÖÐÒýÈëVtxtauto.tlbÎļþ
¡¡¡¡½øÈëVB 5.0£¬Ö´ÐÐÑ¡µ¥ÃüÁî“Îļþ/н¨¹¤³Ì/±ê×¼EXE”²¢È·¶¨£¬È»ºóÖ´ÐÐÑ¡µ¥“¹¤³Ì”ÖеēÒýÓÔ£¬µ¥»÷“ä¯ÀÀ”°´Å¥µ½
WindowsĿ¼ÏµÄSPEECH×ÓĿ¼£¬´ò¿ªVtxtauto.tlbÎļþ£¬½«“Voic ......
VBµÄ´úÂë´æ´¢ÔÚÄ£¿éÖС£ÔÚVBÖÐÌṩÁËÈýÖÖÀàÐ͵ÄÄ£¿é£º´°ÌåÄ£¿é¡¢±ê׼ģ¿éºÍÀàÄ£¿é¡£
¡¡¡¡¼òµ¥µÄÓ¦ÓóÌÐò¿ÉÒÔÖ»ÓÐÒ»¸ö´°Ì壬ËùÓõijÌÐò¶¼×¤ÁôÔÚ´°ÌåÄ£¿éÖУ¬¶øµ±Ó¦ÓóÌÐòÅÓ´ó¸´ÔÓʱ£¬¾ÍÒªÁíÍ⸽¼Ó´°Ìå¡£×îÖÕ¿ÉÄÜÓм¸¸ö´°ÌåÖÐÓÐһЩ¹²Í¬¶¼ÒªÖ´ÐеĴúÂ룬ΪÁËÔÚÁ½¸ö´°ÌåÖв»²úÉúÖظ´´úÂ룬¿É´´½¨Ò»¸ö¶ÀÁ¢µÄÄ£¿é£¬ÓÃËüʵÏÖ´úÂ빫Ó᣸öÀÁ¢Ä£¿é¼´ÊDZê׼ģ¿é¡£´ËÍ⻹¿ÉÒÔ½¨Á¢°üº¬¹²Ïí´úÂëÓëÊý¾ÝµÄÀàÄ£¿é¡£
¡¡¡¡Ã¿¸ö±ê׼ģ¿é¡¢ÀàÄ£¿éºÍ´°ÌåÄ£¿é¿É°üº¬£º
¡¡¡¡ÉùÃ÷¡£ ¿É½«³£Êý¡¢ÀàÐÍ¡¢±äÁ¿ºÍ¶¯Ì¬Á´½Ó¿â£¨DLL£©¹ý³ÌµÄÉùÃ÷·ÅÔÚ´°Ìå¡¢Àà»ò±ê׼ģ¿éµÄÉùÃ÷²¿·Ö¡£Ã¿¸öÄ£¿éÖ»ÓÐÒ»¸öÉùÃ÷²¿·Ö
¡¡¡¡¹ý³Ì¡£Ã¿¸öÄ£¿é¿ÉÓжà¸ö¹ý³Ì£¬¹ý³ÌÊÇ»®·ÖVB´úÂëµÄ×îСµ¥Ôª£¬Ã¿¸ö¹ý³ÌÊÇÒ»¸ö¿ÉÖ´ÐеĴúÂëƬ¶Î¡£VBÖÐÖ÷ÒªÓÐ×Ó¹ý³Ì¡¢º¯Êý¹ý³Ì»òÕßÊôÐÔ¹ý³ÌµÈ
¡¡¡¡¸÷ÖÖÄ£¿éÀàÐÍ
¡¡¡¡1.´°ÌåÄ£¿é
¡¡¡¡ÓÉÓÚVBÊÇÃæÏò¶ÔÏóµÄÓ¦ÓóÌÐò¿ª·¢¹¤¾ß£¬ËùÒÔÓ¦ÓóÌÐòµÄ´úÂë½á¹¹¾ÍÊǸóÌÐòÔÚÆÁÄ»ÉϱíʾµÄ¶ÔӦģÐÍ¡£¸ù¾Ý¶¨Ò壬¶ÔÏó°üº¬Êý¾ÝºÍ´úÂë¡£Ó¦ÓóÌÐòÖеÄÿ¸ö´°Ì嶼ÓÐÒ»¸öÏà¶ÔÓ¦µÄ´°ÌåÄ£¿é£¨ÎļþÀ©Õ¹ÃûΪ.frm£©
¡¡¡¡´°ÌåÄ£¿éÊÇVBÓ¦ÓóÌÐòµÄ»ù´¡¡£´°ÌåÄ£¿é¿ÉÒÔ°üº¬´¦ÀíʼþµÄ¹ý³Ì¡¢Í¨Óùý³ÌÒÔ¼°±äÁ¿¡¢³£Êý¡¢×Ô¶¨ÒåÀàÐͺÍÍ ......
Option Explicit
Private Declare Function LoadCursor Lib "user32.dll" Alias "LoadCursorA" (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long
Private Declare Function SetCursor Lib "user32.dll" (ByVal hCursor As Long) As Long
Private Const IDC_HAND As Long = 32649
Private myHand_handle As Long
Private Sub Form_Load()
myHand_handle = LoadCursor(0, IDC_HAND)
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If myHand_handle <> 0 Then SetCursor myHand_handle
End Sub ......
ÕâÄêÍ·,ÔÚÕâ¸öÂÛ̳ÀïÃæÒѾûÓÐʲô¼¼ÊõÌùÁË...ºÇºÇ~·¢Ò»Æª¾ªÌìµØ,Æü¹íÉñµÄÌû×Ó.µ±È»Õâ¸öÖ»ÊÇÄ£Äâ¼üÅ̵ÄÖÕ¼«Ä£Äâ.ºÇºÇ~
¼üÅÌÊÇÎÒÃÇʹÓüÆËã»úµÄÒ»¸öºÜÖØÒªµÄÊäÈëÉ豸ÁË£¬¼´Ê¹ÔÚÊó±ê´óÐÐÆäµÀµÄ½ñÌ죬ºÜ¶à³ÌÐòÒÀÈ»Àë²»¿ª¼üÅÌÀ´²Ù×÷¡£µ«ÊÇÓÐʱºò£¬Ò»Ð©Öظ´ÐԵģ¬ºÜ·±ËöµÄ¼üÅ̲Ù×÷×Ü»áÈÃÈËÆ£±¹£¬ÓÚÊǾÍÓÐÁËÓóÌÐòÀ´´úÌæÈËÃÇ°´¼üµÄ·½·¨£¬ÕâÑù¿ÉÒ԰ѺܶàÖظ´ÐԵļüÅ̲Ù×÷½»¸ø³ÌÐòÀ´Ä£Ä⣬ʡÁ˺ܶྫÁ¦£¬°´¼ü¾«Áé¾ÍÊÇÕâÑùµÄÒ»¸öÈí¼þ¡£ÄÇôÎÒÃÇÔõÑù²ÅÄÜÓÃVBÀ´Ð´Ò»¸ö³ÌÐò£¬´ïµ½Óë°´¼ü¾«ÁéÀàËƵŦÄÜÄØ£¿ÄǾÍÈÃÎÒÃÇÀ´ÏÈÁ˽âÒ»ÏÂwindowsÖÐÏìÓ¦¼üÅÌʼþµÄ»úÖÆ¡£
µ±Óû§°´Ï¼üÅÌÉϵÄÒ»¸ö¼üʱ£¬¼üÅÌÄÚµÄоƬ»á¼ì²âµ½Õâ¸ö¶¯×÷£¬²¢°ÑÕâ¸öÐźŴ«Ë͵½¼ÆËã»ú¡£ÈçºÎÇø±ðÊÇÄÄÒ»¸ö¼ü±»°´ÏÂÁËÄØ£¿¼üÅÌÉϵÄËùÓа´¼ü¶¼ÓÐÒ»¸ö±àÂ룬³Æ×÷¼üÅÌɨÃèÂë¡£µ±Äã°´ÏÂÒ»¸ö¼üʱ£¬Õâ¸ö¼üµÄɨÃèÂë¾Í±»´«¸øϵͳ¡£É¨ÃèÂëÊǸú¾ßÌåµÄÓ²¼þÏà¹ØµÄ£¬Í¬Ò»¸ö¼ü£¬ÔÚ²»Í¬¼üÅÌÉϵÄɨÃèÂëÓпÉÄܲ»Í¬¡£¼üÅÌ¿ØÖÆÆ÷¾ÍÊǽ«Õâ¸öɨÃèÂë´«¸ø¼ÆËã»ú£¬È»ºó½»¸ø¼üÅÌÇý¶¯³ÌÐò¡£¼üÅÌÇý¶¯³ÌÐò»áÍê³ÉÏà¹ØµÄ¹¤×÷£¬²¢°ÑÕâ¸öɨÃèÂëת»»Îª¼üÅÌÐéÄâÂ롣ʲôÊÇÐéÄâÂëÄØ£¿ÒòΪɨÃèÂëÓëÓ²¼þÏà¹Ø£¬²» ......
VBÊý¾Ý¿â²Ù×÷ʵÀý
2008-02-22 05:49
VBÊý¾Ý¿â²Ù×÷¶ÔºÜ¶à³õѧÕßÅóÓѸе½±È½Ï³ÔÁ¦£¬Ä¿Ç°½Ì²ÄÖеÄʵÀý¶ÔÊý¾Ý¿â²Ù×÷¶¼±È½Ïµ¥Ò»£¬ºÜ¶àÅóÓÑÌáÒéÎÒ×öÒ»¸ö°üÀ¨ä¯ÀÀ¡¢Ìí¼Ó¡¢Ð޸ġ¢É¾³ý¹¦ÄܵÄÊý¾Ý¿â²Ù×÷ʵÀý£¬ÏÂÃæÕâ¸öʵÀý¾ÍÊÇÒ»¸öÕâÑùµÄÊý¾Ý¿â²Ù×÷ʵÀý¡£
¡¶Êé¿â¹ÜÀíϵͳ¡·ÊÇÒ»¸ö×î¼òµ¥µÄÊý¾Ý¿â²Ù×÷ʵÀý£¬Ëü°üÀ¨ä¯ÀÀ¡¢Ìí¼Ó¡¢Ð޸ġ¢É¾³ý¹¦ÄܵÄÊý¾Ý¿â²Ù×÷£¬Ê¹ÓÃÊý¾ÝÁ´½Ó¿Ø¼þAdodcÁ´½ÓÊý¾Ý¿â¡¢Êý¾ÝÏÔʾ¿Ø¼þMSHFlexGridÏÔʾÊý¾Ý¿âÖеļǼ¡£
ÔÚн¨¹¤³Ìʱ¹¤¾ßÏäÖÐÊÇûÓÐAdodc¿Ø¼þºÍMSHFlexGrid¿Ø¼þµÄ£¬ÎÒÃDZØÐëµã»÷²Ëµ¥Öеġ¾¹¤³Ì¡¿-¡¾²¿¼þ¡¿£¬ÔÚ¶Ô»°¿òÖй´Ñ¡“Microsoft ADO Data Control 6.0 (SP6)”ºÍ“Microsoft Hierarchical FlexGrid Control 6.0 (SP4)”£¬×îºóµã»÷¡¾È·¶¨¡¿£¬ÕâÑùAdodc¿Ø¼þºÍMSHFlexGrid¿Ø¼þ¾ÍÒѾ·ÅÖÃÔÚ¹¤¾ßÏäÖÐÁË¡£
ÆäÖÐAdodc¿Ø¼þµÄConnectionStringÊôÐÔÖµÊÇ£º"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=¼ÒÍ¥Êé¼Ü.mdb;Persist Security Info=False"£¬ËüÉèÖÃÁ´½ÓÁË“¼ÒÍ¥Êé¼Ü.mdb”Õâ¸öAccessÊý¾Ý¿â£¬RecordSourcÊôÐÔÖµÊÇ£º"select ͼÊéµÇ¼Ç±í.ID,ͼÊéµÇ¼Ç±í.Ãû³Æ,Í¼Ê ......
Private Sub Command1_Click()
Dim MyComm As New ADODB.Command '¶¨ÒåÒ»¸öÃüÁî¶ÔÏó
Dim Rs_GetList As New ADODB.Recordset '¶¨ÒåÒ»¸ö¼Ç¼¼¯¶ÔÏó
Dim param As ADODB.Parameter '¶¨ÒåÒ»¸ö²ÎÊý¶ÔÏó
With MyComm
.ActiveConnection = Cn 'Êý¾ÝÁ¬½Ó
.CommandText = "pp" '´æ´¢¹ý³ÌÃû³Æ
.CommandType = adCmdStoredProc '±íÃ÷ÕâÊÇÒ»¸ö´æ´¢¹ý³Ì
.Prepared = True 'ÒªÇó½«SQLÃüÁîÏÈÐбàÒë
&nb ......
Private Sub Command1_Click()
Dim MyComm As New ADODB.Command '¶¨ÒåÒ»¸öÃüÁî¶ÔÏó
Dim Rs_GetList As New ADODB.Recordset '¶¨ÒåÒ»¸ö¼Ç¼¼¯¶ÔÏó
Dim param As ADODB.Parameter '¶¨ÒåÒ»¸ö²ÎÊý¶ÔÏó
With MyComm
.ActiveConnection = Cn 'Êý¾ÝÁ¬½Ó
.CommandText = "pp" '´æ´¢¹ý³ÌÃû³Æ
.CommandType = adCmdStoredProc '±íÃ÷ÕâÊÇÒ»¸ö´æ´¢¹ý³Ì
.Prepared = True 'ÒªÇó½«SQLÃüÁîÏÈÐбàÒë
&nb ......