Solved

"The ordinal 6625 (or 6880) could not be located in the dynamic link library MFC42.DLL"

Posted on 2001-06-13
4
1,395 Views
Last Modified: 2013-11-20
Hi, i've created a software using VC++6.0 and i'm using the InstallShield Express 2.12 to create the installation CD for my software. The CD has been sent to some ppl for testing and a few of them told me they received an error msg of "The ordinal 6625 could not be located in the dynamic link library MFC42.DLL" or  "The ordinal 6880 could not be located in the dynamic link library MFC42.DLL" .. can anyone tell me what does that mean? and how to solve this problem? i've already selected the "MFC" option in the installshield express script..
Can anyone help me to solve this problem? I need help urgently!! (the project deadline is tomorrow)
0
Comment
Question by:rw8
  • 2
4 Comments
 
LVL 3

Expert Comment

by:JackThornton
ID: 6188924
The problem is that something is trying to call a function that doesn't exist in the version of the library (MFC42.DLL) that exists on the target mahine. You didn't say when the error occured (during install or running of your program).
0
 
LVL 3

Accepted Solution

by:
JackThornton earned 100 total points
ID: 6188941
BTW, when you create a DLL, you can export functions by name or by index, or ordinal number. Some programmers (and/or company policies) dictate hiding as much information as possible about their object code, so (for example) instead of calling function "MySecretEncoderFunction" they call function #42. The ordinals referenced mean numbers associated with specific functions in the DLL.

Again, it sounds like it might be a version problem (did MS release multiple versions of MFC*42*.DLL?), which means you may have to install the most current versions of the redistributable files along with your program. You need to take care when doing this; you must ensure that you do not overwrite newer versions of "system" or highly common files with older versions. InstallShield has the capability of comparing versions and providing UI to the user (the familiar "a newer version of xxxx.xxx exists on your machine - do you want to keep it or install the file from this disk blah blah blah?")

- jack
0
 
LVL 32

Expert Comment

by:jhance
ID: 6189196
The MFC DLL on the target system is out of sync with your MFC build environment.  Usually this is due to having a newer MFC library on your system than the target but it can be the other way around.  Often the MFC DLL will get replaced by a program installation even though the existing one is a later version.

Two things are possible:

1) Statically link your EXE with the MFC libs so that there are no dependencies on the target's MFC DLLs.  This results in a larger EXE file but is often the simplest choice.

2) The MFC DLL is redistributable and so you can include it in the installer for your application.
0
 

Author Comment

by:rw8
ID: 6189303
Thanx. The problem comes from a older version of MFC42.DLL was used in the other computers . and were not updated by InstallShield because the user didn't logon as a system administrator. Thanx for your comments.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

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