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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:36:32+00:00 2026-05-11T05:36:32+00:00

Is there any way to manually decorate function names in MS C++? I’m going

  • 0

Is there any way to manually decorate function names in MS C++? I’m going to guess any solution would be Microsoft-specific, and I’m cool with that.

Alternatively, is there a way to declare the function ‘??_M@YGXPAXIHP6EX0@Z@Z‘ so the compiler can understand it? FYI, undname lists it as:

void _ _ stdcall `eh vector destructor iterator'(void * , unsigned int, int, void (_ _thiscall * )(void * ))

Obviously, the compiler is not happy with apostrophes in my identifers.

EDIT:
The solution was actually extremely simple. I complied the obj’s, and hexedited the desired decorated names right over my placeholder names, padding them with nulls. The linker ate it right up, no questions asked. The functions are stubs, calling external functions so I don’t have to keep hexediting every time I make a small change.

Thanks for the ideas everyone.

  • 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. 2026-05-11T05:36:33+00:00Added an answer on May 11, 2026 at 5:36 am

    If you declare your function as extern ‘C’ and use the linker option that disables underscore prefix, the name you give in the code is the name you’ll have in the .obj file. But this won’t solve all your problems, since the compiler will balk when you try to declare a function with special characters in the name.

    I guess the solution (which is a lot of work IMO) is to give to the desired functions unique names in the source code (like PLACEHOLDER_01) and then replace these in the .obj file. You’ll need somehow to parse the object file and change the symbol names.

    Notice also that `eh vector destructor iterator’ is a mangled name, the real (symbol) name shouldn’t have apostrophes or spaces in it. When dumping the .obj/.dll, you’ll have to disable name-mangling.

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

Sidebar

Related Questions

Is there any way on manually doing the create function? I have an scaffold,
Is there any way to manually create fold points in code in Eclipse? I
Is there any way to manually remove an object which the garbage collection refuses
My question is very simple: is there any way to (programmatically, technically, or manually)
Is there any way to trigger a function that's called when the user types
Is there any way to know that whether the application has been invoked manually
Is there any way to make an ireport export to excel as Microsoft ReportViewer
Is there any way to manually fire the DOMContentLoaded event? I'm trying to write
Is there any way how to call JQuery function from PageLoad C# file? Basically
Is there any way of achieving a similar versioning solution on a CDN (

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.