Accessing an Open Watcom Resource-only DLL with Origin C

This topic describes how to open and access the sample resource-only DLL TempConv.DLL. See the previous topic Using the Open Watcom IDE to Build a Resource-only DLL to learn how to build the resource-only DLL using the Open Watcom C/C++ software.

To open and access the resource-only DLL TempConv.DLL in Origin with Origin C follow the steps below.

  1. Launch Origin and click the Code Builder button Accessing an Open Watcom Resource-only DLL with Origin C CodeBuilderButton.png on the Standard toolbar of Origin.
  2. Select the File|Open Workspace... menu item in Code Builder. Browse to and open the sample Origin C workspace file TempConvDlg.ocw found in this zip file, under the \Dialog Builder\TempConv subfolder.
  3. Click the Rebuild All toolbar button Accessing an Open Watcom Resource-only DLL with Origin C image26.gif in Code Builder to compile and link the TempConvDlg.cpp file.
  4. Activate the Script Window in Origin, type DoTempConvDlg, and then press the ENTER key.

The Temperature Converter dialog shown below opens in Origin. Study the example code in the source file TempConvDlg.cpp as desired to understand how to access resources in Origin with Origin C.

Accessing an Open Watcom Resource-only DLL with Origin C TempConv.png