Solved

LoadLibrary("MyCom.dll") failed - The specified module could not be found.

Posted on 2004-08-25
7
601 Views
Last Modified: 2012-08-14
I made a Com dll.
I build it on my own computer with visual studio .net under window XP.

On my computer, i can put it under windows\system32 and regsvr32 MyCom.dll.
But when i put this dll on other computer and ty to run regsvr32 , i got error
LoadLibrary("MyCom.dll") failed - The specified module could not be found.

What could be the problem or what can i do???
0
Comment
Question by:mammouth
  • 3
  • 2
  • 2
7 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 11893870
Get the dependency walker from www.dependencywalker.com to see which DLLs are missing on the "other" machine.
0
 
LVL 86

Expert Comment

by:jkr
ID: 11893875
BTW, first of all, make sure that you built a release version instead of a debug version.
0
 
LVL 19

Expert Comment

by:drichards
ID: 11894328
The dependency walker should tell you what's missing.  It is likely that it is some runtime files needed by VC7-built executables.  If so, here are a few links to information about redistributing VC7-built executables.  The second link describes how to use dependency walker to also see what libraries are loaded dynamically (if any), as well as using DUMPBIN to get dependencies.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcoriredistributingmfcatloledbtemplatesapplications.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vccondeterminingwhichdllstoredistribute.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconredistributingmicrosoftvisualc60applications.asp
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 1

Author Comment

by:mammouth
ID: 11895032
I got those warning:

Linking...
.\Netclub.def : warning LNK4222: exported symbol 'DllCanUnloadNow' should not be assigned an ordinal
.\Netclub.def : warning LNK4222: exported symbol 'DllGetClassObject' should not be assigned an ordinal
.\Netclub.def : warning LNK4222: exported symbol 'DllRegisterServer' should not be assigned an ordinal
.\Netclub.def : warning LNK4222: exported symbol 'DllUnregisterServer' should not be assigned an ordinal
   Creating library .\ReleaseMinDependency/Netclub.lib and object .\ReleaseMinDependency/Netclub.exp
LINK : warning LNK4199: /DELAYLOAD:mtxex.dll ignored; no imports found from mtxex.dll
0
 
LVL 86

Expert Comment

by:jkr
ID: 11895055
Well, that does not really address your problem. What does the dependency walker say on the target machine?
0
 
LVL 1

Author Comment

by:mammouth
ID: 11895127
It give me : error opening file. The system cannot find the specified file (2) for those 3. i will copy them and test again.

MFC71.DLL  
MSVCR71.DLL
APPHELP.DLL
0
 
LVL 19

Expert Comment

by:drichards
ID: 11895243
The ...71.dll's are the C and MFC runtime files that go with VC7.  See the first link in the previous list.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Template syntax for variable length arrays 9 75
Unable to start eclipse ? 17 153
C++ mouse_event mouse look 7 94
Why  my code (program) build with old compiler? 11 75
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question