I am working on some outdated VB5 / VB6 code and should convert the .bas file to vb.net.
I found some options
Compile the .bas file into com dll, and then link and use it in my project. (For this, I assume that I will need vb5 or vb6, which I do not have)
Copy and paste the contents of the file into a new module in vb.net, and then try to resolve the errors one by one.
The contents of the .bas file refers to a specific dll. The .bas file contains mostly declarations of consts, types, sub and functions.
What will be the most elegant way to remake this in vb.net. It is as simple as option 2.
EDIT
I used VS2008 express and ran the code through the update wizard, it did the necessary conversion. and the .bas file has been converted to .vb. I took this file and decided to rewrite other parts of the code, including some repeated conversions of the converted .vb file.
Other questions related to this are here .
source
share