Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-08-25
7
Medium Priority
?
620 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…
Suggested Courses

636 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