• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

Creating an ActiveX control to communicate with a DLL on a client PC

Hi,

I need to write a VB ActiveX control that can run in an IE 6 or 7 window that can communicate with a DLL running on the client machine. The DLL is a library that will communicate with the USB port on the client machine. The control needs to be an ActiveX control and not a .Net Web Control because it will be running from within Sage CRM v6. Any good resources on creating an ActiveX control? I have written one before and it was reasonably straightforward but it was a few years ago. My VB is not too rusty but I would like some pointers on what to do and how to proceed. I need answers to questions like "Can I have an ActiveX control that will communicate with a DLL installed on a client machine?"

Thanks,

Lee
0
Lee Savidge
Asked:
Lee Savidge
  • 2
1 Solution
 
vb_mctCommented:
Lee,

Yes, you can have an ActiveX control that can communicate with a DLL when both are installed on a client machine.  Your user can install or download both the .OCX and .DLL files then use them through a browser UI.  An excellent resource is "Distributed COM Application Development using Visual Basic 6.0" by Jim Maloney.  If has chapters on implementing an object model with ActiveX components, creating ActiveX controls with VB, and automation fundamentals.  You can buy it on Amazon for a few dollars.

HTH,
Scott
0
 
Lee SavidgeAuthor Commented:
Hi,

Thanks. I may check that book out in the future. I found a copy of the book text for Dan Applemans book, Developing ActiveX Components on the web. I will read that as well. If anyone has any more info, I'd be glad to hear it.

Thanks,

Lee
0
 
Lee SavidgeAuthor Commented:
Hi,

Thanks for your input. I am not sure if the project is going ahead or not but you answered my question and provided me with some extra info as well.

Regards,

Lee
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now