home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161b.iso / full / delphi / DELPHI16 / TECHINFO / DELPHI / FAQS / DELSEC08.FAQ < prev    next >
Encoding:
Text File  |  1995-08-24  |  4.8 KB  |  129 lines

  1. SECTION 8 - VBX Controls
  2.                                     
  3. This document contains information that is most often provided
  4. to users of this section.  There is a listing of common
  5. Technical Information Documents that can be downloaded from the
  6. libraries, and a listing of the five most frequently asked
  7. questions and their answers.
  8.  
  9. Technical Information Documents related to Delphi VBX Contorls:
  10.  
  11. TI2841  Delphi Consultants and Training Centers
  12.  
  13. ----------------------------------------------------------------
  14.  
  15. Q. "What files do I need to distribute with my application when I 
  16.    use VBXs on my forms?"
  17.  
  18. A. Delphi's license lets you distribute BIVBX11.DLL(located in the 
  19.    \Windows\System directory), which is required when you use 
  20.    VBXs. The only other thing you need is the license to 
  21.    distribute the VBXs, which you'd get from the VBX vendor. And, 
  22.    of course, the VBX and VBX associated files.
  23.  
  24. ----------------------------------------------------------------
  25.  
  26. Q. "My VBX will not load or it crashes Delphi when I try to 
  27.    load it.  What's wrong?"
  28.  
  29. A. Most likely the VBX you are trying to use is a Visual Basic 
  30.    2.0 or 3.0 compatible VBX.  Delphi can only use VB 1.0 
  31.    compatible VBXs.
  32.  
  33. ----------------------------------------------------------------
  34.  
  35. Q. "The vendor of the VBX I use told me that the VBX detects 
  36.    the VB Version from the environment and adjusts itself to fit 
  37.    the VB version, so it should not be making any VB 2.0 
  38.    or 3.0 calls.  Why is it still not working?" 
  39.  
  40. A. For some VBXs it will work and for others it will not.  
  41.    Sorry for such an unclear answer, but this is something we are 
  42.    looking into and will have more information later.  At this 
  43.    time if your VBX will not load you can a) not use it or b) 
  44.    write your own component wrapper for it leaving out the 2.0 and 
  45.    3.0 calls. 
  46.  
  47. ----------------------------------------------------------------
  48.  
  49. Q. "Since installing Delphi, a few VB apps I have are having 
  50.    problems.  What's going on?"
  51.  
  52. A. From the INSTALL.TXT file located in ..\DELPHI directory:
  53.    _____________________________________________________________ 
  54.    |     
  55.    |    2. BEFORE YOU RUN SETUP
  56.    |    -----------------------
  57.    |    .
  58.    |    .
  59.    |    .
  60.    |    o VBX controls - SETUP installs the following VBX files
  61.    |      into the \WINDOWS\SYSTEM directory that will overwrite any
  62.    |      existing VBX files with the same name:
  63.    |        
  64.    |        GAUGE.VBX
  65.    |        SWITCH.VBX
  66.    |        PICT.VBX
  67.    |        CHART2FX.VBX
  68.    |        
  69.    |      Before running SETUP, check for filename collisions and backup
  70.    |      your existing copies of these files.
  71.    |          
  72.    |    .
  73.    |    .
  74.    |    .
  75.    |    ______________________________________________________________ 
  76.  
  77.    The original files that may have been overwritten could have 
  78.    been part of your VB application.  If this is the case do the 
  79.    following steps (we will use GAUGE.VBX as an example):
  80.  
  81.    1) Go into Delphi and Remove the GAUGE.VBX from the Component 
  82.       palette:
  83.       a) Select Options | Install Components from the menu.
  84.       b) Select(Highlight) the GAUGE from the Installed Units list.
  85.       c) Click on the REMOVE button (it will disappear from the 
  86.          list).
  87.       d) Click on the OK button.  Delphi will now re-compile the 
  88.          component library.
  89.       e) Exit Delphi.
  90.     
  91.    2) From the File Manager Rename the GAUGE.VBX to something 
  92.       like BIGAUGE.VBX.
  93.     
  94.    3) Go back into Delphi and Add the BIGAUGE.VBX to the 
  95.       Component Palette:
  96.       a) Select Options | Install Components from the menu.
  97.       b) Click on the VBX button.
  98.       c) Select the VBX you want (BIGAUGE.VBX in this case).
  99.       d) Click on the OK button in the Install VBX File Dialog Box. 
  100.       f) Click on the OK button in the Install Components Dialog 
  101.          Box.  Delphi will now re-compile the component library.
  102.     
  103.     4) Copy the original VBX (GAUGE.VBX) that your VB application 
  104.        uses to the \Windows\System directory.
  105.     
  106.     This should fix any conflicts.
  107.  
  108. ----------------------------------------------------------------
  109.  
  110. Q. "After installing Delphi, every time I start NetCom's 
  111.    NetCruiser application (which is a VB app), it comes up with 
  112.    'NETCRUZ An error has occurred in your application.  If you 
  113.    choose ignore..'  What happened?"
  114.  
  115. A. Delphi installed a "GAUGE.VBX" over the one from VB. The 
  116.    one that Delphi installed is incompatible with the VB version 
  117.    (See above Q&A).
  118.  
  119. ----------------------------------------------------------------
  120.  
  121. Q. Why do I get the error 'Could not load VTSS.VBX' when my
  122.    appplication is distributed with the Formula 1 VBX that 
  123.    comes with the Borland Visual Solution Pack.  IT works fine
  124.    on my development machine.
  125.  
  126. A. The Formula 1 VBX requires the following files VTSS.VBX 
  127.    amd VTSSDLL.DLL to be distributed along with the
  128.    application. 
  129.