Home Page link  

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

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here

 Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Need help on: "Attempt to execute COM object 'MyTest.MyTest' failed. Could not create object." Srikanth 07-12-2005
Posted by Srikanth on July 12, 2005, 4:26 am
Please log in for more thread options
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....



Posted by Glenn Adams [MVP - Retail Mgmt on July 12, 2005, 9:08 am
Please log in for more thread options
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.


--
Glenn Adams
Tiber Creek Consulting
http://www.tibercreek.com
glenn@tibercreek.com
----------------------------------------------
Please DO NOT respond to me directly but post all responses here in the
newsgroup so that all can share the information



> 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....
>




Posted by ahanderson on August 30, 2008, 11:47 am
Please log in for more thread options


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:


> 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.






##-----------------------------------------------##
Newsgroup Access Courtesy
http://www.rockryno.com/
Tax and Accounting Software Forums
Web and RSS access
to your favorite newsgroup -
microsoft.public.pos - 34523 messages and
counting!
##-----------------------------------------------##


Similar ThreadsPosted
Attempt to execute com object RmsGcm.Rms failed September 1, 2005, 4:01 pm
Attempt to execute com object 'mix.discount' failed. could not cre November 12, 2007, 7:51 pm
Attempt To Execute Com Object March 7, 2007, 11:48 am
Attempt to process COM object "Valutecgiftcards" has failed November 2, 2005, 3:46 pm
Microsoft Store Operations POS: Attempt to process COM object 'ObjectName' failed. An unknown error ocurred. June 11, 2008, 5:01 pm
How to execute Stored Procedure from QSRules.Session object in .NE November 17, 2006, 7:06 am
Atempt to process COM object failed March 21, 2007, 6:21 am
error 2147024769 method of object failed July 25, 2007, 4:48 pm
Atempt to process COM object VerifyCust.cVerifyCust failed. July 14, 2005, 3:21 pm
DLL Created using vb.net 2.0... Could not create object. July 20, 2006, 10:31 am

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap