Solved

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

Posted on 2001-06-13
4
1,415 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
[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
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

726 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