There are a number of demonstration programs that will help you get to grips with some of the concepts involved when working with COBOL projects in Visual Studio. See
Start menu > All Programs > Micro Focus Visual COBOL 2010
> Visual COBOL Samples.
The following demonstrations are supplied:
- \COBOL for .NET
-
\Core.Net
- Core.NET introduces some of the standard features of the .NET Framework you need to be aware of, and any new COBOL syntax in order to support these features.
-
All other subdirectories under \COBOL for .NET
- Each of the demonstrations shows how to use the corresponding COBOL feature within the .NET framework.
- \Forms
-
\CobolDoKu
- Demonstrates Windows Forms using a .NET user control.
-
\BookWrapper
- A managed wrapper (written in COBOL .NET), over the Legacy Book library. The WinBook program uses the BookWrapper library to read and write data from the bookfile.dat.
-
\LegacyBook
- A native COBOL library which needs data records from a data (.dat) file.
-
\LoginFormApplication
- This demonstration is a Visual Studio solution containing a login form created from the Login Form template. It contains classes that check whether the entered user name and password are correct.
-
\WebBook
- Shows how to create a Web Forms page to provide a .NET interface to an existing COBOL program. The BookClass project provides a proxy COBOL program that calls the existing COBOL Book program.
-
\WebHello
- Shows how to use Web Forms to say "Hello World".
-
\Winbook
- Shows how to create a Windows form to provide a .NET interface to an existing COBOL program. The BookClass project provides a proxy COBOL program that calls the existing COBOL Book program.
-
\WinHello
- Shows how to use Windows Forms to say "Hello World".
- \SendHTTP
- Demonstrates interaction with .NET classes for interacting with http requests and responses.
- \InterfacingWithStdCOBOL
- Demonstrates how to use compatible types to interface with standard COBOL, and in particular how to manipulate group items and occurs structures.
- \Games
-
\CobolBlitz
- Demonstrates the use of Windows forms, enumeration types, inheritance, and of sounds and graphics.
-
\TicTacToe
- Demonstrates how to use WPF from a Visual COBOL application.
- \Multithreading
- Introduces some key aspects of Multithreaded programming using COBOL syntax and the run-time threading APIs.
- \sql
-
- \ConnectedDemo
- Fills a DataSet from a data source, modifies the DataSet and then synchronizes the changes in the DataSet with the data source. The modified contents of the DataSet are displayed in the Output Window. To execute this demonstration, you must first download and install the SQL Server Northwind database from the Microsoft Web site, http://www.microsoft.com. Once there, enter the following search criteria to locate the appropriate download page: northwind pubs database download
- \CursorDemo
- Demonstrates how to mix OpenESQL with direct calls to ADO.NET.
- \DisconnectedDemo
- Manipulates offline data in a DataSet. The results of the data manipulation are displayed in the Output Window.
- \LobDemo
- Demonstrates how ADO.NET can be used in mixed language projects to insert and select large objects (LOBs). LobDemo shows OpenESQL working with LOB columns in a SQL Server table.
- \OrderStatusDemo
- Demonstrates how ADO.NET can be used in mixed language projects, and uses COBOL and C#.
- \Samples Browser
- Shows a list of the samples installed with your COBOL development system. You can select a sample from the list and view its readme. Click one of the available links to open the sample in Visual Studio, open the directory that stores the sample's files or open its readme.
- \WCF
- Demonstrates the use of Windows Communication Foundation (WCF) services.
- \WPF
- Demonstrates the use of Windows Presentation Foundation (WPF).