Need help on: "Attempt to execute COM object 'MyTest.MyTest' failed. Could not create object."

Hi,

I created a DLL to test whether I'll be able to hook it with Tender (F12).... But I just don't understand what the problem is, I am simply not able to get into the Process() Function. Store Operations POS errors out "Attempt to execute COM object 'MyDLL.MyClass' failed. Could not create object." when i press the F12 button to invoke the DLL....

Here's what I did....

------------------------------------------------------------------------------ DLL Name: MyTest.dll Class Name: MyTest.cls (I even tried with different class names and dll names, but it didn't work) Registry Entries: HookType: 2 Parameter: 1 ObjectName: MyTest.MyTest Caption: MyDLL Description: MyDLL

Public Function Process(mySession As Object) As Boolean

MsgBox ("Hello")

End Function

------------------------------------------------------------------------------- I don't think there's any problem with the registry entries, cause it picks up the name when I hit F12 for 'Tender'... Can someone help me out on this...Thank you....

Reply to
Srikanth
Loading thread data ...

Is that really the error message you see? your error message indicated that POS is trying to create "MyDLL.MyClass", but later you have it shown as ObjectName "MyTest.MyTest"...

What development Environment? Are you testing on the machine you built the project on or a separate system?

If you're using a .Net language, you may need to look up COM Interop. If you're not testing on the development system, you probably need to register your component on the test system.

Reply to
Glenn Adams [MVP - Retail Mgmt]

Did anyone find an answer to this problem? I know it's been a while, but I'm only now starting to do development for this product, and I'm running in to similar issues. There are no true code samples to compare my work to anywhere on the internet, so I don't know what the issue is.

I'm using a VB 6 development, and yes, I know, it's older, but it's been years since I've actually programmed, and it's what I'm comfortable in.

I'm able to get the add-in to do what I want, it calls from a hook, and then it gives the error message on return. My issue is likely that I'm not familiar enough with COM to determine what I'm doing wrong, but any help would be greatly appreciated.

Regards, Andrew

------------------------------------- Glenn Adams [MVP - Retail Mgmt wrote:

##-----------------------------------------------## Newsgroup Access Courtesy

formatting link
Tax and Accounting Software ForumsWeb and RSS access to your favorite newsgroup - microsoft.public.pos - 34523 messages and counting! ##-----------------------------------------------##

Reply to
ahanderson

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.