Some background information

Authorware uses a message based system for getting and setting variables in variables. You use the Windows API SendMessage function to send a message to Authorware that you want to get or set a variable. To do this you need to define a record (known in C as a structure). This record contains the information that is sent to and returned from Authorware.

A quick pseudo-example - suppose the record is defined like this:

type AW = record
   variable : string;
   value : string;
   end;

The UCD sends this record to APW, which would look at the variable name, make the value equal to whatever the variable is equal to, then return the record to the UCD. The UCD can then read the value of the variable. Of cuorse, it is alittle bit harder than that, but that is the theory.

The problem Delphi developers face is that Macromedia have only released details of the record in C format (apwpost.h), not the pascal format that Delphi requires. I have converted the C format to pascal so that we can use it.

On to: The apwpost.pas file

Back to: Start