Project Hook class and INI file

The place where ProMatrix users can post coding tips and utilities they create.

Project Hook class and INI file

Postby JessicaLawson » Sun Jun 13, 2010 4:26 pm

I posted this here sometime in the past, but it is gone, so I will post it again.

The attached zip file contains a sample INI file and a PRG representation of a project hook class. The code will not work as is unless the user has the ProSysPlus libraries. However, the calls to the PSP functions are pretty much self explanatory, so a user could figure out how to do the same things with VPM or native VFP. In particular, I used PSP Library functions to close tables and to read from an INI file.

The class structure assumes the PSP parent classes, so, a user would need to define the class within the available class hierarchy. Nothing exotic, just an understanding of class structures and hierarchies is required.

The code in the ProjectHook class will add the specified DBCs at build time when an EXE is being built, and remove them after the build. If the DBC is in the project all the time, the project opens the DBCs and prevents certain functions when exclusive use of the DBC is required. Adding and removing them at build time solves the problem.

Steve Buttress
ProMatrix MVP - Life
ProSysPlus Developer
Microsoft Certified Professional

"Above all, we must realize that no arsenal, or no weapon in the arsenals of the world, is so formidable as the will and moral courage of free men and women. It is a weapon our adversaries in today's world do not have." RR - Jan. 21, 1985
You do not have the required permissions to view the files attached to this post.
Posts: 79
Joined: Sun Jun 13, 2010 1:23 pm

Return to ProMatrix User Library

Who is online

Users browsing this forum: No registered users and 1 guest