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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:46:40+00:00 2026-05-25T23:46:40+00:00

Has anyone noticed that if you import an exe as resource it gets rebased

  • 0

Has anyone noticed that if you import an exe as resource it gets rebased and also seems that its PE header gets rebuilt?

There are times that this is irritating. Does anybody knows how to disable the rebasing!?

steps to reproduce in c++:

1) compile a hello world and manually set its base address (in properties) to lets say 0x1000000

2) make a second project and include the hello world into resources. Also manually set its base address as above.

3) build second project

4) extract the exe from resources and check it with a Pe editor! it gets set back to 0x400000. Why?!

  • 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-25T23:46:41+00:00Added an answer on May 25, 2026 at 11:46 pm

    How are you including the EXE as a resource into the second project?

    Using these defines:

    #define BINFILE 222
    #define IDR_MYFILE 101
    

    If I reference the executable in my .rc file as pointing to the original file, e.g.:

    IDR_MYFILE BINFILE "S:\\mysource\\t1\\Release\\t1.exe"
    

    Then, upon extraction, my embedded EXE resource is not rebased, but maintains what I had built it with.

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

Sidebar

Related Questions

Anyone who has programmed with actionscript 3.0 has most certainly noticed its lack of
Has anyone noticed that intellij 9 broke the auto scroll to source feature? it
Has anyone noticed this behavior? I'm trying to write a script that will trigger
I don't know if anyone has noticed that Eclipse has this annoying feature where
Has anyone used SIFR or Facelift (FLIR) with ASP.net? I noticed that all the
Has anyone else noticed that IE9's standard implementation of CSS box-shadow differs from other
Has anyone else noticed that their command line java applications in OSX create GUI
I noticed that this was asked in the following post . Has anyone used
Has anyone not noticed that JQuery uses ActiveX controls? When a user has limited
I don't know if anyone ELSE has noticed this, but I noticed the jQuery

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.