web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Not seeing COM Type Lib from Dex

(0) ShareShare
ReportReport
Posted on by 474

I inherited a Dex app that I want to upgrade to 2013.  It uses a dll for some of its functionality, but I cannot seem to hook it up properly. I have not worked with COM within Dex before.

The dll is .Net'ed, I can open it fine from ildasm and see the methods and members.

Used regasm to register it, but when I go into the Library Definition window and click on the ellipses next to the name field, it is not anywhere in the COM Type Libraries list.

This may not be a huge deal, I'm able to create a Reference datatype for the COM Object.  But when I try to compile the Dex script, I get an "unknown field" on the first member of that class in the script.  A little farther down am getting an "unknown method" as well.

I made some guesses on which regasm.exe to use, went with the one in Framework\v4.0.30319 and it was successful.

Any suggestions?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Steve Kubis Profile Picture
    on at

    When you used regasm, did you create a type library file (.tlb) for the assembly? That's what Dexterity needs so it can understand the COM interface for the assembly.

    The library won't be registered on the machine, so you won't see it in the lookup for the COM components that are registered. In the Library Definition window in Dexterity, you'll have to use the  Path lookup button so you can select the type library (.tlb) file directly. That's what Dex will use to create the reference.

    Hope this helps.

  • Suggested answer
    soma Profile Picture
    24,410 on at

    Have a look on the below links.

    msdn.microsoft.com/.../ms994022.aspx

    www.microsoft.com/.../details.aspx

    Hope this helps!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans