Previous Topic Next topic Print topic


RCW Example

The .NET solution loancalc.sln contains the following of interest:

The COBOL application comploan\compdll.app contains the following programs:

To run the example:

  1. In Net Express, compile the project compdll.app to create the COM object.
  2. Register the COM object at a command prompt. To do this, go to the folder where you created the COM object, comploan.dll, and type:

    regsvr32 comploan.dll

  3. In Visual Studio, close the solution loancalc.sln and reopen it to pick up the newly referenced COM object. You can see it now listed without the warning triangle.
  4. Build the solution and step through it.
Previous Topic Next topic Print topic