Products and Services

- PenRight! for Windows 1.x -

| Main | Products | Hardware | Questions | Feedback | Support | Forum | About | Index |



Questions and Answers



I have a project I wrote using PenRight! Pro for DOS and I want to import it into PenRight! for Windows. The problem is that I used PenRight! Pro for DOS to design the 'skeleton' and then wrote manually into the generated code. When I import none of the code I wrote manually into the generated code imports.
How can I import my project?

The reason the code does not import is that the importer only imports code that appears in the project script (*.SCR) file. The importer does not see code you wrote into the source module manually.

If this is the case, there are still several ways to get your DOS project into PenRight for Windows. The following strategy is probably the best.

  1. Move the code you wrote manually into the DOS-generated source module into separate source modules.
  2. Write 'wrapper' functions within these modules that call the logic you wrote manually into the generated PenRight! for DOS code.
  3. In PenRight! for Windows, build your new project. On the appropriate objects and events, call your 'wrapper' routines.
  4. If you have modified any of the boiler-plate PenRight!-generated routines (main(), CheckError(), EventLoop(), etc., modify the appropriate template (*.TPL) file. Then, when main.c is generated in PenRight! for Windows, the modifications will also appear. (The template files are located in \PRW\GENERATE. Make sure you have a backup of the original template file!)
  5. When you generate code, click on Link Options on the Project Code Generation dialog box. Select Add and add all of your source modules where you have your 'wapper' functions. The generated makefile will automatically compile and link these modules to your project.


How do I Change the Project Default Settings for Forms and Form Objects?

Users of the PenRight! Pro for DOS product will remember that you can edit the default settings of forms and their associated objects within DesignForm by selecting Defaults from the File Dropdown Menu.

You can also edit the default settings in PenRight! for Windows. You do this by editing the *.INI files that PenRight! installes in your \WINDOWS directory where you have Microsoft Windows installed. There are two initialization files that PenRight! installs: PENRIGHT.INI and PRWAPI.INI. PENRIGHT.INI contains the default settings for objects associated with forms as well as the directories where the Importer and Generator are located. PRWAPI.INI contains default settings for the forms themselves, such as the size of the form and related attributes.These are text files. They can be edited using any standard DOS editor.

Note: In order to see the changes you have made to PENRIGHT.INI and PRWAPI.INI, you must restart Windows.


PenRight! Files



Questions or Comments?

Email to: temple@penright.com


|Graphic version of this page|
(c)Copyright 1996 PenRight! Corporation