Creating a UCD with Delphi

So you want to make a UCD with Delphi. Well its remarkably easy when you know how. Now with Delphi 2.0, you can also make 32 bit U32s, and quite often use the same source files.

These projects will be combined 16/32 bit projects. Usually, when making a UCD/U32 combined project, it is easiest to work in 16bit Delphi 1.0, then open the project in 32bit Delphi 2.0, although it can be done the other way around. In these examples, I will refer to Delphi 2.0 as Delphi32. All other references to Delphi can be assumed to mean the 16bit Delphi 1.0. Similarly, the 32bit version of Authorware will be referrred to as APW32, the 16 bit simply as APW.

The first example creates a simple UCD/U32. It demonstrates setting up the Delphi project; using functions that return numbers and strings; and creating the resource file that Authorware needs to load the UCD.

The second example shows how to set and get APW variables in a UCD, and also how to pass the Authorware window handle to a UCD with a resource file.

If you have any comments or questions, mail Gary Smith.