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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:52:49+00:00 2026-06-10T04:52:49+00:00

My question is a little bit stupid but I decided to ask advanced programmers

  • 0

My question is a little bit stupid but I decided to ask advanced programmers like some of you. So I want to make a “dynamic” C++ program. My idea is to compile it and after compilation (maybe with scripting language like python) to change some how the code of the program. I know you will tell me that after the compilation I can not change the code but is there a way of doing that. Thank you!

  • 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-06-10T04:52:51+00:00Added an answer on June 10, 2026 at 4:52 am

    The only way to do that in C++ is to unload the DLL with the code to be
    modified, modify the sources, invoke the compiler to regenerate the DLL,
    and reload the DLL. It’s very, very heavy weight, and it only works if
    the compiler is present on the machines where the code is to be run.
    (Usually the case under Unix, rarely the case with Windows.)

    Interpreted languages like Python are considerably more dynamic; Python
    has a built-in function to execute a string as Python code, for example.
    If you need dynamically modifiable code, I’d suggest embedding Python in
    your application, and using it for the dynamic parts.

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

Sidebar

Related Questions

Maybe it's a little bit stupid question, but I didn't find an answer. Is
It is look like same question but mine little bit different. Entity Framework 4
My question may sound a little bit stupid. My team has to test a
I have little bit longer question for you - but hope answer will be
This question may seem a little bit stackoverflow-implementation specific, but I have seen a
This might be a little bit odd question, but Im trying to figure out
Refining my question little bit this time. :D I have this function, but instead
my question is a little bit strange, but how is it possible to read
The question is a little bit weird, but that's what I need ;) Usually,
I have written a stupid little game and want to have some kind of

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.