help creating a COM/ATL wrapper for a USB Scanner for VB6

My first program in VC6 (ever) is a wrapper so the the DLLs provided by our Scanner vendor can be used in our VB6 application. (They won't provide compatible DLLs)

I did some experimental programs and successfully wrapped the librarys in a vc6 program and created a test dialog to access the function. Good to go.

Then I followed this COM/ATL example:
http://www.codeproject.com/Articles/96/Beginner-s-Tutorial-COM-ATL-Simple-Project

I Created a COM project just like the example, added my includes for the provided vendor DLLs and abstracted access to the library calls.

Magically the library shows up the the VB6 reference list. I include it just like in the example program and when I try to access the simplest function (Is the scanner connected?) the call to the function CRASHES VB6 with an access violation!

I'm at the end of ideas here. I did run depends.exe against the 4 library DLLs that our vendor provided and there are a number of DLL dependencies missing on my machine. Could my problem be those missing dependencies alone?

Thanks for your time.
Topic archived. No new replies allowed.