Skip to main content

Variables in a .def file used by an ActiveX control

  • August 1, 2012
  • 2 replies
  • 0 views

I have the following Method in a .def file used by an activex control:

      * Open_document      
           METHOD, 1610809472, @Open_document,       
              "BSTR*" @strURL, TYPE 16392,      
              "boolean*" @openEntireDoc, TYPE 16395       
              OPTIONAL 2

The 2 parameters are optional. It works fine when I provide the first like this:

           MODIFY HTML-handle @Open_document ("C:\\BOOK\\EZdata\\DataPackage.html").

The problem comes with the second parameter. It fails if I use a 1 or a "1" or "TRUE" or a pic 9.

I am not sure what a "boolean*"  TYPE 16395 is. A boolean TYPE 11 will let you use a simple 1 or 0.

Dose any one know how I am supposed to provide the second parameter?

Thanks,
Steve

 

2 replies

  • Author
  • Rocketeer
  • 19312 replies
  • August 2, 2012

I have the following Method in a .def file used by an activex control:

      * Open_document      
           METHOD, 1610809472, @Open_document,       
              "BSTR*" @strURL, TYPE 16392,      
              "boolean*" @openEntireDoc, TYPE 16395       
              OPTIONAL 2

The 2 parameters are optional. It works fine when I provide the first like this:

           MODIFY HTML-handle @Open_document ("C:\\BOOK\\EZdata\\DataPackage.html").

The problem comes with the second parameter. It fails if I use a 1 or a "1" or "TRUE" or a pic 9.

I am not sure what a "boolean*"  TYPE 16395 is. A boolean TYPE 11 will let you use a simple 1 or 0.

Dose any one know how I am supposed to provide the second parameter?

Thanks,
Steve

 

when i need Boolean i use for example somethin like this:

modify  xls-sheet @PageSetup::@Zoom = 0 AS VT-BOOL

VT-BOOL is in activex.def defined.


  • Author
  • Rocketeer
  • 19312 replies
  • August 2, 2012

I have the following Method in a .def file used by an activex control:

      * Open_document      
           METHOD, 1610809472, @Open_document,       
              "BSTR*" @strURL, TYPE 16392,      
              "boolean*" @openEntireDoc, TYPE 16395       
              OPTIONAL 2

The 2 parameters are optional. It works fine when I provide the first like this:

           MODIFY HTML-handle @Open_document ("C:\\BOOK\\EZdata\\DataPackage.html").

The problem comes with the second parameter. It fails if I use a 1 or a "1" or "TRUE" or a pic 9.

I am not sure what a "boolean*"  TYPE 16395 is. A boolean TYPE 11 will let you use a simple 1 or 0.

Dose any one know how I am supposed to provide the second parameter?

Thanks,
Steve

 

Thanks, that seemed to do the trick.