?
Solved

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

Posted on 2004-08-25
7
Medium Priority
?
611 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

777 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