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

  • Home
  • SEARCH
  • 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 5965281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:34:59+00:00 2026-05-22T19:34:59+00:00

I have a MinGW DLL with source code(~20k lines) and I need to use

  • 0

I have a MinGW DLL with source code(~20k lines) and I need to use some classes from this DLL in CLR. At first I tried to write Manged C++ wrapper class for C++ class(that I just copied from the source code) and refer to this class from C#. But there are differences of VC++ compiler and MinGW, hence the native code compiles with some errors! I have no no big experience in C++ and ASM and it produces some troubles.

Tell me guys, is there a way to import a MinGW class in VC++ or C#?

UPD:

Differences MingGW and VC++:

  1. ASM invocation code like


asm("fnstcw %0\n" : "=m" (cw) : : "memory");
asm("fldl (%0)\n": : "r"(x): "st(7)"); };
asm("fstps (%0)\n": : "r"(x): "memory", "st");

not compiles in VC++. I have never written assembler code harder than MOV AX, BX:)

  1. It also executes fortran code and I don’t understand how:)
  • 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-05-22T19:35:00+00:00Added an answer on May 22, 2026 at 7:35 pm

    Few points:

    1. You can’t use C++ DLL, but you can use C DLL as any other native DLL.

      See: http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs

    2. About the code – it changes some FPU options so if you want to port it to C#/.Net
      you should first understand what it does.

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

Sidebar

Related Questions

I have a problem with building a dll with gcc (mingw). From this site
i have a dll, built with mingw one of the header files contains this:
I have some source that can compile with MINGW gcc or with VC++ (but
I created c++ dll (using mingw) from code I wrote on linux (gcc), but
Have you guys had any experiences (positive or negative) by placing your source code/solution
I'm tryin to use boost threads on mingw (TDM-mingw, 32bit based on gcc4.6) from
I downloaded the lasted stable ruby source code from the ruby website (1.9.2-p180) and
I have MinGW on my windows 7 machine. I wish to install and use
I have installed mingW to use gcc, platform windows 7. I am trying to
I started using JNI to call Java classes from C++ some weeks ago and

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.