CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Ordinals?

  1. #1
    Guest

    Ordinals?

    Help!
    Error message: "the ordinal 6491 could not be located in the dynamic link library mfc42.dll"

    What the heck are ordinals? Everything with this project works fine on the machine it was built on. however, after copying the release executable
    to a new machine, I keep getting this error. Even after installing NT SP4...
    Program is quite small, doesn't do much except read in data from a serial port.Built w/ VC++ 6.0



  2. #2
    Guest

    Re: Ordinals?

    Ordinals are another way to locate functions in a DLL. You have probably got a later version of mfc42.dll on your build machine than on your release machine - it is trying to find an MFC function which exists in your build machine's version of mfc42.dll, but not in your release machine's version.

    Try copying over mfc42.dll from your build machine to your release machine. You will find it in \winnt\system32 on your build machine, and I suggest that you copy it to the same directory as your executable on your release machine, so that you don't screw up any other MFC applications which are using the old version.

    I don't know why they didn't call their different versions mfc50.dll, mfc60.dll etc.

    HTH


  3. #3
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: Ordinals?

    I found mfc42.dll to be backward compatible but not forward.
    What I mean by this is that older apps can work with new versions
    of the library but newer apps will not work with older versions of it.

    I agree with you though, why they didn't change at least the name
    of the DLL is beyond be. It should probably be mfc43 or mfc44.
    As it is, you don't know what version you have without looking at
    its date which is not totally reliable or you try to run something that
    gives an error. I was bit by this when I went from v4.2 to v5.0 and
    I have heard that it happens again when you go to v6.0.

    How can it be the same version if there are different functions in it ?
    Isn't there something about this in those logo requirements ?



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured