Question: Regarding Active X calls in Forms 5.0
Date: 1998/02/26
Message-ID: <34F5F0D6.E72747E3_at_gulf.uvic.ca>#1/1
Hi! I'm having some problems today ...This should be simple but...
I have an active x control on my form.
I used OLE importer to import its events ect..It just says:
PACKAGE IMAGINELib_CONSTANTS IS
SUBTYPE z_DIMAGinE IS OleObj;
SUBTYPE z_DIMAGinEEvents IS OleObj;
SUBTYPE IMAGinE IS OleObj;
END;
All I want to do is set a controls property i.e.
DisplayEngine=30;
Display Engine Can return a long which gives the current engine if you don't want to set it..But in this case I want it to be 30.
status:=IMAGinELIB.DisplayEngine(30);
In my package specs I have
FUNCTION DisplayEngine(interface OleObj) RETURN NUMBER;
And in the body I have ...
FUNCTION DisplayEngine(interface OleObj) RETURN NUMBER IS
my_new_value NUMBER;
BEGIN
Init_OleArgs(0);
my_new_value := Call_Ole_Num(interface, 49);
return my_new_value;
END;
But when I run the form I just get....
FRM-40922: An OLE error occurred: 0X80070057
Question:
1)Do you know what I am doing wrong or how to do it?
2)What does this 0X80070057 mean??
Thanks Experts. Received on Thu Feb 26 1998 - 00:00:00 CET