dcsimg
Results 1 to 3 of 3

Thread: VB6 App running on Win7/10 x64 - needs to access a 64 bit proprietary driver

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2011
    Posts
    32

    VB6 App running on Win7/10 x64 - needs to access a 64 bit proprietary driver

    Many years ago I had a VB6 app that behaved as a Virtual Drive solution. A guy wrote a Driver in C++ and sitting inbetween the VB6 App and that C++ .sys driver was a COM dll.

    Unfortunately I do not know much about C++ All I know is that this combination worked fine in a 32 bit machine.

    Now I am in need of getting this app running on Windows x64 and of course I have run into issues for obvious reasons. I can't rewrite the main app in VB.Net as it is too big and there is no time. What I am hoping though is there might be some way of achieving the following ;

    MyApp(VB6) >> AppCOM.dll >> VirtualDriver.sys

    The VirtualDriver.sys is currently in C++ and that has been compiled in VS2015 to x64

    The AppCOM.dll is also in C++ and that has also been compiled now in VS2015 to x64

    MyApp of course is still 32bit


    I have tried to connect AppCOM.dll to the MyApp but no go, I assume because AppCOM.dll is 64bit

    The Question Is ....

    Is there a way of having some intermediary DLL (perhaps that AppCOM.dll) built in some way that the VB6 app will talk to it, and the 64bit VirtualDriver.sys will connect to it at the other end ?

    Thanks

  2. #2
    Hyperactive Member
    Join Date
    Feb 2019
    Posts
    401

    Re: VB6 App running on Win7/10 x64 - needs to access a 64 bit proprietary driver

    Compile AppCom.dll as 32-Bit. It's most likely using DeviceIoControl() function to talk to the driver, so it doesn't need to be 64-Bit. Also, see this thread in how to instantiate a 64-Bit COM DLL, but I wouldn't recommend it, because 32-to-64 communication is out-of-process, which is slower than in-process 32-Bit DLL communication.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2011
    Posts
    32

    Re: VB6 App running on Win7/10 x64 - needs to access a 64 bit proprietary driver

    Thanks for the feedback, I will give that a try.

    Cheers

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width