Menu

VXPLib DOESN'T WORK WITH C++ COMPILER!?!

Help
jon ozborn
2004-02-23
2004-02-29
  • jon ozborn

    jon ozborn - 2004-02-23

    I've downloaded the VXPLib and tried to import library VXPLib into my C++ Builder environment by choosing "Project -> Import type library", just to get several errors after Borland tried to compile and install the project.

    What am I doing wrong? PLEASE HELP!!!

     
    • Vitaly Tomilov

      Vitaly Tomilov - 2004-02-29

      Using VXPLib in Borland C++ Builder 6

      Remark: It is assumed that VXPLib has been successfully registered on your PC.

      1.    With your project open in BCB6, select menu Select menu Project\Import Type Library
      2.    From the list of COM objects select VXPLibrary from www.Tooltips.NET (Version 1.0) and press button Install
      3.    Then in confirmation press Ok
      4.    After that you will be asked to install the package. Press Yes.

      The compiler will complain in three places where it inserts some text in the wrong way. VXPLib has some multi-line text in its type library using symbol \n, which BCB6 fails to import correctly, i.e. it doesnt add // before such text. Simply keep pressing Install and wherever BCB6 complains on the text just add // before such line. This should be 3 times or so.

      After that the package will compile and install correctly, and you get all COM interfaces of VXPLib on tab ActiveX.

      Note, that BCB has changed name of property windows into Windoz, which you can whether change manually to insist on windows or just leave it the way it is. If you leave it, then, for example, adding a tooltip to the main form will be:

      tt->Windoz->Add((long)Form1->Handle, SysAllocString(L"Attaching tooltip<br>to the main form."));

      In the example above we assumed that we placed an instance of IVXPTooltipManager on the form and called it tt.

       
    • Vitaly Tomilov

      Vitaly Tomilov - 2004-02-29

      Hi jjozy,

      It will be our first modification to remove symbols '\n' from the IDL file to avoid those errors in Borland products.

      Regards,
      Vitaly

       
    • Vitaly Tomilov

      Vitaly Tomilov - 2004-02-29

      This modification has been made.

      Regards,
      Vitaly

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.