My main stationary machine is a Windows box with a 64-bit version of Win 8.1 and a 32-bit version of Office 2013. I developed a 32-bit DLL with functions in VS2013 that I include in Excel VBA. Functions work fine on Windows.
Then I have a Macbook Pro with 64-bit version of Windows 8.1 and 32-bit version of Office 2010 under Parallels 8. I seem to be unable to work with functions from my DLL under this Mac.
As I tried:
- I copied my DLL file to the new
C:\MyTools folder in Parallels. Link to this folder when loading a DLL in VBA. My VBA code to load a function from a DLL is as follows:
Declare Function MyDLLfunction Lib "C:\MyTools\MyDLL.dll" (ByVal s As Double) As Double
I also tried double slashes \\ to no avail
The undesirable result when using this function from my worksheet in Parallels is that an error code (#VALUE) is displayed in the cell.
Rather, Excel 2010 is incompatible with DLLs at all (don't believe it), or is it a matter of correctly specifying the path from the DLL on Mac? I thought that C:\MyTools\MyDLL.dll would work, since I can see the file in the Windows Explorer tree in Parallels. Or is my Parallels 8 too outdated?
source share