home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!sequent!muncher.sequent.com!furballs
- From: furballs@sequent.com (Paul Penrod)
- Subject: Re: Recursion and Windows programming
- Message-ID: <1992Sep9.072827.29780@sequent.com>
- Sender: usenet@sequent.com (usenet )
- Nntp-Posting-Host: crg8.sequent.com
- Organization: Sequent Computer Systems Inc.
- References: <1992Sep8.111139.8820@iccgcc.decnet.ab.com>
- Date: Wed, 9 Sep 92 07:28:27 GMT
- Lines: 39
-
- In article <1992Sep8.111139.8820@iccgcc.decnet.ab.com> schmidtg@iccgcc.decnet.ab.com writes:
- >
- >
- >I am in the process of converting a DOS program to run in the MS Windows
- >environment and I am having some difficulties. The program uses a recursive
- >search routine to find the solution to a problem. The program also must do
- >some screen output along the way. The problem that I am having is in breaking
- >up the recursive algorithm so that it can be executed piece-meal in the
- >Windows event driven execution paradigm. I want to run the algorithm
- >during idle time processing and so I must only execute a portion each time.
- >Since a recursive algorithm uses the machine stack, I don't know of an easy
- >way to save context and restore it between processing without getting down
- >and dirty. I'm sure I'm not the only one who has encountered this problem.
- >How have others solved it?
- >
- >
- >I hope this isn't an FAQ, my humble apologies if it is.
- >
- >
- >Regards,
- >
- >
- >-- Greg Schmidt schmidtg@iccgcc.decnet.ab.com
- >
-
- Try using a state machine to describe the process, since that is
- much closer to Windows programming than Recursion is. (No acedemic
- arguments on theory please!). From a practical stand point, I have
- been able to break up and parcel out for execution most any
- algorythym I have needed in the past, especially for real time
- process control, and background processing.
-
- Paul
-
- --
- --------------------------------------------------------------------
- Bureaucracy: noun, plural - Bureaucracies.
- The process of turning energy into solid waste.
- ---------------------------------------------------------------------
-