home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / del2faq.zip / ALLFAQ.ZIP / DELSEC08.FAQ < prev    next >
Text File  |  1996-02-07  |  4KB  |  111 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.  
  10.  
  11. Q:  "What files do I need to distribute with my application when I 
  12. use VBXs on my forms?"
  13.  
  14. A:  Delphi's license lets you distribute BIVBX11.DLL(located in the 
  15. \Windows\System directory), which is required when you use 
  16. VBXs. The only other thing you need is the license to 
  17. distribute the VBXs, which you'd get from the VBX vendor. And, 
  18. of course, the VBX and VBX associated files.
  19.  
  20.  
  21. Q:  "My VBX will not load or it crashes Delphi when I try to 
  22. load it.  What's wrong?"
  23.  
  24. A:  Most likely the VBX you are trying to use is a Visual Basic 
  25. 2.0 or 3.0 compatible VBX.  Delphi can only use VB 1.0 
  26. compatible VBXs.
  27.  
  28.  
  29. Q:  "The vendor of the VBX I use told me that the VBX detects 
  30. the VB Version from the environment and adjusts itself to fit 
  31. the VB version, so it should not be making any VB 2.0 
  32. or 3.0 calls.  Why is it still not working?" 
  33.  
  34. A:  For some VBXs it will work and for others it will not.  
  35. Sorry for such an unclear answer, but this is something we are 
  36. looking into and will have more information later.  At this 
  37. time if your VBX will not load you can a) not use it or b) 
  38. write your own component wrapper for it leaving out the 2.0 and 
  39. 3.0 calls. 
  40.  
  41.  
  42. Q:  "Since installing Delphi, a few VB apps I have are having 
  43. problems.  What's going on?"
  44.  
  45. A:  From the INSTALL.TXT file located in ..\DELPHI directory:
  46.      _____________________________________________________________ 
  47.      |     
  48.      |    2. BEFORE YOU RUN SETUP
  49.      |    -----------------------
  50.      |    .
  51.      |    .
  52.      |    .
  53.      |    o VBX controls - SETUP installs the following VBX files
  54.      |      into the \WINDOWS\SYSTEM directory that will overwrite any
  55.      |      existing VBX files with the same name:
  56.      |        
  57.      |        GAUGE.VBX
  58.      |        SWITCH.VBX
  59.      |        PICT.VBX
  60.      |        CHART2FX.VBX
  61.      |        
  62.      |      Before running SETUP, check for filename collisions and backup
  63.      |      your existing copies of these files.
  64.      |          
  65.      |    .
  66.      |    .
  67.      |    .
  68.      |    ______________________________________________________________ 
  69.  
  70. The original files that may have been overwritten could have 
  71. been part of your VB application.  If this is the case do the 
  72. following steps (we will use GAUGE.VBX as an example):
  73.  
  74.  1)  Go into Delphi and Remove the GAUGE.VBX from the Component 
  75.     Palette:
  76.    a) Select Options | Install Components from the menu.
  77.    b) Select(Highlight) the GAUGE from the Installed Units list.
  78.    c) Click on the REMOVE button (it will disappear from the 
  79.     list).
  80.    d) Click on the OK button.  Delphi will now re-compile the 
  81.     component library.
  82.    e)  Exit Delphi.
  83.     
  84.  2)  From the File Manager Rename the GAUGE.VBX to something 
  85.     like BIGAUGE.VBX.
  86.     
  87.  3)  Go back into Delphi and Add the BIGAUGE.VBX to the 
  88.     Component Palette:
  89.    a) Select Options | Install Components from the menu.
  90.    b) Click on the VBX button.
  91.    c) Select the VBX you want (BIGAUGE.VBX in this case).
  92.    d) Click on the OK button in the Install VBX File Dialog Box. 
  93.    f) Click on the OK button in the Install Components Dialog 
  94.     Box.  Delphi will now re-compile the component library.
  95.     
  96.   4) Copy the original VBX (GAUGE.VBX) that your VB application 
  97.     uses to the \Windows\System directory.
  98.     
  99. This should fix any conflicts.
  100.  
  101. Q:  "After installing Delphi, every time I start NetCom's 
  102. NetCruiser application (which is a VB app), it comes up with 
  103. 'NETCRUZ An error has occurred in your application.  If you 
  104. choose ignore..'  What happened?"
  105.  
  106. A:  Delphi installed a "GAUGE.VBX" over the one from VB. The 
  107. one that Delphi installed is incompatible with the VB version 
  108. (See above Q&A).
  109.  
  110.  
  111.