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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:16:46+00:00 2026-06-14T21:16:46+00:00

can someone help me write or give an example for a versioned DLL ?

  • 0

can someone help me write or give an example for a versioned DLL ?
I want to create a function that during the compilation – sets all the details of the DLL but I don’t know how to do it , and even how to start or where to start.

  • 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-14T21:16:47+00:00Added an answer on June 14, 2026 at 9:16 pm

    The three steps involved are:

    1. Create a version resource script.
    2. Compile the version resource script using the resource compiler.
    3. Link the compiled resource file (suffix .res) into the DLL.

    Example:

    • main.cpp

      #include <windows.h>
      BOOL APIENTRY DllMain(HMODULE, DWORD, LPVOID) { return TRUE; }
      
    • version.rc

      #define APSTUDIO_READONLY_SYMBOLS
      #include "windows.h"
      #undef APSTUDIO_READONLY_SYMBOLS
      
      LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
      #pragma code_page(1252)
      
      VS_VERSION_INFO VERSIONINFO
       FILEVERSION 1,9,1,7
       PRODUCTVERSION 2,2,2,2
       FILEFLAGSMASK 0x3fL
       FILEFLAGS 0x0L
       FILEOS 0x40004L
       FILETYPE 0x1L
       FILESUBTYPE 0x0L
      BEGIN
          BLOCK "StringFileInfo"
          BEGIN
              BLOCK "080904b0"
              BEGIN
                  VALUE "CompanyName", "My Company.\0"
                  VALUE "FileDescription", "My File\0"
                  VALUE "FileVersion", "1.9.1.7\0"
                  VALUE "InternalName", "my-real-file\0"
                  VALUE "LegalCopyright", "Copyright © 2012 My Company Ltd.\0"
                  VALUE "OriginalFilename", "my.dll\0"
                  VALUE "PrivateBuild", "820\0"
                  VALUE "ProductName", "My Company: my dll\0"
                  VALUE "ProductVersion", "2.2.2.2\0"
              END
          END
          BLOCK "VarFileInfo"
          BEGIN
              VALUE "Translation", 0x809, 1200
          END
      END
      

    From the command-line:

    > rc version.rc
    
    > cl /nologo /LD main.cpp version.RES
    main.cpp
    
    

    This creates a main.dll with a Version tab.

    Caveat: It has been quite a while since I looked at this and have forgotten what all the content in version.rc script means.

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

Sidebar

Related Questions

can someone help to write a method that converts a byte array to a
Greetings, can someone give me some advices or links that will help me to
Can someone give me a simple example of how to write text in a
Can someone help me understand how to write this case statement properly its not
Can someone help me with creating functions for the following processes? I want to
Can someone help me on how to setup such a result: Want to know
Can someone help me with the correct use of the split function in perl
I cannot get text-overflow: ellipsis; to work... Maybe someone can give ma some help
I've never been much for math and I'm hoping that someone can help me
Can someone help me achieve multiple zend pagination in a view using ajax. I

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.