Please help me to resolve the error while upgrading vb6 code to vb.net?

Kilitli Please help me to resolve the error while upgrading vb6 code to vb.net?

  • 06 Mart 2008 Perşembe 06:02
     
     

    Hi All,

     

    i am getting below error while upgrading from vb6 code to vb.net.

     

    If CreateMSPProject = False Then

     

    'UPGRADE_WARNING: Couldn't resolve default property of object oOpenPS.oParameter.GetParam. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

     

    m_DumpFileName = oOpenPS.oDump.Create(ilocation:="PS_cMSPFactory.CreateMSPProject", iappendfilename1:=oOpenPS.oParameter.GetParam("ActionLogFileName", oOpenPS.InstallDirectory & "\Log\ActionLog.txt"))

    '-----

    End If

     

    the error i am getting is

     

    Reference required to assembly 'Interop.VBA, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' containing the type 'VBA.ErrObject'. Add one to your project. 

Tüm Yanıtlar

  • 11 Mart 2008 Salı 11:08
     
     

    Hi phone,

     

    It indicates the oOpenPS object created in VBA is not available in VB.NET.

    Please try adding reference to the Interop.VBA.dll to your project.

    Project menu -> Add Reference -> Browser tab

    The COM interop DLL is generated by Visual Studio.

     

    http://www.webtropy.com/articles/art14-2.asp?Interop=VBA

    VBA reference for C# and VB.NET

     

    Hope someone gives you better responses.

     

    Regards,

    Martin

  • 26 Ocak 2011 Çarşamba 13:25
     
     
    :D fantastic work!!! thank you martin