Skip to main content

Animating .EXE and .DLL programs that are in separate projects and folders.

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Animating .EXE and .DLL Debug Build Programs that are located in multiple Project folders:

Resolution:

Animating .EXE and .DLL Debug Build programs located in multiple Project folders.

The directory structure for this example is as follows:

C:\\Animation\\ApplicationTrigger

            \\DynamicLibrary1

            \\DynamicLibrary2

The ApplicationTrigger folder contains the project for the main program, AP470T01.EXE. The DynamicLibrary1 folder contains the project for the AP470D01.DLL and the DynamicLibrary2 folder contains the project for the AP470D02.DLL. The AP470D01.DLL file contains two sub programs, AP470S01 and AP470S02, which are called by the main program AP470T01.EXE. The  AP470D02.DLL file also contains two sub programs, AP470S03 and AP470S04, which are called by the sub programs in AP470D01.DLL.

The projects are grouped within a common root folder for convenience. The projects could be located on different drives or independent folder structures.

All of the projects have a Debug Build and the programs created are .EXE and .DLL files. The executable programs are located in their respective DEBUG folders.

The Project Properties of the main program (AP470T01.EXE) have to be modified to support the Animation of all the programs. Open the ApplicationTrigger project, Click Project (menu), Properties (button) and IDE (button). The PATH, COBDIR and COBIDY environment variables have been set as follows:

PATH

C:\\Animation\\ApplicationTrigger;

C:\\Animation\\DynamicLibrary1\\DEBUG;

C:\\Animation\\DynamicLibrary2\\DEBUG;%PATH%

COBDIR

C:\\Animation\\ApplicationTrigger;

C:\\Animation\\DynamicLibrary1\\DEBUG;

C:\\Animation\\DynamicLibrary2\\DEBUG;%COBDIR%

COBIDY

C:\\Animation\\ApplicationTrigger;

C:\\Animation\\DynamicLibrary1\\DEBUG;

C:\\Animation\\DynamicLibrary2\\DEBUG;%COBIDY%

These environment settings are essential. You will need to rebuild the AP470T01.EXE program before you can start the Animation. You can also Rebuild the DLL Projects. Start the Animation with a right mouse click on the AP470T01.EXE file name and click the Animate button.

If you receive a 173 error your PATH is not correct. If you receive a semaphore error your COBIDY is not correct.

Please note that there are two example projects behind the Related tab. The zip files are to be unzipped to the root of your C drive. They create an Animation folder and an Animation2 folder respectively. Animation illustrates .EXE and .DLL Animation. Aniation2 illustrates .EXE and .INT

Animation.

Attachments:

Animation.zip

Old KB# 5812

0 replies

Be the first to reply!