VBÏÔʾ͸Ã÷FLASHЧ¹û
ÑÝʾЧ¹û£º
´úÂëÈçÏ£º
¹«¹²ÉùÃ÷ÇøÓò
Option Explicit
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Const WS_EX_LAYERED = &H80000
Const GWL_EXSTYLE = (-20)
Const LWA_COLORKEY = &H1
Dim rtn&
Private Sub Form_Load()
ShockwaveFlash1.BackgroundColor = RGB(255, 255, 255)
rtn = GetWindowLong(hwnd, GWL_EXSTYLE)
rtn = rtn Or WS_EX_LAYERED
SetWindowLong hwnd, GWL_EXSTYLE, rtn
SetLayeredWindowAttributes hwnd, RGB(255, 255, 255), 0, LWA_COLO ......
VBÏÔʾ͸Ã÷FLASHЧ¹û
ÑÝʾЧ¹û£º
´úÂëÈçÏ£º
¹«¹²ÉùÃ÷ÇøÓò
Option Explicit
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Const WS_EX_LAYERED = &H80000
Const GWL_EXSTYLE = (-20)
Const LWA_COLORKEY = &H1
Dim rtn&
Private Sub Form_Load()
ShockwaveFlash1.BackgroundColor = RGB(255, 255, 255)
rtn = GetWindowLong(hwnd, GWL_EXSTYLE)
rtn = rtn Or WS_EX_LAYERED
SetWindowLong hwnd, GWL_EXSTYLE, rtn
SetLayeredWindowAttributes hwnd, RGB(255, 255, 255), 0, LWA_COLO ......
Èç¹ûÔÀ´Ã»ÓÐʹÓùýÕýÔò±í´ïʽ£¬ÄÇô¿ÉÄܶÔÕâ¸öÊõÓïºÍ¸ÅÄî»á²»Ì«ÊìϤ¡£²»¹ý£¬ËüÃDz¢²»ÊÇÄúÏëÏóµÄÄÇôÐÂÆæ¡£
Çë»ØÏëÒ»ÏÂÔÚÓ²ÅÌÉÏÊÇÈçºÎ²éÕÒÎļþµÄ¡£Äú¿Ï¶¨»áʹÓà ? ºÍ * ×Ö·ûÀ´°ïÖú²éÕÒÄúÕýÑ°ÕÒµÄÎļþ¡£? ×Ö·ûÆ¥ÅäÎļþÃûÖеĵ¥¸ö×Ö·û£¬¶ø * ÔòÆ¥ÅäÒ»¸ö»ò¶à¸ö×Ö·û¡£Ò»¸öÈç 'data?.dat' µÄģʽ¿ÉÒÔÕÒµ½ÏÂÊöÎļþ£º
data1.dat
data2.dat
datax.dat
dataN.dat
Èç¹ûʹÓà * ×Ö·û´úÌæ ? ×Ö·û£¬Ôò½«À©´óÕÒµ½µÄÎļþÊýÁ¿¡£'data*.dat' ¿ÉÒÔÆ¥ÅäÏÂÊöËùÓÐÎļþÃû£º
data.dat
data1.dat
data2.dat
data12.dat
datax.dat
dataXYZ.dat
¾¡¹ÜÕâÖÖËÑË÷ÎļþµÄ·½·¨¿Ï¶¨ºÜÓÐÓ㬵«Ò²Ê®·ÖÓÐÏÞ¡£? ºÍ * ͨÅä·ûµÄÓÐÏÞÄÜÁ¦¿ÉÒÔʹÄã¶ÔÕýÔò±í´ïʽÄÜ×öʲôÓÐÒ»¸ö¸ÅÄ²»¹ýÕýÔò±í´ïʽµÄ¹¦ÄܸüÇ¿´ó£¬Ò²¸üÁé»î¡£
ÔçÆÚÆðÔ´
ÕýÔò±í´ïʽµÄ“×æÏÈ”¿ÉÒÔÒ»Ö±ÉÏËÝÖÁ¶ÔÈËÀàÉñ¾ÏµÍ³ÈçºÎ¹¤×÷µÄÔçÆÚÑо¿¡£Warren McCulloch ºÍ Walter Pitts ÕâÁ½Î»Éñ¾ÉúÀíѧ¼ÒÑо¿³öÒ»ÖÖÊýѧ·½Ê½À´ÃèÊöÕâЩÉñ¾ÍøÂç¡£
1956 Äê, һλ½Ð Stephen Kleene µÄÃÀ¹úÊýѧ¼ÒÔÚ McCulloch ºÍ Pitts ÔçÆÚ¹¤×÷µÄ»ù´¡ÉÏ£¬·¢±íÁËһƪ±êÌâΪ“Éñ¾ÍøʼþµÄ±íʾ·¨”µÄÂÛÎÄ£¬ÒýÈëÁËÕýÔò±í´ïʽµÄ¸ÅÄî¡£ÕýÔò±í´ïʽ¾ÍÊÇÓ ......
×÷Õß: ØýÃû, ¡¡³ö´¦:ITר¼ÒÍø,¡¡ÔðÈαà¼: лåûåû,¡¡
2010-04-23 11:20
¡¡¡¡±¾ÎĽéÉÜVB¶Ô³ÌÐòÔËÐеļà¿Ø¡£
¡¡¡¡×ªÑۼ䣬±¾ÏµÁÐÎÄÕÂÒѾдµ½Á˵ÚÁù¸ö£¬½ñÌìдµãʲôÄØ?
¡¡¡¡»¹ÊǵÃд£¬¿´ËÆVB×ö²»µ½µÄÊÂÇ飬ÄÇô½ñÌìÆð¾ÍддVB¶Ô²Ù×÷ϵͳµÄ¿ØÖÆ°É¡£
¡¡¡¡Ê×ÏÈ£¬ËµÒ»Ëµ£¬VB¶ÔÓÚ±»µ÷ÓúóµÄ³ÌÐòµÄ¼à¿Ø·½·¨¡£
¡¡¡¡ÔÐͺ¯Êý¼ò½é£º
¡¡¡¡WaitForSingleObject
¡¡¡¡Î»Ö㺠Kernel32.dll
¡¡¡¡VBÉùÃ÷£ºDeclare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
¡¡¡¡ËµÃ÷£º
¡¡¡¡²ÎÊýhHandleÊÇÒ»¸öʼþµÄ¾ä±ú£¬µÚ¶þ¸ö²ÎÊýdwMillisecondsÊÇʱ¼ä¼ä¸ô¡£Èç¹ûʼþÊÇÓÐÐźÅ״̬·µ»ØWAIT_OBJECT_0£¬Èç¹ûʱ¼ä³¬¹ýdwMillisecondsÖµµ«Ê±¼äʼþ»¹ÊÇÎÞÐźÅ״̬Ôò·µ»ØWAIT_TIMEOUT¡£
¡¡¡¡hHandle¿ÉÒÔÊÇÏÂÁжÔÏóµÄ¾ä±ú£º
¡¡
¡¡Change notification
¡¡¡¡Console input
¡¡¡¡Event
¡¡¡¡Job
¡¡¡¡Memory resource notification
¡¡¡¡Mutex
¡¡¡¡Process
¡¡¡¡Semaphore
¡¡¡¡Thread
¡¡¡¡Waitable timer
¡¡¡¡WaitForSingleObjectº¯ÊýÓÃÀ´¼ì²âhHandleʼþµÄÐźÅ״̬£¬µ±º¯ÊýµÄÖ´ÐÐʱ¼ä³¬¹ýdwMil ......
ʹÓÃc#ÓïÑÔÔÚ.netƽ̨Éú³ÉµÄdllÊÇ»ùÓÚMSILµÄ¶þ½øÖÆ´úÂ룬ͨ³£Çé¿öÏÂÊÇÎÞ·¨±»nativeµÄÓïÑԺͳÌÐòµ÷Óõģ¨ÀýÈçvb£¬vc£¬delphi£©¡£µ«ÊÇÒ»°ãÀ´ËµwindowsÉÏnativeµÄ³ÌÐò¶¼ÊÇ¿ÉÒÔÖ±½ÓʹÓÃcom¶ÔÏóµÄ¡£Í¨¹ý.netƽ̨ÌṩµÄһЩ¹¤¾ß£¬¿ÉÒÔΪÆäαÔìÒ»¸öcom½Ó¿Ú²¢×¢²áµ½ÏµÍ³ÖС£´Ëʱ£¬¿ÉÒÔÔÚnativeµÄ³ÌÐòÀͨ¹ýÕâ¸öαcom½Ó¿ÚÀ´ÊµÏÖ´Ë.netµÄdllµÄµ÷Óá£
vbµ÷ÓÃC#Àà¿âµÄ·½·¨²½Öè
1 ʹÓÃC#½¨Á¢.netµÄdll
1.1 ½¨Á¢ÏîÄ¿
ÔÚ.netÖÐн¨Ò»¸öÏîÄ¿£ºTestCom¡£
1.2 ʵÏÖc#Àà
ÔÚclass1.csÎļþÖÐÌí¼ÓÒ»¸ö½Ó¿ÚºÍÒ»¸öÀࣺ
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace TestCom { [ComVisible(true)] public interface iClass1 { string test(); } ......
ʹÓÃc#ÓïÑÔÔÚ.netƽ̨Éú³ÉµÄdllÊÇ»ùÓÚMSILµÄ¶þ½øÖÆ´úÂ룬ͨ³£Çé¿öÏÂÊÇÎÞ·¨±»nativeµÄÓïÑԺͳÌÐòµ÷Óõģ¨ÀýÈçvb£¬vc£¬delphi£©¡£µ«ÊÇÒ»°ãÀ´ËµwindowsÉÏnativeµÄ³ÌÐò¶¼ÊÇ¿ÉÒÔÖ±½ÓʹÓÃcom¶ÔÏóµÄ¡£Í¨¹ý.netƽ̨ÌṩµÄһЩ¹¤¾ß£¬¿ÉÒÔΪÆäαÔìÒ»¸öcom½Ó¿Ú²¢×¢²áµ½ÏµÍ³ÖС£´Ëʱ£¬¿ÉÒÔÔÚnativeµÄ³ÌÐòÀͨ¹ýÕâ¸öαcom½Ó¿ÚÀ´ÊµÏÖ´Ë.netµÄdllµÄµ÷Óá£
vbµ÷ÓÃC#Àà¿âµÄ·½·¨²½Öè
1 ʹÓÃC#½¨Á¢.netµÄdll
1.1 ½¨Á¢ÏîÄ¿
ÔÚ.netÖÐн¨Ò»¸öÏîÄ¿£ºTestCom¡£
1.2 ʵÏÖc#Àà
ÔÚclass1.csÎļþÖÐÌí¼ÓÒ»¸ö½Ó¿ÚºÍÒ»¸öÀࣺ
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace TestCom { [ComVisible(true)] public interface iClass1 { string test(); } ......
Ö÷´°Ìå´úÂ룺
'´ò¿ªÍøÒ³
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
'¸´ÖÆÎļþ
Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long
'»ñÈ¡Çý¶¯Æ÷ÀàÐÍ
Private Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long
Private Const DRIVE_UNKNOWN = 0
Private Const DRIVE_NO_ROOT_DIR = 1
Private Const DRIVE_REMOVABLE = 2
Private Const DRIVE_FIXED = 3
Private Const DRIVE_REMOTE = 4
Private Const DRIVE_CDROM = 5
Private Const DRIVE_RAMDISK = 6
'¹Ø±Õ´°Ìå
Private Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function PostMes ......
Ìí¼Ó2¸ötext£¬Ò»¸öcommand£¬Ò»¸ö WebBrowser
Dim vDoc, vTag
Dim i As Integer
Private Sub Command1_Click()
Set vDoc = WebBrowser1.Document
For i = 0 To vDoc.All.length - 1
If UCase(vDoc.All(i).tagName) = "INPUT" Then
Set vTag = vDoc.All(i)
If vTag.Type = "text" Then
Select Case vTag.Name
Case "username"
vTag.Value = Text1 '̞
End Select
End If
If vTag.Type = "password" Then
Select Case vTag.Name
Case "password"
vTag.Value = Text2 'ÃÜÂë
End Select
End If
If vTag.Name = "remUser" Then 'Èç¹û²»Òª¼ÇסÓû§Ãû£¬´Ë¾äɾ³ý
vTag.Click
End If
If vTag.Type = "submit" Then 'Èç¹û²»Òªµã»÷°´Å¥µÇ½£¬°Ñ´ËifµÄ´úÂëɾ³ý
vTag.Click
End If
End If
Next i
End Sub
Private Sub Form_Load()
WebBrowser1.Navigate "http://mail.163.com/"
End Sub ......