home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 49 / cda49.iso / Indice / Utils / bdeinst.txt < prev    next >
Encoding:
Text File  |  1999-07-26  |  1.6 KB  |  54 lines

  1.  
  2. To use the BDE in an ActiveX control, deploy the BDEINST.CAB file:
  3.  
  4. 1. With your ActiveX project open in the IDE, choose
  5. Project | Web Deployment Options. Select the Project
  6. tab and check Deploy Additional Files.
  7.  
  8. 2. Select the Additional Files tab. Click Add, then select
  9. BDEINST.CAB (in the ...\BDE directory). Click OK.
  10.  
  11. 3. Later, when you choose Project | Web Deploy, Delphi/C++Builder
  12. generates an .INF file for your project. To use BDEINST.CAB, you'll
  13. need to edit this file manually. Open the file in an editor and replace
  14.  
  15.   Bdeinst.cab=Bdeinst.cab
  16.  
  17. with
  18.  
  19.   Bdeinst.dll=Bdeinst.dll
  20.  
  21. Then replace
  22.  
  23.   [Bdeinst.cab]
  24.   file=<filename>
  25.  
  26. with
  27.  
  28.   [Bdeinst.dll]
  29.   file=http://<your server path here>/Bdeinst.cab
  30.   clsid={FB99D710-18B9-11D0-A4CF-00A024C91936}
  31.   RegisterServer=yes
  32.   FileVersion=5,1,0,4
  33.  
  34.  
  35. The example below shows an edited .INF file. Lines that have been
  36. added or changed are marked with an asterisk (*). Do not include
  37. the asterisks in your .INF file.
  38.  
  39.   ;Delphi 4-generated INF file for MyProj.ocx
  40.   [Add.Code]
  41.   MyProj.ocx=MyProj.ocx
  42.   Bdeinst.dll=Bdeinst.dll                            *
  43.   
  44.   [MyProj.ocx]
  45.   file=http://www.MyServerPath.com/MyProj.ocx
  46.   clsid={D2E04E83-041F-11D1-AA40-444553540000}
  47.   RegisterServer=yes
  48.   FileVersion=1.0.0.0
  49.   
  50.   [Bdeinst.dll]                                      *
  51.   file=http://www.MyServerPath.com/Bdeinst.cab       *
  52.   clsid={FB99D710-18B9-11D0-A4CF-00A024C91936}       *
  53.   RegisterServer=yes                                 *
  54.   FileVersion=5,1,0,4                                *