Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8112741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:36:31+00:00 2026-06-06T02:36:31+00:00

I faced following issue with my work: having two projects: MFC .dll and MFC

  • 0

I faced following issue with my work: having two projects: MFC .dll and MFC .exe based on same source code (except entry points of course), I observe different results produced by them when processing same data. I have checked all projects settings for both and found all project properties similar (at least those I think are important). After running several tests I learned following:

  1. MFC .exe produces same results on same dataset in both ‘Debug’ and ‘Release’ modes
  2. MFC .dll produces Different results on same dataset for ‘Debug’ and ‘Release’ modes
  3. .dll’s ‘Release’ results don’t match with .dll’s ‘Debug’ results nor with any of .exe’s ‘Debug’ or ‘Release’ results.

I suppose .exe works correctly just because it gives same results for both compiler configurations, but I can’t check this for sure. So, how this issure with .dll ‘Release’ configuration can be resolved? I mean, how can I force it coincide with others? What does explain such behaviour?

Edit

I guess problem occurs because I use host application written on Delphi. I even created new C++ exe to test this suggestion and saw it worked normal, without any mistakes. Only difference is that creating DLL to be used in Delphi application I marked it extern “C”, but for C++ application I wrote just extern. Details of another discussion on this topic can be found here. But if try to use DLL with only extern mark, without “C”, my Delphi application reports that function entry point couldn’t be located there… It is a big question for me now why this happens… Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:36:34+00:00Added an answer on June 6, 2026 at 2:36 am

    Check the values of the 8087 Control Word for each of the hosts. I’m pretty sure that the Microsoft C uses a different value to that which Delphi uses. In the more recent Delphi versions, you have functions such as Set8087CW and the wrappers like SetPrecisionMode and SetRoundMode. But you will probably want to set them specifically in your DLL, and then restore them to the original at the end of your calculation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I faced the following issue while I submitting my form using jQuery FORM and
I am faced with the following issue and at this point I feel like
I faced following issue: I need to check is the paired device via Bluetooth
Recently I published my open source java game server code to github and faced
I am faced with the following issue. Consider the following class: //Will be similar
I'm wondering if anyone has faced this issue. Let's assume I have two tables:
I'm using NHibernate 2.2 for my database work and I've faced an issue recently.
I've faced with following issue, basically I do it like this: class Account(models.Model): TraffPerMonth
I am faced with the following issue. I need to capture a range of
I'm faced with the following and I'm not sure what's best practice. Consider the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.