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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:25:17+00:00 2026-05-24T14:25:17+00:00

I need to use functions in a compiled C++ resource i have. How can

  • 0

I need to use functions in a compiled C++ resource i have.

How can i use the functions in the compiled resource and have the main program use this library i have?

I have this code:

log("INFO","THIS IS A TEST MESSAGE");

That should pull the function from the file i have. This

  • 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-24T14:25:18+00:00Added an answer on May 24, 2026 at 2:25 pm

    Update (old answer removed)

    Since you have elaborated on the need to load pre-compiled code in through “plugins”. This is typically done through a mechanism known as “dynamic loading”. In Windows, this is accomplished through the use of DLL (Dynamic Link Libraries) files. DLL files are libraries of compiled code that a running program “load in” on demand.. The running program can load the DLL and query for addresses to function pointers with known names. For example, a “logging” DLL may export a “Log” function. And if someone else wants to provide an alternate implementation (and can register the path to their DLL with the program in some sort of configuration file), they merely have to supply their own DLL which exports the same set of functions with the exact same signature. And there are useful abstractions known as COM for loading (C++) interfaces, but I digress.

    In Unix operating systems, the equivalent of DLLs is known as “shared libraries” or “.so” files.

    Here’s some relevant links:

    http://en.wikipedia.org/wiki/Dynamic-link_library

    http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

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

Sidebar

Related Questions

I need to use system-specific functions, e.g. ftello() (defined in stdio.h as per POSIX
I've never really had the need to use any drag functions until now, so
I need to use year() and month() functions in Criteria API to be able
I want to use a case statement in my user-defined functions because I need
I need to use a function inside of another function, how can I do
I've got a compiled resource file (.res). I need to read it, in C#,
My current program need to use programatically create a XPathExpression instance to apply to
I compiled the following code: // Triangle.cpp // Our first OpenGL program that will
I need to use some functions from the Win32 Crypto API, such as CryptQueryObject.
I have some question about cygwin : Can I use Cygwin develop socket based

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.