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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:04:26+00:00 2026-06-09T07:04:26+00:00

I have a GUI class which stores pointers to functions which are triggered on

  • 0

I have a GUI class which stores pointers to functions which are triggered on events such as a mouse down event. I would love to be able to read and write the chunk of memory which that function is stored in out a file and later load it back into memory like a DLL. Is there anyway to do this? Also I am fully aware of script interpreters such as Lua or Python but I want to actually write out a C++ function.

  • 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-09T07:04:27+00:00Added an answer on June 9, 2026 at 7:04 am

    There’s no practical way to do this. The problem is that parts of the function may be optimized away or inlined or split into pieces by the compiler. Furthermore, you’ll likely have issues with linking, calling conventions, and the like. Finally, the function might depend on global state in which case it won’t work anyway.

    You’re best bet is to define a serialization format that represents a sequence of calls to a particular set of core functions in your applicaton. Or just use a scripting language, which is the same thing except better and done for you. Lua is very light weight to embed.

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

Sidebar

Related Questions

I have a class (simulation) which creates an instance of another class (GUI). Inside
I have various class which perform save and update operations of GUI elements, it
I have three classes, one main class, one GUI class which uses awt+swing to
i have rather very basic question. I have one GUI class and another which
I have to set up a Qt development environment for my GUI class. I
I have a class like this class GUI : public QWidget, public QThread When
I have a GUI tool that manages state sequences. One component is a class
Say I have two classes, and neither of them are GUI components. Class A
I have a GUI app written in C++/CLI which has a load of configurable
I have a GUI created in Glade, and I would like to populate the

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.