Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6140455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:07:13+00:00 2026-05-23T18:07:13+00:00

Entry level programmer here trying to implement a COM interface. I am working on

  • 0

Entry level programmer here trying to implement a COM interface. I am working on a program that interfaces with the Aloha point of sale system. Aloha uses COM to work with external programs. I am trying to intercept card data from the mag card reader, which is an OPOS reader, not a keyboard wedge. The documentation I have doesn’t explain how to implement this particular interface, but it does explain how to implement a similar one. I have tried to follow this example but I am getting no where. Support from Aloha is non-existent, their documentation is poor, outdated and sometimes just wrong, even though I have paid for a license.

I tried to make a simple app just to test this functionality. Here is what I did:

1) create a new project in vc++ 6.0 using ATL COM app wizard
2) server type dll
3) insert new atl object -> simple object
4) right click on my new class and choose implement interface
5) browse for type library, chose Iber.tlb (Aloha’s tlb)
6) chose the interface I want to implement

That made a .h, .cpp and .rgs file.

The .h file has:

public:
// IInterceptMagcard
    STDMETHOD(InterceptMagcard)(BSTR bstrAccountNumber, BSTR bstrCustomerName, BSTR bstrExpirationDate, BSTR bstrTrack1Info, BSTR bstrTrack2Info, BSTR bstrTrack3Info, BSTR bstrRawMagcardData, LONG * bWasDataHandled)
    {
        if (bWasDataHandled == NULL)
            return E_POINTER;

        return E_NOTIMPL;
    }

Is that where I implement my code? I put some test code in there to write out to a txt file just to test it. I then used:

HRESULT hr = CoCreateInstance(CLSID_AlohaMag, NULL, CLSCTX_INPROC_SERVER,
                                IID_IAlohaMag, (void **) &g_pIInterceptMagcard);

where g_pIInterceptMagcard is a pointer to my interface class created with the wizard above.

When I try to register I get the following HRESULT: 0x80040112
That is “class not licensed for use.”

Does that mean my program didn’t make the necessary registry entries?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:07:13+00:00Added an answer on May 23, 2026 at 6:07 pm

    It probably means there is a license you have to install before their custom class factory will create an instance of the class. Did you try running your program on a fully working POS system with the magnetic card swipe licensed for use? Maybe there is some other license that you need to do this type of thing?

    If it was a problem of the class not being registered, the result would be “class not registered”. It sounds like you’ve done the necessary steps via the wizard to implement the interface and have it generate the correct registry entries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked a question like this in an interview for a entry level programmer:
I'm an entry level programmer so please be descriptive in your responses. I am
I was asked of this question when mentor an entry-level programmer, I was thinking
From the wikipedia entry on NP-Complete: The easiest way to prove that some new
How have you explained nested arrays to a programmer. I'm thinking someone that has
I’m teaching an entry-level C++ programming class. We only use iostream in the class
I am looking for some entry level posts about machine learning. Can anyone suggest
For interview purpose what questions can we expect from SSAS prespective. a) Entry/Beginners level
I have a list of Map.Entry<String,Integer> s that I am looping through, and for
Are there any good (entry-level) tutorials on adding system calls to FreeBSD via kernel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.