Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : vb

ÓÃVB±àдActiveX DLLʵÏÖASP±à³Ì

ASPÊÇÄ¿Ç°Ò»ÖÖ¹ãΪӦÓõÄÓÃÀ´¿ìËÙ¹¹½¨¶¯Ì¬WEBÕ¾µãµÄ±à³ÌÓïÑÔ£¬Ä¬ÈϵÄÄÚÖÿª·¢ÓïÑÔÊÇVBScript£¬ÓÉÓÚASPºÍ΢ÈíWindowsϵÁвÙ×÷ϵͳµÄ½áºÏ·Ç³£µÄºÃ£¬Ê¹µÃASPÒѾ­³ÉΪÁËNT¿ª·¢Æ½Ì¨ÉÏÃæ½øÐÐWEB¿ª·¢µÄÊ×Ñ¡ÓïÑԺͻ·¾³¡£
ËûÓÐ׿òµ¥Ò×ѧ£¬·½±ã¿ìËÙ¿ª·¢µÄÖÖÖÖÓŵ㣬µ«ÊÇËûÒ²ÓÐ×ÅÖÂÃüµÄÈõµã£¬¾ÍÊÇËûÊǽű¾ÓïÑÔ½âÊÍÖ´Ðеģ¬ËٶȻáÊܵ½Ò»¶¨µÄÓ°Ï죬¸üΪ¹Ø¼üµÄÊÇ£¬Ê¹ÓÃASPÀ´¿ª·¢Íê³ÉÒ»¸öÏîÄ¿Ö®ºó£¬Õû¸öÏîÄ¿ÔÚ½»¸¶¿Í»§Ê¹ÓõÄʱºò£¬ÊÇ»áÁ¬´øËùÓеÄASP½Å±¾Ô´´úÂëµÄ£¬Ò²¾ÍÎÞ·¨½«ÉÌÒµ³ÌÐò±£ÃÜÁË£¬Ô´´úÂëй©»á¸ø×Ô¼ºÔì³ÉºÜ´óµÄËðʧ£¬ËäȻ΢ÈíÒ²ÏàÓ¦µÄÍƳöÁËÓÃÀ´¼ÓÃÜASP³ÌÐòµÄÈí¼þ£¬µ«ÊÇÓÐ×ÅÖî¶àµÄÏÞÖÆ£¬ÒÔ¼°»á½µµÍ³ÌÐòÔËÐеÄËٶȺͶþ´Î¿ª·¢µ÷ÊÔµÄÄѶȣ¬ÄѵÀASP×ö³öÀ´µÄÏîÄ¿¾ÍÕæµÄÒª±©Â¶ËùÓеÄÔ´´úÂëÂð?¡¡
µ±È»ÁË£¬´ð°¸µ±È»ÊÇ·ñ¶¨µÄ£¬ÒòΪÊÀ½çÉÏûÓоø¶Ô²»¿ÉÄܵÄÊÂÇ飬½ÓÏÂÀ´¾Í¸úËæÎÒÀ´¿´¿´ÈçºÎÀûÓÃVBµÄActiveX DLLÀ´ÊµÏÖ½«ASP³ÌÐò·â×°ÆðÀ´°É£¬Ò²¾ÍÊÇÎÒÃÇ¿ÉÒÔʹÓÃActiveX DLLÀ´Íê³ÉËùÓÐASPÄÜÍê³ÉµÄÊÂÇ飬¶øActiveX DLLÊDZàÒëºÃµÄDLLÎļþ£¬±ðÈËÊÇÎÞ·¨µÃÖªÄãµÄÔ´´úÂëµÄ£¬Ò²¾Í±£Ö¤µÄ×Ô¼ºµÄÉÌÒµ»úÃܺͺËÐļ¼Êõ£¬²¢ÇҴﵽͬÑùµÄЧ¹û£¬Ê¹ÓÃÍêÈ«·â×°µÄActiveX DLL»á±ÈÍêÈ«ÊÊÓÃASP½Å±¾ÓïÑÔµÄÖ´ÐÐËÙ¶ÈÒª¿ ......

ÓÃVB±àдActiveX DLLʵÏÖASP±à³Ì

ASPÊÇÄ¿Ç°Ò»ÖÖ¹ãΪӦÓõÄÓÃÀ´¿ìËÙ¹¹½¨¶¯Ì¬WEBÕ¾µãµÄ±à³ÌÓïÑÔ£¬Ä¬ÈϵÄÄÚÖÿª·¢ÓïÑÔÊÇVBScript£¬ÓÉÓÚASPºÍ΢ÈíWindowsϵÁвÙ×÷ϵͳµÄ½áºÏ·Ç³£µÄºÃ£¬Ê¹µÃASPÒѾ­³ÉΪÁËNT¿ª·¢Æ½Ì¨ÉÏÃæ½øÐÐWEB¿ª·¢µÄÊ×Ñ¡ÓïÑԺͻ·¾³¡£
ËûÓÐ׿òµ¥Ò×ѧ£¬·½±ã¿ìËÙ¿ª·¢µÄÖÖÖÖÓŵ㣬µ«ÊÇËûÒ²ÓÐ×ÅÖÂÃüµÄÈõµã£¬¾ÍÊÇËûÊǽű¾ÓïÑÔ½âÊÍÖ´Ðеģ¬ËٶȻáÊܵ½Ò»¶¨µÄÓ°Ï죬¸üΪ¹Ø¼üµÄÊÇ£¬Ê¹ÓÃASPÀ´¿ª·¢Íê³ÉÒ»¸öÏîÄ¿Ö®ºó£¬Õû¸öÏîÄ¿ÔÚ½»¸¶¿Í»§Ê¹ÓõÄʱºò£¬ÊÇ»áÁ¬´øËùÓеÄASP½Å±¾Ô´´úÂëµÄ£¬Ò²¾ÍÎÞ·¨½«ÉÌÒµ³ÌÐò±£ÃÜÁË£¬Ô´´úÂëй©»á¸ø×Ô¼ºÔì³ÉºÜ´óµÄËðʧ£¬ËäȻ΢ÈíÒ²ÏàÓ¦µÄÍƳöÁËÓÃÀ´¼ÓÃÜASP³ÌÐòµÄÈí¼þ£¬µ«ÊÇÓÐ×ÅÖî¶àµÄÏÞÖÆ£¬ÒÔ¼°»á½µµÍ³ÌÐòÔËÐеÄËٶȺͶþ´Î¿ª·¢µ÷ÊÔµÄÄѶȣ¬ÄѵÀASP×ö³öÀ´µÄÏîÄ¿¾ÍÕæµÄÒª±©Â¶ËùÓеÄÔ´´úÂëÂð?¡¡
µ±È»ÁË£¬´ð°¸µ±È»ÊÇ·ñ¶¨µÄ£¬ÒòΪÊÀ½çÉÏûÓоø¶Ô²»¿ÉÄܵÄÊÂÇ飬½ÓÏÂÀ´¾Í¸úËæÎÒÀ´¿´¿´ÈçºÎÀûÓÃVBµÄActiveX DLLÀ´ÊµÏÖ½«ASP³ÌÐò·â×°ÆðÀ´°É£¬Ò²¾ÍÊÇÎÒÃÇ¿ÉÒÔʹÓÃActiveX DLLÀ´Íê³ÉËùÓÐASPÄÜÍê³ÉµÄÊÂÇ飬¶øActiveX DLLÊDZàÒëºÃµÄDLLÎļþ£¬±ðÈËÊÇÎÞ·¨µÃÖªÄãµÄÔ´´úÂëµÄ£¬Ò²¾Í±£Ö¤µÄ×Ô¼ºµÄÉÌÒµ»úÃܺͺËÐļ¼Êõ£¬²¢ÇҴﵽͬÑùµÄЧ¹û£¬Ê¹ÓÃÍêÈ«·â×°µÄActiveX DLL»á±ÈÍêÈ«ÊÊÓÃASP½Å±¾ÓïÑÔµÄÖ´ÐÐËÙ¶ÈÒª¿ ......

VC VC++ VB UG and so on

ѧÉúʱ´úרҵÊÇ»úе£¬µ«ÊDzμӹ¤×÷ºó£¬»úÔµÇɺϴÓÊÂÁËÓëÈí¼þÏà¹ØµÄ¹¤×÷£¬¾ÍÊǶԴóÐ͹¤³ÌÈí¼þÈí¼þ×öһЩ¶þ´Î¿ª·¢£¬ÊÕ»ñ¹ý¿ìÀÖ£¬ÊÕ»ñ¹ýÐÁËᣬÔÚÒ»´ÎÓÖÒ»´ÎµÄµÃÓëʧÖУ¬ÏëÕÒÒ»¸öµØ·½£¬ÕÒһЩÈË¿ÉÒÔÂýÂýÓëÖ®·ÖÏí£¬ÓëÖ®½»Á÷£¬²¢Æڵõ½°ïÖú»òÌṩ°ïÖú£¡Ò²ÐíÄãÊÇÎÞÒâ¼û·¹ý£¬Éõ»òƯ¹ý£¬µ«ÄãµÄעĿÊÇÎÒÇ°½øµÄ¶¯Á¦£¬ÓÐÐÒפ×ãÒ²»áÈÃÎÒÐÀϲ£¡ ......

VC VC++ VB UG and so on

ѧÉúʱ´úרҵÊÇ»úе£¬µ«ÊDzμӹ¤×÷ºó£¬»úÔµÇɺϴÓÊÂÁËÓëÈí¼þÏà¹ØµÄ¹¤×÷£¬¾ÍÊǶԴóÐ͹¤³ÌÈí¼þÈí¼þ×öһЩ¶þ´Î¿ª·¢£¬ÊÕ»ñ¹ý¿ìÀÖ£¬ÊÕ»ñ¹ýÐÁËᣬÔÚÒ»´ÎÓÖÒ»´ÎµÄµÃÓëʧÖУ¬ÏëÕÒÒ»¸öµØ·½£¬ÕÒһЩÈË¿ÉÒÔÂýÂýÓëÖ®·ÖÏí£¬ÓëÖ®½»Á÷£¬²¢Æڵõ½°ïÖú»òÌṩ°ïÖú£¡Ò²ÐíÄãÊÇÎÞÒâ¼û·¹ý£¬Éõ»òƯ¹ý£¬µ«ÄãµÄעĿÊÇÎÒÇ°½øµÄ¶¯Á¦£¬ÓÐÐÒפ×ãÒ²»áÈÃÎÒÐÀϲ£¡ ......

VB ×ÊÁϵ¼³ö

Ôںܶà VB µÄ×ÊÁÏ¿âÊé¼®ÖУ¬¶¼»áºÜÍêÕûµÄÌáµ½£ºÈçºÎÓÉÆäËûÖÖÀàµÄÎļþÖн«×ÊÁϵ¼Èë×ÊÁϿ⣬µ«ÊÇÈ´ºÜÉÙÓÐÊéÌáµ½£ºÈçºÎ½«×ÊÁÏ¿âÖеÄ×ÊÁÏ£¬µ¼³öµ½¸÷ÖÖ²»Í¬µÄÎļþÀàÐ͵ÄÎļþÖУ¬Á¬ VB µÄ Help ÖÐÒ²ÊÇÕâÑù£¡
»òÐíÊÇ´ó¼Ò¶¼ÈÏΪ×ÊÁÏ¿âÖ÷ÌâµÄÖصãÊÇÔÚ×ÊÁÏ¿â±¾Éí°É£¡
µ«ÊÇ£¬ÔÚʵ¼ÊµÄ×ÊÁÏ¿â³ÌÐòÔËÓÃÖУ¬È´³£³£ÐèÒª½«×ÊÁÏ¿âµ¼³öµ½¸÷ÖÖ²»Í¬µÄÎļþÀàÐ͵ÄÎļþÖУ¬ÕâЩÎļþ¿ÉÄÜÊÇ DBaseÎļþ¡¢ÎÄ×ÖÎļþ (.Txt)¡¢Excel Îļþ¡¢Html Îļþ¡¢Access Îļþ»òÆäËûÀàÐ͵Ä×ÊÁÏ¿âÎļþ (ODBC)...µÈ¡£
ÔÚ±¾×¨ÌâÖУ¬¿¼Âǵ½²¢²»ÊÇÿһ¸öÈ˶¼ÓÐ Oracle »ò SQL Server µÄ»·¾³£¬ÎªÁËÈôó¼Ò¶¼Äܹ»Êµ×÷£¬ÎÒÃǽ«ÒÔ Access ×ÊÁÏ¿âÀ´×÷Á·Ï°£¬¶øÁ·Ï°µÄÎļþҲʹÓà VB ±¾ÉíÌṩµÄ Biblio.mdb (λÓÚ¸÷°æ±¾ VB µÄĿ¼ÏÂ)¡£
Ô¤¼ÆÒªÁ·Ï°µ¼³öµÄÎļþÀàÐÍÓÐÎåÖÖ£ºDBaseÎļþ¡¢ÎÄ×ÖÎļþ (.Txt)¡¢Html Îļþ¡¢Excel Îļþ¡¢Access Îļþ¡£³ýÁËÕâÎåÖÖÖ®Í⣬ÏÂÃæµÄÓï·¨¿ÉÒÔ½«×ÊÁÏ¿âÖ®×ÊÁϵ¼³öµ½ÈÎÒ»ÖÖ VB Ö§Ô®µÄ×ÊÁÏ¿â»òÎļþÖС£
ÔÚÁ·Ï°Ö®Ç°£¬Òª½«µ¼³öÎļþµÄ SQL Óï·¨ÏÈ˵Ã÷һϣº
SELECT Table.Fields INTO [dbms type;DATABASE=path].[unqualified filename] from [Table or Tables]
SELECT Table.Fields INTO [×ÊÁÏ¿âÖÖÀà;DATAB ......

vb×Ô¶¯¹Ø»ú³ÌÐò

Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Private Const EWX_LOGOFF = 0
Private Const EWX_SHUTDOWN = 1
Private Const EWX_REBOOT = 2
Private Const EWX_FORCE = 4
Private closeTime As String
Sub AdjustTokenPrivilegesForNT()
   
    Dim hdlProcessHandle As Long
    Dim hdlTokenHandle As Long
    Dim tmpLuid As LUID
    Dim tkp As TOKEN_PRIVILEGES
    Dim tkpNewButIgnored As TOKEN_PRIVILEGES
    Dim lBufferNeeded As Long
   
    hdlProcessHandle = GetCurrentProcess()
    OpenProcessToken hdlProcessHandle, (TOKEN_ADJUST_PRIVILEGES Or _
    TOKEN_QUERY), hdlTokenHandle
   
    LookupPrivilegeValue "", "SeShutdownPrivilege", tmpLuid
    tkp.PrivilegeCount = 1
    tkp.Privileges(0).pLu ......

vb×Ô¶¯¹Ø»ú³ÌÐò

Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Private Const EWX_LOGOFF = 0
Private Const EWX_SHUTDOWN = 1
Private Const EWX_REBOOT = 2
Private Const EWX_FORCE = 4
Private closeTime As String
Sub AdjustTokenPrivilegesForNT()
   
    Dim hdlProcessHandle As Long
    Dim hdlTokenHandle As Long
    Dim tmpLuid As LUID
    Dim tkp As TOKEN_PRIVILEGES
    Dim tkpNewButIgnored As TOKEN_PRIVILEGES
    Dim lBufferNeeded As Long
   
    hdlProcessHandle = GetCurrentProcess()
    OpenProcessToken hdlProcessHandle, (TOKEN_ADJUST_PRIVILEGES Or _
    TOKEN_QUERY), hdlTokenHandle
   
    LookupPrivilegeValue "", "SeShutdownPrivilege", tmpLuid
    tkp.PrivilegeCount = 1
    tkp.Privileges(0).pLu ......

VBÓëWindows API½²×ù(¶þ) өĻץȡÓëÓ©Ä»±£»¤³Ìʽ

ÎÄÕÂÀ´Ô´:vb´óÊÀ½ç ×÷ÕߣºÍõ¹úÈÙ
¡¸VB ûÓÐÌṩÕâÑùµÄ¹¦ÄÜ£¬ ±ØÐëºô½Ð Windows API¡¹£¬ µ±±ÊÕßÕâÑù»Ø´ð¶ÁÕßÖ®áᣬÓÐЩ¶ÁÕß»áÒªÇó±ÊÕß½éÉÜ Windows API ·½ÃæµÄÊé¼®£¬ ÓÈÆäÊÇÖÐÎÄÊ飬 µ«Êµ¼ÊÉÏ£¬Ä¿Ç°ÊÐÃæÉÏÖ»¿´µ½Ò»±¾Ô­ÎÄÊé(ZD Press ³ö°æµÄ Visual Basic 5.0 Programming Guide to Win32 API)£¬ ÖÐÎÄÊéÔòδ¼û¹ý£¬ Ϊʲ÷áûÓÐ Windows API ·½ÃæµÄÖÐÎÄÊéÄØ£¿µÀÀíºÜ¼òµ¥£¬ Windows API ¶Ô VB µÄѧϰÕ߶øÑÔ£¬ ÓÌÈçɽ·åÖ®µß£¬ Äܹ»Ò»Â·ÅÀÉÏÀ´µÄÈËÔ­±¾¾ÍÊ®·ÖÓÐÏÞ£¬¶øÔ½Íùɽ¶¥£¬ ÈËÑÌԽϡÉÙ£¬ Òò´ËÕâÑùµÄÊéд³öÀ´£¬ ÏúÊ۳ɼ¨±ØÈ»²Ò²»È̶㬠ҲÐíÓÐЩ¶ÁÕß»á¾õµÃ±¾ÍÁµÄ×÷ÕßʵÔںܻ죬ֻԸÒâд¼òµ¥µÄÊ飬 µ«×«Ð´ÉîÈëµÄÊé¼®£¬ ·Ñʱ·ÑÁ¦·ÑÉñ¶øÏúÊ۳ɼ¨ÓÖ²»ºÃ£¬ ×îÖÕ½á¹ûÊÇÕâÖÖ²»»ìµÄ×÷Õ߻첻ÏÂÈ¥£¬µ±¹ý¶ÁÕ߶øÏÖÔÚÓÖÊÇ×÷ÕߵıÊÕߣ¬ ¶Ô춴ËÒ»ÏÖÏóÓÐʱҲÆĸÐÎÞÄΡ£
²»¹ÜÔõÑù£¬ ±ÊÕßÏÖÔÚÒѾ­¿ªÊ¼½éÉÜ Windows API ÁË£¬ Ò²ÐíÕæµÄ²»Ïë»ìÁË£¬µ«»ìÓë²»»ì²»ÊDZÊÕß¿ªÆô±¾ÏµÁн²×ù×îµ£ÐĵÄÊÂÇ飬 ±ÊÕßËùµ£ÐĵÄÊÇÕâÑùµÄÖ÷Ìâ¶Ô¶ÁÕßÀ´Ëµ»á²»»áÌ«¿ÝÔ»á²»»áÌ«¼èɬ£¿»á²»»áÏñ±ÊÕßµ±³õÑжÁ Windows API ʱ£¬ Ô½ÑжÁÐÄÖеÄÒÉÎÊÔ½¶à£¬ ¾ÍºÃÏñ½øÈëÎ޵׺ڶ´Ò»Ñù£¿
ΪÁ˱ÜÃâÒÔÉϵĽá¹û£¬ ÔÚÄÚÈݵĽéÉÜÉÏ£¬ ±Ê ......
×ܼǼÊý:380; ×ÜÒ³Êý:64; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [1] [2] 3 [4] [5] [6] [7] [8] [9] [10]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ