The C++ code is reasonably portable.
In addition, and more importantly, it can be easily used as is to make products that do public key tasks, and interoperate with web pages.
The visual basic code is not at all portable, which is not such a big defect, for user interface and database code never is.