

                         VBForums -    ̳ 


                         .       
               


         VBForums-̳: HTTP://hzsoft.yeah.net
            
                  ύʼ: VBForums@usa.net?Subject=VBForums

            нϵ: ympang@bigfoot.com


ѡ

                VB5.0     ʽ Ӧ  

                   ֵ˾-ż

    ---- ΢    VB5.0  һ    ǿ     ƽ 
    ̨  ڡ     ԡ    ǿ  һ    ע
    Ŀ   㡣       Ҫ     ʹ   
      Ԫ   Active X  Active X Control, Active X
    Exe, Active X Dll Ȼ        ʹ VB  ׼
        һ  ʹ   Щ   

    ---- Active X        Ӧ       㡣
          Щ          ͬ   
    ϣ     ʽ Ӧ ã          ͬ һ
    ̨   һ           Active X 
       飬      ʵ    һ    
    Active X             ʽ Ӧ á 

    һ   

    ---- Active X"  ΢  Ϊ   ʽ      һ 
     ׼   ǰ        ֪ ġOLE Automation
    "    ʽ Ӧ  ͨ    ͨ Ѷ ʱActive X  
    ʹ     ͬ            Ӧ һ
      Ϊ       ģ ʽDCOM ֻ   
    Windows NT Windows95  ʹ ã  һ  ǡ Զ   
    Remote Automation"    16 λ     
      ʽ Ӧ á 

    ----      ʽ  ƣ         㣺
         λ     ԡ Ҳ   ˵    
    һ Active X   ʱ   ֪        һ ̨
      ϡ ͬ              Ҳ
                   Ҫ    
    롣                 
                   ԡ 

    ----  Ȼ Active X     ʽ Ӧ      
           㣺 

        Զ               
      һ ģ һ          顣 
        Active X        ʵ     
      ҵ     DBMS SQL Server    ͬ 
                ̡ ά    
      Ρ 
           ҵ     ʹ á      
        Խ  Խ ࡣ   ֻ       ҵ  
                   ʹ á 

          

    ----     ʽ           ͬ  
    Ҳ       ɣ     ׸     
    VB5.0     ӣ
    \Sample\CliSvr\BookSale\Client\book_cli.vbp     
    \Sample\CliSvr\BookSale\Client\book_svr.vbp     
          ʽ       ʱ  ע   
     ⣺ 

          Project Ӧ ΪActive X EXE    
      Active X    Ҳ     ⣬    
       ̨      ͬ һ   ̣  ԣ   
      ʹ Active X DLL       
      Project Properties        Ŀ £ Ӧ 
      ΪRemote Server File        ʱ  
       һ VBR       װ  ʱ Ҫ á  
      ֪ Windows    ϵ ͳ ע     ע ᣬ 
         ע   ء 
      Class   Ӧ  ΪMutiuse       Ӧ 
        ʹ   

        װ  

    ----               װ   ͬ
       ϣ Ӧ  Setup Wizard      װ  

    ----          װ  ʱ      
                 ģ   Ӱ 
          ע    Щ ע       
         ȥ Ѱ   Ӧ         
         񣩡 ΢      ߣ     
    Ҫ  ʱ    Щ ע     ʹ Remote Automation
     ƣ  ʹ RemAuto Connection Manager  ʹ DCOM 
    ƣ  ʹ Dcom Configuration ManagerRemAuto Connector
    Manager VB5.0      У     װ  ʱ 
        Windows NT 4.0   Dcom Configuration
    Manager  ֱ  ʹ á  Windows 95  
    www.Microsoft.com  Dcom95.exe Dcom95cfg.exe   У
      Dcom Configuration Manager ע  Ҫ     
     

    ----      ߣ  ʵ     ܣ 

   1.   ʱ              Զ
      ̡             Զ    
   2.  ʱ          װ λ á 

    ----          װ   

   1.ʹ Setup Wizard  Ҫ  ָ Project    
       ·   ָ     װ  򡱡 
   2.  롰Share Active Application   ʱ ѡ 
      ? װ Ϊ һ         ׼  ʹ 
      Remote Automation      ѡ Yes"  ʹ
      Dcom ѡ No   ʹ Remote Automation
      RemAuto Connection Managerracmgr32.exeRemote
      Automation Managerautmgr32.exe       
      װ   ڡ 

    ----         װ   

   1.ʹ Setup Wizard  Ҫ  ָ Project    
       ·   ָ     װ  򡱡 
   2. 롰Active X     ʱ Add Remote  Ŧ
      ָ        Ӧ vbr       
        Object Id  ע   Ϣ 
   3. ǣ   Remote Connection Details   
       ѡ  ʹ  Remote automation DCOM    
             ʹ Remote Automation  
      ȷ  ͨ Ѷ Э 飬 TCP/IP ȡ  ֤     
      ֤         ͨ Ѷ   ȫ ԡ   һ
        Ϊ     ⣬ Ϊ     䣬 ѡ None
       ɡ 
   4. ءActive X Server Components  档    
        ʹ    Զ      һ  롣  
            Add Local һ һ  롣 ע 
      ⣬ ϵ ͳ ȱ ʡ   һ Щ        
       Ҫ  ͬ һ      Զ       
          

    ġ  װ  ʹ  

    ---- Windows NT 4.0 ֧ DCOM  ֱ   װDCOM   ʽ
    Ӧ á  Windows 95  Ҫ  װ      ֧ 
    DCOM   ʽ Ӧ á Windows 95  ֱ   װRemote
    Automation Ӧ á 

    ---- Remote Automation ģ ʽ: 

    ----               װ  Ӧ 
         ˣ Ҫ   Automation Manager
    Autmgr32.exe  װ            ϵ 
    ͳ Ŀ ¼ £         ӡ   ģ ʽ 
      ϵ ͳ Ҫ   ͣWindows 3.1 , Windows95 , Windows
    NT           ˡ 

    ----        ȫ         Щ 
              ӡ   ϵ ͳ    
        ȫ    ʩ    ѧ ϰ ʱ    
       

    ----       Remote Automation Connection
    ManagerRACMGR32.exe    ѡ  Ӧ Server  
      Client Access  Ŀ £ ѡ Allow all remote
    creates  

    ----        װ   ǰ     ۡ 
    Remote Automation Connection ManagerRACMGR32.exe 
    Server Connection  Ŀ £      ʱ    
          λ á 

    ---- Remote automation   ģ ʽ        
    ԣ   ȫ  Ҫ      ϣ   ʹ   ģ 
    ʽ 

    ---- DCOM ģ ʽ 

    ---- Ҫ  DCOM Ӧ ã       ʹ Windows NT
    Server  Windows NT Workstation     ʹ Windows
    NT Windows95   Ҳ   ʵ  Ӧ    ԣServer
    Component Ҫ        ԣ һ     ר 
       ϡ 

    ----        װ    Ҫ ȷ RPC Service
       ġ           ֮ ǰ   Ҫ
        Ȩ ޡ 

    ---- Ϊ     䣬       

       1. Dcomcfg.exe   ϵ ͳ Ŀ ¼ £ 
       2.ѡ   Ӧ     Properties 
       3.Location  Ŀ £  ΪRun app on this computer
           Security  Ŀ £ ѡ     ȫ ԣ  
          Ȩ  Everyone Full Control  

    ----        ϣ ͨ Dcomcfg.exe Location
     Ŀ £   ָ         װ λ á 

    ---- Windows 95   DCOM Ӧ      ǣ 

    ----   ʹ Windows95    ˣ Ӧ VB5.0   
     www.microsoft.com       Dcom95.exe ,
    Dcm95cfg.exe  װ         ɡ 

    ---- Server  ʹ Windows 95       ⣺ 

   1. ȫ      ơ 
   2.Ӧ   Startup   Server       
       
   3. RPCSS.exe          ӡ 
   4. Server Component  һ Class  û    
          ʱ      ֹ  ǣWindows 95
      û         ơ  ԣ Ҫ  ֤Server
      Component      ж ء   ǣ Server
      Component    һ FormVisible ΪFalse  
      Form   
   5.Ӧ VB5.0     www.microsoft.com    
        Dcom95.exe , Dcm95cfg.exe  װ    
         
   6.    ע  HKEY_LOCAL_MACHINE\ Software
      \Microsoft \OLE \Enable Remote connection  ΪY"
          ֡Run Time Error, Active Component
      Cannot Be Create  
   7. ͬ Windows NT  һ   Dcomcfg.exe   
       á 


: 
        СʹAPIRegSetValueExRegQueryValueExעʱ 
    ֵ趨Ϊַʵʷӳעеȴ룬Ƿ 
    UniCodeйأν? 
                                    - θ! 

>:
>   ڳе "ر Windows"Ի?
>
>Ӧ:
>    ûбҪHook. Win95 ShellδһͿ.ܼ򵥵.
>    ҲԼAPIд.
>
>    ӦĻӦ:
>        ôʲôأ˵һлл


Ӧ:
    Լ⣺ SHShutDownDialog,
Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal YourGuess
As Long) As Long
                                - Prisoner


:
    ظҵ⣺VB״Ĵ?˭֪PhotoShopͼƬļ
    תΪĹߣֹߣҲ֪֡
                                        - Prisoner

>:
>    λVB֣
>        ǰյVBForumsһ˵APIעġ
>    CreateKeyExãSetValueExRegQueryEx÷ҲǺ
>    ٴϸ˵磺ѯ޸
HKEY_LOCAL_MACHIN\SoftWare\Microsoft\Windows\CurrentVersionµ
RegisteredOwner,
>    βʹõVB5ҵ棬лл
>                                     - MiniTiger

мregistryӣҪţprisoner@163.net
                                        - Prisoner


:
    VBʵ Outlook Express ť λ
       ̡ Please mail to me: einolda@mail.sc.cninfo.net
                                - einolda
Ӧ:
    ԹActiveBarҲҪġwww.datadynamics.com
                                - Prisoner

:
    VB5 û CTRL+DEL+ALT жӦó
                                  THANKS
Ӧ:
    ۹⣬Win95£ʹϵͳΪĳ
    ScreenSaverӶʹCtrl+Del+AltЧϸҲ֪
    Microsoft KnowledgeBasewww.microsoft.com/support/kb/ ),
    screensaverؼֲѯNT¸÷Ч
                                - Prisoner


:
    λ:
        Ǻ,ǳVB,,л!
    һ:һҽϵͳ,粡ȡҩ,Աҩ
        Ҫȡ,ڱ(ͬһ)ʾҩ,۸񼰲Ҫ
        Ľ,ӡ,ϣһ,л!
    :εһ.
        Сּ,ְæмʱָ,СܾϹ! 
                             E-Mail: syjof@ihw.com.cn 

:
   λãһ⣬VC++1.52һDLL16λVC/BC£16λ
   ʹãVB5µʱERROR 48ҲDLLļǷ32λ
   ԭ򣿣
                                    - Ͷ  98513



˶ http://server.com/WebApps/mail-list-unsubscribe.cgi?id=4093


