在Visual Studio 2012中向资源添加文件(例如file.exe)的步骤是什么,以便可以使用 FindResource(hInstance,MAKEINTRESOURCE(idResource),MAKEINTRESOURCE(RC_BINARYTYPE))查找资源; 请尝试进入资源视图"并右键单击* .rc,但我不知道如何添加RC_BINARYTYPE部分解决方案在Visual Studio 2015中,MOHW的回答并没有帮助我,但这可行: program.rc文件: IDR_TIMS_FILE RCDATA"C:\\ Users \\ Tim \\ Desktop \\ Binary.dat" program.cpp文件: src = FindResource(NULL,MAKEINTRESOURCE(id),RT_RCDATA); Please this might sound newbie - ish but I just couldn't get it to work since...What is the steps to add a file (say file.exe) to resource in Visual Studio 2012 so that I can find the resource with FindResource(hInstance, MAKEINTRESOURCE(idResource), MAKEINTRESOURCE(RC_BINARYTYPE));Please I have tried Going to the Resource View and right clicking on the *.rc but I don't know how to add the RC_BINARYTYPE part 解决方案 In VisualStudio 2015, MOHW's answer didn't help me but this worked:program.rc file:IDR_TIMS_FILE RCDATA "C:\\Users\\Tim\\Desktop\\Binary.dat"program.cpp file:src = FindResource(NULL, MAKEINTRESOURCE(id), RT_RCDATA); 这篇关于将二进制文件添加到Visual Studio中的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!