CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Posts
    1

    Exception from HRESULT : 0x80040461

    Hello All,
    I am working on customization of a SP3D (A 3D CAD software) using VB 6.0.
    Now I am trying to shift to VB.Net.
    In VB we use to access the VB 6.0 command by ProgID.
    When I call a VB.Net command from SP3D I get a message Exception from HRESULT : 0x80040461.
    Syntax for the command - Assy.Name, Namespace.ClassName
    But when I export the Assy. to a Type Library and call the same command using ProgID it works fine.
    Please help me to solve this problem.
    Thanking you in advance.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Exception from HRESULT : 0x80040461

    Can you please elaborate on your question, to me it seems quite unclear on what the actual problem is.

  3. #3
    Join Date
    Jun 2011
    Posts
    1

    Re: Exception from HRESULT : 0x80040461

    Quote Originally Posted by ur_emitra View Post
    Hello All,
    I am working on customization of a SP3D (A 3D CAD software) using VB 6.0.
    Now I am trying to shift to VB.Net.
    In VB we use to access the VB 6.0 command by ProgID.
    When I call a VB.Net command from SP3D I get a message Exception from HRESULT : 0x80040461.
    Syntax for the command - Assy.Name, Namespace.ClassName
    But when I export the Assy. to a Type Library and call the same command using ProgID it works fine.
    Please help me to solve this problem.
    Thanking you in advance.
    Hi, check if Enable optimizations checkbox if this was unchecked. If it was checked, then this might be the cause. This checkbox can be found by going to project's properties->Compile->Advanced Compile Options.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured