Skip to main content

Problem:

Example of using an Indexed file to track multiple executions of the same program

Resolution:

INTRODUCTION

==========

This project uses an indexed file to track multiple executions of the same program.

SOURCE FILES:

=========

Program Files         Description

-------------------     -----------------------------------------------------------

AppNmbrs.APP      NetExpress project file

Snapa.CBL             COBOL source code

Snapd.CBL             COBOL source code

Snapm.CBL            COBOL source code

Snapq.CBL             COBOL source code

Copy Files:

-------------------     -----------------------------------------------------------

FileStat.CPY

SnapFile.CPY

SnapParm.CPY

Snpflenm.CPY

Help Files:

-------------------     -----------------------------------------------------------

Readme.TXT          This file

OPERATION:

========

Each use of the same program is numbered, and when the last use is closed, the indexed file is deleted. The Release version is a static linked executable that will run from a regular DOS Prompt.

1. Load AppNmbrs.APP into Net Express

2. Click Project > Update All Dependencies

3. Click Project > Rebuild All

4. Open several DOS Prompts

5. CD to the project's RELEASE subdirectory

6. Start the program from each DOS prompt

7. Terminate each DOS prompt

==========================================================

Keywords: demonstration, sample, example, demo, win32 api, appnmbrs.zip

demo.ex

demo.me

demo.ne

Attachments:

appnmbrs.zip

Old KB# 4158