calling/making a c++ dll

  • Thread starter Martin Huseby Karlsen
  • Start date
M

Martin Huseby Karlsen

I made a dll in c++ to do some calculations, and i call it from vba ( for
excel XP, also tried it fro access and excel 2000)

Problem is that when i copy the dll to another PC and run the same vba code
i get "run time error 53, dll file not found", on the pc where the dll i
created everything works nice

I've tried to register the dll with regsvr32 and from the vba code, with
"regsvr32 myDll.dll" i get the error "the specified module could not be
found"

I used a "MFC DLL " project in visual studio .net to create the dll, in
basic i followed this example
http://civilu.ce.utexas.edu/stu/goodaljl/c++VBA.htm

Any ideas of what i should do to make the dll run nice on other pc's than
the one the dll i created on ?
 
T

Thomas Matthews

Martin said:
I made a dll in c++ to do some calculations, and i call it from vba ( for
excel XP, also tried it fro access and excel 2000)

Problem is that when i copy the dll to another PC and run the same vba code
i get "run time error 53, dll file not found", on the pc where the dll i
created everything works nice

I've tried to register the dll with regsvr32 and from the vba code, with
"regsvr32 myDll.dll" i get the error "the specified module could not be
found"

I used a "MFC DLL " project in visual studio .net to create the dll, in
basic i followed this example
http://civilu.ce.utexas.edu/stu/goodaljl/c++VBA.htm

Any ideas of what i should do to make the dll run nice on other pc's than
the one the dll i created on ?

DLLs (Dynamic Link Libraries) are not part of the _standard_
C++ language and thus are not discussed in this newsgroup.
For better assistance, research a newsgroup dedicated to your
platform. See the Welcome.txt and FAQs below for further info.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,645
Members
47,243
Latest member
CorrineCad

Latest Threads

Top