Click to See Complete Forum and Search --> : OLE_XPOS_PIXELS


Frekie
February 9th, 2000, 06:17 AM
Hey -
We are working on an Automation Application based on
The Kodak Image Control (Formerly Wang Image).
In Vb eveything works fine.
Our client wishes to integrate the Control into his own software.
This software enables us to import the required ocx but does
not support all variable types.

Our problem then is the following call :
void Draw(
OLE_XPOS_PIXELS Left,
OLE_YSIZE_PIXELS Top,
[optional] VARIANT Width,
[optional] VARIANT Height);

OLE_XPOS_PIXELS and OLE_YSIZE_PIXELS are causing the problem.
Any idea where we can find info on these ? Is there a typelibrary that exports them ?
Thanks in advance.
Frederik

Chris Eastwood
February 9th, 2000, 08:41 AM
According to the OLECTL.H header file that comes with VC++6, the OLE_XPOS_PIXELS is a typedef to a long:


/////////////////////////////////////////////////////////////////////////////
// Typedefs for standard scalar types
typedef long OLE_XPOS_PIXELS;
typedef long OLE_YPOS_PIXELS;
typedef long OLE_XSIZE_PIXELS;
typedef long OLE_YSIZE_PIXELS;




- You should just be able to get away with a VB long here.


Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb