Book a Demo

Author Topic: VB .Net partial classes not fully imported  (Read 3413 times)

rsipin

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
VB .Net partial classes not fully imported
« on: October 14, 2011, 12:27:26 am »
When importing a VB.Net form class which inherits from a third party forms provider - in this case CodeArchitects.VB6Library.VB6Form, the form designer will import, but the 'code behind' class will not. I suspect that it's because the VB code portion doesn't have the same inheritance line in the class definition. Is there a workaround for this, as basically it keeps me from using any of the debugger & diagramming tools for this class.

Thanks in advance.

rsipin

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: VB .Net partial classes not fully imported
« Reply #1 on: January 14, 2012, 08:20:34 am »
After a lot of trial and error, I discovered that the reason certain classes were not importing via reverse engineer, was due to lack of support for certain VB6 legacy keywords.  Having any of the following keywords in your source code will not allow the class to import successfully. The real issue is that these keywords kill the import, and there is no error message or log telling you what happened.

Problem:                                             Fix:
* Imports VB=Microsoft.VisualBasic       Imports Microsoft.VisualBasic
* Exit Function/Sub                              Return (with appropriate datatype)
* word "Function" in a quoted string       No workaround - this text cannot appear