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 7414791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:10:15+00:00 2026-05-29T07:10:15+00:00

I use and Application compiled with the Visual C++ Compiler. It can load plugins

  • 0

I use and Application compiled with the Visual C++ Compiler. It can load plugins in form of a .dll. It is rather unimportant what exactly it does, fact is:

UML Diagram

This includes calling functions from the .dll that return a pointer to an object of the Applications API, etc.

My question is, what problems may appear when the Application calls a function from the .dll, retrieves a pointer from it and works with it. For example, something that comes into my mind, is the size of a pointer. Is it different in VC++ and G++? If yes, this would probably crash the Application?

I don’t want to use the Visual Studio IDE (which is unfortunately the “preferred” way to use the Applications SDK). Can I configure G++ to compile like VC++?

PS: I use MINGW GNU G++

  • 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-29T07:10:16+00:00Added an answer on May 29, 2026 at 7:10 am

    As long as both application and DLL are compiled on the same machine, and as long as they both only use the C ABI, you should be fine.

    What you can certainly not do is share any sort of C++ construct. For example, you mustn’t new[] an array in the main application and let the DLL delete[] it. That’s because there is no fixed C++ ABI, and thus no way in which any given compiler knows how a different compiler implements C++ data structures. This is even true for different versions of MSVC++, which are not ABI-compatible.

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

Sidebar

Related Questions

Is it possible to use a library compiled by visual studio in an application
Is there another way to load MSHTML documents without use Application.ProcessMessages? To load a
Can the application use set same char in the XON and XOFF? If yes,
Lots of times when I use an application that needs perforce access (Visual Studio,
I'm using Visual Studio to create my installation package. My application use some bitmap
If I have Visual Studio 2008 and I target a .NET 2.0 application, can
I'm building an application using Visual Studio 2010 in which I have to use
I try to load a simple DLL compiled with GCC in cygwin into a
we use an application that has an export to excel feature that doesn't work
I am trying to use FIX::Application along with SessionSettings. The Fix server I am

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.