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
Ïà¹ØÎĵµ£º
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
  ......
MYSQL Ó¦ÓÃÊ®·Ö¹ã·¶£¬ºÜ¶àÍøÕ¾¼¸ºõ¶¼ÔÚÓÃËû£¬ÒòΪËûµÄСÇɺÍÁé»îÐԵȷ½ÃæÈÃÎÒ¾ö¶¨Òª¶ÔËû½øÐÐÑо¿£¬µ½ÏÖÔÚÒѾ³É¹¦µÄ²»Óþ¹ýODBC£¬ADOµÈ·½Ê½¾Í¿ÉÒÔ¶ÁÈ¡ºÍ¸üÐÂÊý¾Ý¡£
ºÃÁ˲»¶àÂÞ࣬ÒÔÏÂÎÒÀ´½éÉÜ×ܸö³ÌÐòµÄϸ½Ú:
£¨Ò»£©APIÉùÃ÷
1. '·ÖÅä»ò³õʼ»¯ÊʺÏmysql_real_connect()µÄÒ»¸öMYSQL¶ÔÏñ¡ ......
Option Explicit
Dim potflag As Integer '±êʶÊÇ·ñÓÃСÊýµã
Dim numcol As Integer ' µã»÷ÔËËã·ûµÄ¸öÊý
Dim LastInput ' ָʾÉÏÒ»´Î²Ù×÷µÄÄÚÈÝ
Dim colflag ......
´úÂëÈçÏÂ:
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As
Long, ByVal hWndInsertAfter As Long,& _
¡¡ ByVal X As Long, ByVal Y As
Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long & _
&n ......