I'm trying to upgrading a VB Excel application working on Windows XP 32-bit to Windows 7 64-bit operating system. There are two issues affecting such operation. I have found that these topics are not uncommon.
The VBA script has to connect to a server requiring Microsoft Internet Transfer Protocol 6.0 (SP 6.0) - MSINET registered in System32 directory. Unfortunately the aforementioned library works on 32-bit operating systems only and no release is available for 64-bits. I've tried to import to Reference List: this seems to work, however once I restart the application no dll (merely a ocx file - Active X) could be found. Obviously the dll cannot be registered through regsvr32 application. There's something similar to MSINET working on 64-bit version of Windows?
The second issue I found is not related to the previous one. The application need to parse an input string removing white spaces. The old VBA uses TRIM and I suppose I have to make no changes about it. However the compiling operation results in the following error: "Compile error: Can't find project or library". No references are missing (except for MSINET).
I'm on a 64-bit Windows 7, Office 2010, microsoft.office.interop.excel.dll 14 installed. Thank you
In some windows instalations i wasn't able to register OCX under System32. As this became a normal issue in my company, my method to solve this is:
Register the OCX in that folder:
This works everytime.
Do not delete the OCX folder.
EDIT:
In a fresh windows 7 / 8 install, i've been able to run the same applications without registering the OCX by running the Office App ( i.e. Access) with Administration Previleges. Discovered it because of a print server that was giving the same OCX problems. Probably this can be fixed by editing the OCX permissions rather than run as Administrator.
If, however, you have 64-bit office, you will not be able to use msinet control at all, and the trim function will not reappear until you remove the reference to msinet.