Jump to content

John Browne

Mobilize.Net Staff
  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by John Browne

  1. Visual Basic supports a way to call external classes with the CreateObject() function. The function takes a class name as a parameter. Here's an example:

    Dim ExcelSheet As Object
    Set ExcelSheet = CreateObject("Excel.Sheet")

    In this case, the parameter for the function is a string literal ("Excel.Sheet") and the VBUC will migrate the VB6 code correctly. 


    Suppose you have this VB6 code:

    Const XL = "Excel.Sheet"
    [some code]

    In this case the VBUC will display the error "CreateObjects statements using a variable instead of a literal string" in the output code. This is because the value of the variable "foo" can change over time. In this case, it's advisable to replace the variable in the CreateObject syntax with the actual name of the object class being called:


  2. 1 hour ago, abowlin said:

    That makes sense, but my concern is that AMB_Test5Support.dll does not exist. It is not in the upgrade folder created by the VBUC and was not a previously existing .dll on my computer. Is it possible the VBUC should have created the .dll but in fact did not?

    Look in the VBUC references screen to see if that DLL was referenced by your original VB6 project. The VBUC would not create this--it's some kind of private library, not a Microsoft .NET library. 


  3. Visual Studio is telling you that you have a dependency on a DLL (AMB_Test5Support.dll) that it can't find in the location listed in your project file. Check your development environment and point VS to the correct path for that DLL and you should be ok.

  4. Even if you don't have a license for the VBUC you can still use it to analyze your VB6 application. This analysis will provide you with some information about your project(s) like number of lines of code (LOC), design lines, components, and more. 

    Launch the VBUC and point to a folder containing a *.vbp file (valid VB6 project). Then go to the Tools menu and click Assessment:


    Click run, and the assessment will process all the files it finds. If you get an "unresolved references" warning, you can click the "Resolve References" button on the left and resolve those references (right click the missing reference and browse to its external location). 

    Results will appear in a browser:


  5. How do you get a license for the VBUC trial?  This question comes up frequently.

    When you sign up for a trial, our bot will automatically send you a "welcome" email with a .lic file attached. You can save that file somewhere and browse to it from the licensing screen inside the VBUC. The license will let you TEST the VBUC on a VB6 project up to 10,000 lines of code. 

    But sometimes the email gets blocked, or sent to a spam folder, because it has an attachment.

    You don't actually need the email at all. You can download the license directly from inside the VBUC licensing screen. This article explains how

    Your only requirement is to use the same email address you used to sign up for the trial. That's how we index the database--if you use a different email address we won't be able to generate a license. 

    If you need larger trial license, contact us. We can arrange for that in most cases but we need to understand the reason first.


  6. It looks like the problem might be related to the existing installation of VS2010. The installer looks for a file called VSIXInstaller.exe which is also on your VS2010 instance; but the SL Bridge doesn't support 2010 so there's a built in conflict.

    Suggestion is to rename C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VSIXInstaller.exe to vsixinstaller.bak, then re-run the SL Bridge setup program. After it's completed, you can rename the VS2010 file back to .exe. 

    Note: we're not sure this will work, but it's easier than uninstalling VS2010.

  7. Hi Zimo85,

    Can you provide a little more information? Did you have the Silverlight Bridge previously installed? If so, did you uninstall it before running this setup using the Control Panel or did you uninstall it from inside Visual Studio? 

  8. Let's start a thread here documenting the things that will have to be done after migrating a C# app to HTML with WebMAP. I'd like to see both issues identified as well as solutions and even code if possible. I'll start:

    Printing: Suppose your Windows app performs a printing task, perhaps an invoice to be mailed or a shipping label.You might have used Microsoft Word as a formatting tool before you sent your file to the printer as well. In your browser, you won't have access either to a printer or to Word for formatting.

    Solution: Create a PDF. Here's a web service from Adobe that will create a PDF from XML data.  Then you can pass a link to the PDF to the browser for downloading to the local machine for offline printing. If you don't want to use LiveCycle from Adobe, here's an article describing taking an HTML view and creating a PDF from it. 

  9. Great question. There's a short answer, and a longer one.

    The short answer is: on the server side, we create an ASP.NET MVC single page application. We also use Unity framework from Microsoft for inversion of control (aka dependency injection) as part of our state management approach. We also use some JavaScript frameworks, such as KendoUI from Telerik, or AngularJS (with Bootstrap). On the client side we use HTML5 and CSS with either Kendo or Angular for MVVM. Our Angular target (you have to choose when migrating an app between targeting Kendo for a more Windows-like UX or Angular for a more Web-like UX) includes Bootstrap for responsive design. 

    For the longer answer check the blog--I have one article that introduces our architecture and will be creating more soon.

  10. The good news is if you have VB6 you can take that app all the way to the Web. This in itself is pretty amazing, kind of like taking a Fokker tri-plane from WWI and turning it into a space ship.Here's the basic idea:

    1. Use VBUC to migrate your VB6 code to .NET with C# as the output language. 
    2. Get the resulting C# app to compile with no errors. Warnings are ok and you don't have to worry at this point about runtime issues.
    3. Sign up on studio.mobilize.net for a free account and create a new WebMAP3 migration.
    4. Point the assessment tool at your new C# application.
    5. Run the assessment and check the results. 
    6. Queue the migration for either Kendo or Angular targets.
    7. Get the output. Now you can focus on fixing runtime issues and those things from your original VB6 desktop app that don't have a corollary in a Web app. 
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use