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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:55:29+00:00 2026-06-18T21:55:29+00:00

I have a C++ project under Visual Studio 2010 which compiles into a dll.

  • 0

I have a C++ project under Visual Studio 2010 which compiles into a dll. I have several private implementation-specific classes defined in my project, e.g. CMyClass. This class is not exported from the dll or by any interface function. However, when I check generated dll file, there is a string “CMyClass” stored in it. It is a release build, and I don’t want this string to appear in the dll file. This dll is shipped to customers, and I want all names I used in my project to be stripped off the dll file, so nobody can get such a simple clue on what algorithms we use in our dll.

I use Release configuration. In project properties, the “Generate Debug Info” option under linker tab is turned off, the “Debug Information Format” under C/C++ tab is set to “Program Database (/Zi)”. I tried to set empty string for “Debug Information Format” with no success.

The string found in the dll looks like .?AVCMyClass@@ and is located at the very end of the dll file. It is the only occurrence of the “CMyClass” string in the dll file. However, this string is presented for almost all my internal classes.

How to get rid of these mentions?

Update

Please note, I don’t want to obfuscate the source code itself. The provided link is irrelevant. I just see no reason why class names are stored in the dll file. I can always rename my classes prior to build, but it is not very straight solution.

Update2

I don’t agree with community on closing this qustion, since this is not a duplicate. And the answer is given in comments by Tyler Gill. Thanks to him and shame on others.

  • 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-18T21:55:30+00:00Added an answer on June 18, 2026 at 9:55 pm

    As my guess from a comment appears correct, I’m reposting this as an answer.

    The string of the class name is a result of having RTTI (Runtime Type Information) enabled for the compiled binaries. When RTTI is enabled, the compiler creates objects that store information about the types compiled into the binary, one of whose properties is the name of the type.

    Note that some uses of dynamic_cast and typeid require RTTI, so disabling will cost you those features of C++.

    In order to disable RTTI in Visual Studio, use the /GR- switch (see http://msdn.microsoft.com/en-us/library/we6hfdy0(v=vs.100).aspx, as Mikhail posted.)

    To disable it in GCC, use the -fno-rtti switch.

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

Sidebar

Related Questions

I have a visual studio-2010 project which contains lots of source files and header
I have a Visual Studio 2010 Database project, from which I want to generate
I have a Windows project in Visual Studio 2010 in which I store all
I have a web project targeting .NET Framework 2 under Visual Studio 2010. The
I have created a sample c++ project under Visual Studio 2010 with following files.
I have a C# project that I have created in Visual Studio Express 2010.
I have created a simple windows forms visual studio 2010 project in windows 7
I have been trying to include DirectX in C sharp project (Visual Studio 2010).
I have an MFC C++ project compiler under Visual Studio 2008. I'm adding a
I have a Visual Studio 2010 Ultimate C++ project ( not managed or .NET).

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.