Solved

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

Posted on 2004-08-25
7
596 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
Comment Utility
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
Comment Utility
BTW, first of all, make sure that you built a release version instead of a debug version.
0
 
LVL 19

Expert Comment

by:drichards
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Author Comment

by:mammouth
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now