Solved

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

Posted on 2001-06-13
4
1,373 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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