Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Attempt to execute COM object 'myrms.myclass' failed. Could not create object

Posted on by 60

hi

i want to create Com Component with vb6 for pos that accure when receipt Printing

(PrintReceipt Hook)

i want set custom string for transaction.comment and show it in receipt template

i do below works :

0- placed transaction.comment property in receipt template in import template in pos manager and save it

---------------------------------------------------------------------------------------------

1- create vb6 com component with code :

Public Function Process(ByVal session As Object) As Boolean

 Transaction.Comment = "Sample Comment"

 Process = True

End Function

Note : Project Name is 'myrms' And class name is 'myclass' .

---------------------------------------------------------------------------------------------

2- copy myrms.dll to system32 and register it by below command lIne statement :

regsvr32 c:\windows\system32\myrms.dll

---------------------------------------------------------------------------------------------

3- change registery  :

3-1    

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Retail Management System\Store Operations\Hooks

count -->1

3-2

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Retail Management System\Store Operations\Hooks\000

(Default)                 -->       favorite string

Caption                  -->       favorite string

Description            -->       favorite string

HookType              -->       1

ObjectName          -->       myrms.myclass

Parameter             -->        1

---------------------------------------------------------------------------------------------

4-and finally when i want print the recipt following error show :

Attempt to execute COM object 'myrms.myclass' failed. Could not create object

---------------------------------------------------------------------------------------------

please help me for this problem

thanks a lot

*This post is locked for comments

  • eepersian Profile Picture
    eepersian 60 on at
    RE: Attempt to execute COM object 'myrms.myclass' failed. Could not create object

    Thanks Scott for your responses

    i can programming in vb.net too , but i haven'n any sample project ...

    really i dont know steps of creating add-in correctly

    Is it Possible that Send a simple add-in that you wrote in .net  ?

    if yes , my esmail address is __"esmail.abrahimi@gmail.com"___

    Thanks again

    best

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Attempt to execute COM object 'myrms.myclass' failed. Could not create object

    I haven't done VB6 in a long long time, but maybe since it's on a 64 bit machine it needs to go in a different folder.  see this link:  support.microsoft.com/.../249873.  Might need to go in %systemroot%\SysWoW64 folder

    I use .NET and compile for COM Interop and my dll's go right alongside of RMS.   Try moving it to the 64 bit folder.  It appears your hook is being called, but it just can't find your dll.

  • eepersian Profile Picture
    eepersian 60 on at
    RE: Attempt to execute COM object 'myrms.myclass' failed. Could not create object

    Hi SCOTT

    NO , I do Only Copy it to System32 Folder And register it ...

    is it necessary ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Attempt to execute COM object 'myrms.myclass' failed. Could not create object

    do you have myrms.dll in the same folder as RMS?  

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans