Compile resource file to .rc.data (Not on replit)

This is not in relation to replit at all, I just want help.
How would I compile a .rc file to a .rc.data file in 64 bit on Windows?

1 Like

Hi @Cal1umY30 !
ChatGPT has given a possible solution:


To compile a .rc file to a .rc.data file on a 64-bit Windows system, you can use the rc.exe resource compiler, which is typically included with the Windows SDK. Here are the steps to do it:

  1. Install Windows SDK (if not already installed):
    If you haven’t already installed the Windows SDK, you can download and install it from the official Microsoft website.

  2. Open Command Prompt:
    Open a command prompt with administrative privileges. To do this, search for “cmd” or “Command Prompt” in the Windows Start menu, right-click it, and select “Run as administrator.”

  3. Navigate to the Directory:
    Use the cd command to navigate to the directory where your .rc file is located. For example:

    cd C:\Path\To\Your\Project
    
  4. Compile the Resource Script:
    Use the rc.exe command to compile the .rc file. Make sure to specify the appropriate architecture, in this case, 64-bit. You can use the /fo flag to specify the output file name (.rc.data). Here’s an example command:

    rc.exe /r /fo YourResource.rc.data YourResource.rc
    

    Replace YourResource with the actual name of your resource file.

  5. Verify the Output:
    If there are no errors in your .rc file, this command should compile it into a .rc.data file. You can check the same directory where your .rc file is located for the generated .rc.data file.

That’s it! You’ve successfully compiled your .rc file to a .rc.data file on a 64-bit Windows system using the Windows SDK resource compiler (rc.exe).


1 Like