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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:00:19+00:00 2026-05-28T00:00:19+00:00

What could prevent me from linking with a third-party .lib built with Visual Studio

  • 0

What could prevent me from linking with a third-party .lib built with Visual Studio 2008 in a program that I compile with Visual Studio 2005? Thanks

  • 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-28T00:00:20+00:00Added an answer on May 28, 2026 at 12:00 am

    Update: This applies to DLLs only, which was the original question. With static libraries, all hope is lost.

    I’ll try to summarize a few facts:

    • The ABI itself is compatible, so any code that uses the same definitions for all data types and function signatures is fine, but
    • System internal structure definitions and system include files may have changed, except
    • Parts of the ABI are defined to be either fixed or backwards compatible.

    Thus it is safe to call functions and methods, passing data types that are entirely (that is, including their members) defined

    • in the header files matching the DLL, or
    • in an IDL file (because these are meant to never change once published), or
    • in another header file, including system headers, if the definition is guaranteed to be fixed

    For pointer members, the rule is relaxed if the pointer is never dereferenced.

    Now the tricky part:

    • The internal data structures of the system allocator are not part of the unchanging set. As a pointer to allocated memory is also a pointer to the allocation structure immediately preceeding it, the never-dereference rule applies. Thus:
      • it is not safe to deallocate memory that was passed in, with the exception of CoTaskMemAlloc()/CoTaskMemFree().
      • a virtual destructor can only be called if the object was created inside the DLL (it is the new-expression that counts here, not whether the constructor is exported)
      • a nonvirtual destructor can only be called if the object was created outside the DLL.
    • The STL is not part of the unchanging set, so any struct containing STL types is unsafe.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using visual studio 2008 I have a control that dispays a processed image.
Click here to see what I mean.. What could prevent these two from sitting
Could anyone tell me if SQL Server 2008 has a way to prevent keywords
How could I prevent esc from closing a dialog box? I searched for this
Using Visual C++ 2008 Express Edition. I'm linking my application with an import library
Does anyone have any ideas on how you could prevent a user from posting
In the CE based Windows Mobile you could prevent the screen back-light from timing
I'm creating an application that requires passing email addresses around in querystrings and linking
So as the title says i want to prevent user from keep submiting $_POST
I'm using the Ubercart product and product_kit modules. This is great at linking from

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.