Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • FMSLib contains six inter-related VB6 libraries and one test executable
  • FMSWeb contains thirty-four ASP pages, which reference the six VB6 libraries in FMSLib.

The source codes for the FMSLib VB6 projects are located in the [INSTALLDIR]\samples\source\FMStocks\FMSLib subdirectory. The source code for the ASP pages is located in the [INSTALLDIR]\samples\source\FMStocks\FMSWeb\asp subdirectory. Four sample Migration Projects are included in the FMStocks example, depending on target language (C# or VB.NET) and treatment of referenced components (Interoped or migrated to .NET), as shown below:

 

Project[.gmproj]Description
DemoFMSLib_cshAll inter-related VB6 DLLs migrated to C#.NET, all externals interoped
DemoFMSWeb_cshASP Site and FMSLib libraries migrated to C#.NET, all other externals interoped
DemoFMSLib_vbnAll inter-related VB6 DLLs migrated to VB.NET, all externals interoped
DemoFMSWeb_vbnASP Site and FMSLib libraries migrated to VB.NET, all other externals interoped

 

The FMStocks sample shows how to migrate inter-related ASP and VB6/COM components. The application was published to demonstrate a 3-tier architecture (ASP, COM+, and SQL Server) in the context of a stock trading site with the following features:

...

Note: The version of FMStocks distributed as a sample here uses COM instead of COM+.

Deployment

The FMStocks migrations are derived from the FMStocks source and are deployed in the FMStocks_csh or FMStocks_vbn workspace. Two types of migrations are made: one for the VB6 projects and one for the web site. The resulting .NET codes are expressed in both VB.NET (vbn) and C# (csh). source codes for the FMSLib VB6 projects are located in the [INSTALLDIR]\samples\source\FMStocks\FMSLib subdirectory. The source code for the ASP pages is located in the [INSTALLDIR]\samples\source\FMStocks\FMSWeb\asp subdirectory. Four sample Migration Projects are included in the FMStocks example, depending on target language (C# or VB.NET) and treatment of referenced components (Interoped or migrated to .NET), as shown below: 

Project[.gmproj]Description
DemoFMSLib_cshAll inter-related VB6 DLLs migrated to C#.NET, all externals interoped
DemoFMSWeb_cshASP Site and FMSLib libraries migrated to C#.NET, all other externals interoped
DemoFMSLib_vbnAll inter-related VB6 DLLs migrated to VB.NET, all externals interoped
DemoFMSWeb_vbnASP Site and FMSLib libraries migrated to VB.NET, all other externals interoped

The FMStocks projects have the following deployment settings:

The VB6 Projects (COM libraries):

      ProjectFolder = [INSTALLDIR]\samples\workspace\FMStocks_[lang]
      DeployFolder  = %ProjFolder%\deploy\lib

The ASP Projects (web site):

      ProjectFolder = [INSTALLDIR]\samples\workspace\FMStocks_[lang]
      DeployFolder  = %ProjFolder%\deploy\web

...