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

  • SEARCH
  • Home
  • 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 8849421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:38:52+00:00 2026-06-14T12:38:52+00:00

I’ve been pulling my hair on this. I have a C++ OPOS driver that

  • 0

I’ve been pulling my hair on this. I have a C++ OPOS driver that I wrote. I wrote in C# a virtual pinpad. It works and all is good.

One request that was given to me though is that the C# driver has to be present with the calling program. This took a while to figure out as we were expecting it to have to be where the OPOS driver is. Makes me think that I did something wrong setting it up.

I know that is vague, and that more information is needed, but I don’t know where to start or what information you need to help out in this regard. I will check in often and answer any questions…. ugh i hate being this vague.. please don’t flame 🙂 I’ll edit as much as needed.

EDIT

Sorry about not phrasing this very well. I had a lot going on when I was writing this. I re read it my self and was thinking “NEWB!” ha.

Ok, so down and dirty. The question isn’t about the COM driver, the question is in the C# virtual pinpad. To sum up what i’m going to say is Why does my C# virtual pinpad dll have to be in the same location as my executable, and not the same location as my registered UPOS driver?

So to elaborate on that. The driver works (providing I don’t mess it up again). As was pointed out it does have to be registered for any program to use it. All that is well in good. We put all the necessary files related to this UPOS driver in the same folder. At one point we had a C++ virtual pinpad that was built into the UPOS driver, but for simplicity I decided that it would be quicker and easier to just make a COM-visible C# virtual pinpad. And for the most part it was. It was nice because if i made any graphical changes I could just replace the VPP.dll and life was good. Then I went to install this set of drivers on a computer, and when i tried to open up the VPP it would crash. out of desperation I started copying the VPP.dll to different locations and found that when i put it in the same location as my executing program it would start working. This is not what i want. I want to be able to put it in the same directory as the rest of my drivers. (Which varies by environment, but in general is in the “Program Files” folder) Which brings me back to my summed up question above. It boggles my mind that my UPOS driver is the one making the COM call. When I do my install part of my install is putting the VPP.dll in the Program Files folder and running regasm on it (which says it was successful). So it just boggles my mind that it has to be with the executing program. Oh and another reason why it needs to be in the centralized location is that we have a few different programs (4 to be exact) installed in different locations. And Human error being what it is I don’t want to have to copy the VPP.dll into potentially 4 locations on each computer. (which will end up being about 500 in the end)

so now that I clarified, (and actually asked a question..sorry about that), do we have any suggestions?

  • 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-06-14T12:38:53+00:00Added an answer on June 14, 2026 at 12:38 pm

    This kind of problem is a natural consequence of the way Windows (or the CLR, it isn’t clear) locates dependent DLLs. The registration for a COM server only supplies the path to the DLL that implements the server. It doesn’t otherwise affect the search path for dependent DLLs.

    If this is a native (non .NET) DLL then Windows searches:

    • The directory from which the EXE was loaded
    • Optionally, the directory specified by a call to SetDllDirectory()
    • The Windows system directory, default is c:\windows\system32
    • The 16-bit legacy system directory, default is c:\windows\system
    • The Windows directory, default is c:\windows
    • The process’ default working directory
    • The directories that are listed in the PATH environment variable

    If this is a .NET DLL then the CLR searches:

    • The GAC
    • The directory from which the EXE was loaded
    • Optionally the probing path specified by the <probing> element in the app.exe.config file.

    So clearly you’ll have no problem if the dependent DLLs are located in the EXE directory. And a pretty nasty one if you want it somewhere else. Pick one from the above lists.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have a small JavaScript validation script that validates inputs based on Regex. I
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from

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.