Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Efficient timers in Net Express or Object COBOL
Hi

I've been looking at the threads here and haven't found a clear answer
to the question:

Is there or is it possible to implement an efficient timer control,
class or algorithim in either of these products?

By efficient I mean something that does not use a hard loop and will
not eat CPU cycles. In most of the Microsoft family of Visual products
visual timer controls are part of the product offering and these seem
to be designed using system api's rather than loops so that overall
performance is not degraded.

Does Micro Focus have anything that's equivalent?

Thanks

Elliot


Report this thread to moderator Post Follow-up to this message
Old Post
eselick
05-25-06 02:55 AM


Re: Efficient timers in Net Express or Object COBOL
"eselick" <eselick@gmail.com> wrote in message
news:1148480928.355811.205830@y43g2000cwc.googlegroups.com...
> I've been looking at the threads here and haven't found a clear answer
> to the question:
>
> Is there or is it possible to implement an efficient timer control,
> class or algorithim in either of these products?
>
> By efficient I mean something that does not use a hard loop and will
> not eat CPU cycles. In most of the Microsoft family of Visual products
> visual timer controls are part of the product offering and these seem
> to be designed using system api's rather than loops so that overall
> performance is not degraded.
>
> Does Micro Focus have anything that's equivalent?

If you are on Windows and you feel up to using the Windows' API directly,
the timer objects created by the CreateTimer and CeateWaitableTimer
functions are what the MS-Visual Anything 'native' functions use (see these
functions in your Windows' API reference).

Both utilize the normal thread-switching alogrithms of the Windows Operating
system, essentially checking timer status at the same time it is checking
that another thread may run.. that is, there is no "looping" other than what
the operating system does anyway to parcel out CPU time amongst all users.

No, I don't know how to implement these using the Microfocus / Net Express
product(s), but I'm sure you can make WinAPI calls, so there simply must be
a way to do it; perhaps someone here can point you in the right direction.

(FWIW, IMNSHO Microsoft Visual Anything is designed for those less capable
than the audience here).

--
Michael Mattias
Tal Systems, Inc.
Racine WI
mmattias@talsystems.com







Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
05-25-06 02:55 AM


Re: Efficient timers in Net Express or Object COBOL
Thanks Michael

Are you aware of any example code for doing API calls in general in Net
Exress?

Elliot


Report this thread to moderator Post Follow-up to this message
Old Post
eselick
05-25-06 02:55 AM


Re: Efficient timers in Net Express or Object COBOL
"eselick" <eselick@gmail.com> wrote in message
news:1148487127.608914.235600@i39g2000cwa.googlegroups.com...
> Thanks Michael
>
> Are you aware of any example code for doing API calls in general in Net
> Exress?

Nah.

I ain't done no COBOL for more than five years, and all that was procedural
"batch-type" or "console display-accept" type code.

But if you can figure out how to call a standard DLL you can do it, because
that's all the WinAPIs are, a bunch (make that, "a **WHOLE** bunch) of
functions in a bunch of DLLs.

That said, if you are hooking into window procedures, then you may have to
watch out for 'compiler-specific' quirks... much as you have to do with
Microsoft Visual Anything.

(Adding a little shameless self-promotion)...let's say find what you need
for calling a function in a DLL, but are just not comfortable using all the
system objects... you could always contract with someone who does understand
those things, who could create for you a DLL with all the functions you need
using the syntax you want.... someone like, well, myself.

MCM








Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
05-25-06 02:55 AM


Re: Efficient timers in Net Express or Object COBOL
"eselick" <eselick@gmail.com> wrote in message
news:1148487127.608914.235600@i39g2000cwa.googlegroups.com...
> Thanks Michael
>
> Are you aware of any example code for doing API calls in general in Net
> Exress?

Hi Elliot,

If you look under the Micro Focus SupportLine site at
http://supportline.microfocus.com/e...mp.asp#Win32API ,
you will find a variety of examples of calling Windows APIs. (You may need
to register/login to access this page).

Hope this helps.

SimonT.



Report this thread to moderator Post Follow-up to this message
Old Post
Simon Tobias
05-25-06 02:55 AM


Re: Efficient timers in Net Express or Object COBOL
Thanks for the help everyone.

I think I'm going to run my COBOL program from an external scheduler.
Why reinvent the wheel?

Elliot


Report this thread to moderator Post Follow-up to this message
Old Post
eselick
05-25-06 11:55 PM


Re: Efficient timers in Net Express or Object COBOL
"eselick" <eselick@gmail.com> wrote in message
news:1148575967.527613.67520@j73g2000cwa.googlegroups.com...
>
> I think I'm going to run my COBOL program from an external scheduler.
> Why reinvent the wheel?

Because Real Men don't need no stinkin' external schedulers.

MCM




Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
05-25-06 11:55 PM


Re: Efficient timers in Net Express or Object COBOL
Oh well I guess I'll just have to email you a nasty reply in hex ...

Michael Mattias wrote:
> "eselick" <eselick@gmail.com> wrote in message
> news:1148575967.527613.67520@j73g2000cwa.googlegroups.com... 
>
> Because Real Men don't need no stinkin' external schedulers.
>
> MCM


Report this thread to moderator Post Follow-up to this message
Old Post
eselick
06-01-06 11:55 PM


Re: Efficient timers in Net Express or Object COBOL
"eselick" <eselick@gmail.com> wrote in message
news:1149171778.449367.202680@c74g2000cwc.googlegroups.com...
> Oh well I guess I'll just have to email you a nasty reply in hex ...

How nasty can you get restricted to the letters A, B, C, D, E and F?

(oh-oh, that was asking for it, wasn't it?)

MCM






Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
06-01-06 11:55 PM


Re: Efficient timers in Net Express or Object COBOL
eselick wrote:
> Oh well I guess I'll just have to email you a nasty reply in hex ...
>
> Michael Mattias wrote:
> 
>
>

Is that the same as sending a hex by email?

Donald
;< )


Report this thread to moderator Post Follow-up to this message
Old Post
Donald Tees
06-01-06 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:34 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.