DLL Declaration v2 (OpenInsight 32-bit Specific)
At 10 MAR 2004 03:42:07AM Irina M Kamenskaya wrote:
Hello, I have a problem when trying to declare API function in OI32. As far as I can understand, I should use DLL. The function I need is named "GetSystemTime", I think it's in KERNEL32.
I've tried to declare this DLL in SYSPROCS using OI documentation. But could you tell me what to do with the parameter of this function? It's a structure. How will OI understand this type of value? And what kind of value this function returns?
So, there're my results in creating prototype record:
KERNEL32
VOID STDCALL GetSystemTime(SYSTEMTIME)
After running the DECLARE_FCNS I got the follow: "The function is omitted".
P.S. And could you explain what I have to do with this structure if this script work? How to define this type in OI stored procedure?
Thank you..Colin
At 10 MAR 2004 06:04AM The Sprezzatura Group wrote:
This is a rather large topic to be covered here as it involves converting OpenInsight arrays to C structures, passing pointers to structures, and other things too complicated to get into using this medium.
We suggest going to the New Orleans Conference where this will be covered in great detail.
We highly recommend everyone attend for this talk and for others.
The Sprezzatura Group
World Leaders in all things RevSoft
At 10 MAR 2004 09:11AM The Sprezzatura Group wrote:
As an aside, why do you need the time and date this accurately? We assume that Time() and Date() don't work accurately enough for you?
The Sprezzatura Group
World Leaders in all things RevSoft
At 10 MAR 2004 04:16PM Steve Smith wrote:
Can you simply use
TIME()
DATE()
OCONV(TIME(),'MTHS')
OCONV(DATE(),'DE')
Or are you trying to synchronize with a file server / time server?
Steve
At 11 MAR 2004 01:48AM Irina M Kamenskaya wrote:
Hello again! Yes, this problem seems strange, so I have to explain. Actually the problem was to place the clock in the active OI form. It's just a piece of design, but this problem is rather interesting.
I found out that the one way to make a clock is regulary calling of the function which returns system time. But because of it the form is automatically refreshed every sec. So, user can do nothing with the form. I supposed this problem could be decided if I used Win API.
Could you tell me smth about this subject?
Thank you..
At 11 MAR 2004 03:14AM Donald Bakke wrote:
If you place a Yield() statement within the looping process that updates your clock you might find that the end user will have enough control over the form.
At 11 MAR 2004 04:40AM The Sprezzatura Group wrote:
The simplest way to do this is
RedisplayTime = NbrSeconds * 1000
RetVal= Set_Property( @Window, 'TIMER', RedisplayTime )
In your timer event, you simply need something like
RetVal=Set_Property( TimeControl, 'TEXT', TimeDate() )
and the workstation's system time will appear on that control.
There's no real need to play around with API structures and all that.
The Sprezzatura Group
World Leaders in all things RevSoft
At 11 MAR 2004 10:41PM Irina M Kamenskaya wrote:
Thank you for the answers, I will try ..
At 11 MAR 2004 10:42PM Irina M Kamenskaya wrote:
Thank you for the answers, I will try ..
At 12 MAR 2004 01:09AM Steve Smith wrote:
It would be much easier if Windows displayed a clock on the screen.
At 12 MAR 2004 03:34AM Gary Gnu wrote:
At 12 MAR 2004 05:55AM Steve Smith wrote:
Isn't that the number of reboots until meltdown?