When you use properties in your code, you can either set (change the value of) the property, or get (retrieve the current value of) the property. Most properties are read-write. This means you can set and get them. However, there are properties which are read-only or write-only.

The way you use properties in code varies from one development environment to another. Some environments such as Visual C++ do not support properties, but provide get and set functions to do the work of each property. C++ programmers can find the definition of the interface for the PC*MILER|Connect automation object in the header file pcmsole.h.  

Consult your environment documentation for specific information about using properties. The examples presented below provide guidance to users of development environments like Delphi or VB.

PC*MILER|Connect automation object’s errors that occur during program execution are handled like other errors. You must provide your own error handling routines to intercept and manage errors. Note that the return value of all functions is of Windows type HRESULT. There are two error codes specific to PCMSOLE.DLL:

-2147220904   L         Error loading PCMSRV32.DLL

-2147220903L            PCMSRV32.DLL error

For more detailed information on PCMSRV32.DLL errors, use ErrorCode or ErrorString properties. Note also that there are two success codes: “success true” and “success false”.

S_OK          0x00000000L

S_FALSE       0x00000001L