FMStocks
The FMStocks SampleOverview
![FMStocksUI](.\images\FMStocksUI.jpg)
-
Portfolio Management
-
Research/Buy/Sell Stocks
-
On-line Store
- Forms-based Login
FMStocks_DB.vbp (Data Access) FMSStore_DB.vbp (Data Access) FMSStore_Bus.vbp (Business Objects) FMStocks_Bus.vbp (Business Objects) FMSStore_Events.vbp (Business Objects) FMStocks_Ext.vbp (Business Objects) FMSTest.vbp (A Simple Desktop Application Test Harness)and thirty-four ASP pages (2300 LOC)
ASP Pages Include files Pulp (images, css, client-side script files, etc.)A pivot table of data produced by the Source Structure report for the FMStocks VB6 code is displayed below.
![FMStocksLibMetrics](.\images\FMStocksLibMetrics.jpg)
![FMStocksWebMetrics](.\images\FMStocksWebMetrics.jpg)
-
Subtle changes in the semantics of core ASP classes (Request, Response)
-
Scoping matters relating to nested and stacked ASP include files
-
Weak typing everywhere
-
Various obscure differences between the syntax VBScript and Visual Basic
-
Different rules for structuring markup and script tags
-
Different format and semantics of ASP directives
-
Looser coupling to COM, and
- Architectural decisions regarding where and how to use the many powerful new features of ASP.NET
COM Dependencies
FMStocks depends on the following external COM components that must be installed on your workstation to perform the migration successfully:File | Description |
scrrun.dll | Microsoft Scripting Runtime |
msado27.tlb | Microsoft ActiveX Data Objects 2.7 Library |
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). 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\webLog files showing all migration steps are created in the workspace\log folders.
[INSTALLDIR]\samples\workspace\FMStocks_[lang]\logThe .NET project files are deployed to the following folders:
.NET Library Code: [INSTALLDIR]\samples\workspace\FMStocks_[lang]\deploy\lib\[project]_std_[lang] ASP.NET Site: [INSTALLDIR]\samples\workspace\FMStocks_[lang]\deploy\web where: [project] is the name of the migration unit associated with each migration task in the migration project. [lang] is "csh" or "vbn" depending on target language choice.