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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:44:29+00:00 2026-05-11T22:44:29+00:00

Horrible title I know, horrible question too. I’m working with a bit of software

  • 0

Horrible title I know, horrible question too. I’m working with a bit of software where a dll returns a ptr to an internal class. Other dlls (calling dlls) then use this pointer to call methods of that class directly:

//dll 1
internalclass m_class;
internalclass* getInternalObject() {
    return &m_class;
}

//dll 2
internalclass* classptr = getInternalObject();
classptr->method();

This smells pretty bad to me but it’s what I’ve got… I want to add a new method to internalclass as one of the calling dlls needs additional functionality. I’m certain that all dlls that access this class will need to be rebuilt after the new method is included but I can’t work out the logic of why.

My thinking is it’s something to do with the already compiled calling dll having the physical address of each function within internalclass in the other dll but I don’t really understand it; is anyone here able to provide a concise explanation of how the dlls (new internal class dll, rebuilt calling dll and calling dll built with previous version of the internal class dll) would fit together?

Thanks,
Patrick

  • 1 1 Answer
  • 1 View
  • 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-11T22:44:29+00:00Added an answer on May 11, 2026 at 10:44 pm

    The client dll’s ‘learn’ the actual address of the class’ functions at load-time by looking at the export table of the serving dll. So as long as the export table stays compatible, no harm is done.

    Compatibility will be broken when your class has a virtual function table, and the functions in it change order. It will also break when linking by ordinal instead of by symbol.

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

Sidebar

Related Questions

Horrible title of this question, I know. Sorry. I have four divs similar to
Horrible title, I know. I want to have some kind of wordwrap, but obviously
The title is horrible, i know; I'm terrible at titles on SO here. I'm
First of all, the title of this question is horrible, but I didn't find
Well, I apologize for the horrible question title. I am not a SQL or
I have bits of horrible code I have to deal with ... <div class=container>
Whilst working on some generally horrible Javascript code this morning, I came across the
My question title isn't clear, sorry. I tried ;) I have a binary string
That's a horrible title, sorry. Here's the scenario: WCF Service uses LINQ to get
Ok, so the title is a bit convoluted. This is basically a greatest-n-per-group type

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.