Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OCX Coding Question
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
OCX Coding Question
Miscellaneous
Thread ID:
00079526
Message ID:
00079526
Views:
131
I am using an OCX (SCHEDOCX.OCX) from AddSoft to create a scheduling application. So far it works well, and the basics of the application are completed. Here is my problem. The control draws "BARS" for scheduled appointment, and to find out what data that "BAR" represents, their tech support (who don't know VFP) told me to use the mousemove event of the control (giving me the x,y coordinates) and then the controls PointToBar() method.

From the Documentation:
(Example)
short iBarPos=SchedOcx1.PointToBar(short x, short y, short FAR* iTimeBlock)

Here is my code:
LPARAMETERS button, shift, ix, iy
lnBarPos=0
lnTimeBlk=0
lnBarPos=this.PointToBar(ix,iy,lnTimeBlk)

The result is I get an OLE datatype mismatch on the 3rd Parameter. According to them, it should set lnTimeBlk to the integer value of the time block. Apparently this is supposed to be a "pointer" to an integer value.

The Visual Basic Example is:
iPosition=SchedOcx1.PointToBar(100,50,iTimeBlock)

The Visual C++ Example is:
iPosition=pScheduleOCX->PointToBar(100,50,&iTimeBlock);

Any help with this would be greatly appreciated.

Kirk
cqi_provider@email.msn.com
Next
Reply
Map
View

Click here to load this message in the networking platform