Provides instructions for running the same steps to analyze, build, bind, and run the MFunctionEmulation application, which
is an ADO.NET managed version of FunctionEmulation.
Analyze the MFunctionEmulation project
- In the
Solution Explorer, double-click the
Properties entry for the
MFunctionEmulation project.
- Click the
SQL tab.
Notice the directive settings for the OpenESQL ESQL Preprocessor include SQL(DBMAN=ADO). This means that we're using the ADO.NET
database connection rather than the ODBC database connection.
Define a post-build event
- From the
Properties window add a post-build event to execute the following command (same command you used for the FunctionEmulation project):
DSN SYSTEM(HCODemo) @"$(ProjectDir)FunctionEmulation.hcodsn"
- Close the
Properties window.
Build and bind the FunctionEmulation program
- In the
Solution Explorer, right-click the
MFunctionEmulation project and select
Set as StartUp Project from the context menu.
- Again, right-click the
MFunctionEmulation project, but this time select
Build from the context menu.
Run the MFunctionEmulation application
- From the
Solution Explorer in Visual Studio, open the
FunctionEmulation.cbl source file.
- Set a break point on the
goback line.
- Click
Debug > Start Debugging to debug the application.
You should see the same data output that you saw when you ran the FunctionEmulation native application.
This completes the tutorial.