Y
Yacobs
Hello,
I've got a DLL project that I'm compiling using VS.NET 2003. Then I
call functions from it in some VBA code in an Excel spreadsheet. It
works perfectly fine on my computer but as soon as I put the
spreadsheet and DLL file on another person's computer, Excel complains
"Cannot find <the dll>." The DLL is written in C++ but it uses some C#
type stuff like "using" namespaces, etc.
I've searched and found many topics on this that are somewhat similar
but no one seems to give an answer that actually works for me.
I had a somewhat similar issue where I created an .XLL file for Excel
which worked on my computer and wouldnt work on someone else's. I
ended up solving that issue by compiling the project in VS 6 instead
of .NET... however, that is not an option this time since my DLL
references a library that must be compiled in .NET.
It's almost as if there's some DLL file or something that my DLL file
relies on and which only exists on my computer (or computers with .NET
installed?). But I have no way to find this necessary DLL or verify if
this is even the problem.
I tried "regsvr" but it fails saying "LoadLibrary("<the dll>") failed.
Cannot find the specified module."
I tried compiling with "no entry point" as per Microsoft's bug with
managed extensions, but then the DLL fails to work even on my own
computer.
Does anyone have any idea what to do? This is quite urgent and I'd
really appreciate anyone's help.
Thanks so much,
Andrew
I've got a DLL project that I'm compiling using VS.NET 2003. Then I
call functions from it in some VBA code in an Excel spreadsheet. It
works perfectly fine on my computer but as soon as I put the
spreadsheet and DLL file on another person's computer, Excel complains
"Cannot find <the dll>." The DLL is written in C++ but it uses some C#
type stuff like "using" namespaces, etc.
I've searched and found many topics on this that are somewhat similar
but no one seems to give an answer that actually works for me.
I had a somewhat similar issue where I created an .XLL file for Excel
which worked on my computer and wouldnt work on someone else's. I
ended up solving that issue by compiling the project in VS 6 instead
of .NET... however, that is not an option this time since my DLL
references a library that must be compiled in .NET.
It's almost as if there's some DLL file or something that my DLL file
relies on and which only exists on my computer (or computers with .NET
installed?). But I have no way to find this necessary DLL or verify if
this is even the problem.
I tried "regsvr" but it fails saying "LoadLibrary("<the dll>") failed.
Cannot find the specified module."
I tried compiling with "no entry point" as per Microsoft's bug with
managed extensions, but then the DLL fails to work even on my own
computer.
Does anyone have any idea what to do? This is quite urgent and I'd
really appreciate anyone's help.
Thanks so much,
Andrew