VB6 DLL in VB.NET for Mobile Devices
Posted on 2009-02-23
I would like to create a DLL file with VB6 to be used in a VB.NET application for mobile devices. The DLL contains code that we would like to protect, and that is why we would like to use VB6 as it cannot be decompiled/disassembled (at least not as easily as a .NET DLL).
I have created the DLL, added it as a reference and added the function calls to the mobile application. Upon running it, I receive an error that the DLL is not registered. I have registered it on the computer using RegSrv32 with no error. I have set the DLL reference in VB.NET to register the DLL when copying it to the mobile device, this does not work. I have also used the mobile version of RegSrv32 (something like RegSrvCE) but received an error code C1 leading me to believe a VB6 DLL cannot be used on Mobile Devices.
Am I wrong to think this cannot be done? Is there another alternative to using VB6 to write the DLL and have it safe from being decompiled/disassembled? Thanks! :)