VBÉèÖýø³ÌÓÅÏȼ¶
http://topic.csdn.net/t/20060401/19/4656391.html
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Declare Function SetPriorityClass Lib "kernel32" (ByVal hProcess As Long, ByVal dwPriorityClass As Long) As Long
Const IDLE_PRIORITY_CLASS = &H40 'нø³ÌÓ¦¸ÃÓзdz£µÍµÄÓÅÏȼ¶——Ö»ÓÐÔÚϵͳ¿ÕÏеÄʱºò²ÅÄÜÔËÐС£»ù±¾ÖµÊÇ4
Const HIGH_PRIORITY_CLASS = &H80 'нø³ÌÓзdz£¸ßµÄÓÅÏȼ¶£¬ËüÓÅÏÈÓÚ´ó¶àÊýÓ¦ÓóÌÐò¡£»ù±¾ÖµÊÇ13¡£×¢Ò⾡Á¿±ÜÃâ²ÉÓÃÕâ¸öÓÅÏȼ¶
Const NORMAL_PRIORITY_CLASS = &H20 '±ê×¼ÓÅÏȼ¶¡£Èç½ø³ÌλÓÚǰ̨£¬Ôò»ù±¾ÖµÊÇ9£»ÈçÔÚºǫ́£¬ÔòÓÅÏÈÖµÊÇ7
Dim CurrentProcesshWnd As Long 'µ±Ç°½ø³Ì¾ä±ú
Private Sub Form_Load()
CurrentProcesshWnd = GetCurrentProcess
If (SetPriorityClass(CurrentProcesshWnd, HIGH_PRIORITY_CLASS) = 0) Then
MsgBox "ÉèÖõ±Ç°½ø³ÌÓÅÏȼ¶Îª¸ß¡£Ê§°Ü£¡"
Else
MsgBox "ÉèÖõ±Ç°½ø³ÌÓÅÏȼ¶Îª¸ß¡£³É¹¦£¡"
End If
End Sub
Ïà¹ØÎĵµ£º
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Private Sub Command1_Click()
Dim Url As String, Filepath As String
Url = "h ......
Dim wdapp As Word.Application
Dim wddoc As Word.Document
Dim wdtable As Word.Table
Set wdapp = CreateObject("word.application")
Set wddoc = wdapp.Documents.Add
  ......
mxl=1 && ×î´óµÄÎı¾¿ò±àºÅ
mnl=1 &n ......
MYSQL Ó¦ÓÃÊ®·Ö¹ã·¶£¬ºÜ¶àÍøÕ¾¼¸ºõ¶¼ÔÚÓÃËû£¬ÒòΪËûµÄСÇɺÍÁé»îÐԵȷ½ÃæÈÃÎÒ¾ö¶¨Òª¶ÔËû½øÐÐÑо¿£¬µ½ÏÖÔÚÒѾ³É¹¦µÄ²»Óþ¹ýODBC£¬ADOµÈ·½Ê½¾Í¿ÉÒÔ¶ÁÈ¡ºÍ¸üÐÂÊý¾Ý¡£
ºÃÁ˲»¶àÂÞ࣬ÒÔÏÂÎÒÀ´½éÉÜ×ܸö³ÌÐòµÄϸ½Ú:
£¨Ò»£©APIÉùÃ÷
1. '·ÖÅä»ò³õʼ»¯ÊʺÏmysql_real_connect()µÄÒ»¸öMYSQL¶ÔÏñ¡ ......
È«ÆÁ
Private Sub Form_Load()
Me.Width = Screen.Width
Me.Height = Screen.Height
Me.WindowState = 2
End Sub
Öö¥
1.ÔÚVBµÄͨÓôúÂëÀïдÈëAPIÉùÃ÷
Private Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, _
&n ......