Skip to main content

Problem:

This demo illustrates using Win32 API function Winexec to start Notepad

Resolution:

INTRODUCTION

==========

The program illustrates the use of the Windows API WinExec. This function runs the specified application. In this example, it runs Notepad.exe. This function is provided for compatibility with earlier versions of Windows. For Win32-based applications, use the CreateProcess function.

SOURCE FILES:

==========

Program Files     Description

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

WinExec.APP     NetExpress project file

WinExe.CBL       COBOL source code

Help Files:

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

Readme.TXT      This file

OPERATION:

========

Consider the following steps:

1. Load GST.APP into Net Express

2. Click on Project > Update All Dependencies

3. Click on Project > Rebuild All

4. Run or Animate the project

NOTE:

====

The call to COB32API.DLL is only necessary if the program is animated or run in INT.

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

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

demo.ex

demo.ne

Attachments:

winexec.zip

Old KB# 4191