Overview
Herbert-ABS offers leading edge loading and salvage analysis software packages as well as software design tools to the maritime and offshore industries. It owns, markets and supports the existing suite of Herbert software products including its shipboard loading software (CargoMax), salvage response software (HECSALV), and load management software for offshore structures (LMP). Its latest software solutions include an enhanced containership stowage module, performance monitoring and optimization tools, and a load management, condition monitoring, and emergency response package for offshore vessels and structures.
Great Migrations worked with HerbertABS to accelerate upgrading their VB6 to .NET. Great Migrations used gmStudio to generate a C# system containing 22 application projects generated from the VB6 codes and also containing a COM stub framework generated from the COM dependencies. All projects were cross-referential and organized into a VS2015 project for subsequent refactoring, verification and optimization by the HerbertABS development team. The development of this "Phase 1" upgrade solution took about 10 weeks.
Project Highlights
System Metrics
Metric | Comments | |||||||||
FILES | 693K LOC Logic and 79K LOC GUI in 1,712 Files: 411 Forms, 9 MDIForm, 1,040 Classes, 124 UserControls, 102 Modules, 0 PropertyPages, 0 Designers organized into 22 VBPs. | |||||||||
BINARIES | 12 EXEs, 7 DLLs, 2 Controls, 1 OLE EXEs | |||||||||
MEMBERS | 41,918 unique subprograms: 11,893 subroutines, 9,439 functions, 10,695 properties, 1,084 externs, 8,808 event handlers. | |||||||||
UI | 535 unique UI containers containing 8,183 instances of 178 different kinds of controls. | |||||||||
COM | 19,076 calls to external COM components. The diversity of COM members is 1,690 unique members from 316 classes in 40 COM components. | |||||||||
WIN32 | 1,169 calls to 445 unique entry-point APIs from 17 libraries. API Calls are made from 98 different user procedures. |
COM Upgrades
All COM dependencies were satisfied by a COM stub framework generated automatically from actual COM usage found in the source codebase. The generated stub framework contained assemblies generated for third-party COM components as well as in-house components not available as source code. This framework was subsequently upgraded to functional .NET components by the in-house development team as part of their effort to verify and optimize the generated .NET code. Some of the COM components included in the stub framework are listed below.
|
|
|
Upgrade Features
The core features of the translation engine were improved in several ways for this project including the following features:
- multi-dimensional array rank inference
- precision of mixed precision calculations
- interfaces/Implements for a complex application object model with hundreds of classes
- support for generating an integrated build configuration
- refactoring GoSub blocks into separate functions
- optimization of byref parameter passing
- with blocks using instances of user-defined types (structs)
- handling optional parameter default values based on private constants