Compile resource into the executable

xiaoxiao2021-03-06  59

Be a .rc file, it is text format, the content is as follows:

Resource Name Type Resource Files in Windows Mycur1 Cursor 28.cur // Add Cursor Mycur2 Cursor 29.Cur // Add Cursor MyCur3 Cursor 30.Cur // Add Cursor Myico1 Icon Ico.ico // Add Icon BMP1 Bitmap 1. BMPBMP2 Bitmap 2.BMP

Note that you should put those files in the same directory.

Then find a file called Brcc32.exe, run, put the .rc file as a parameter, will automatically generate a .res' file, then call this resource file in the program, the resource call should be

转载请注明原文地址:https://www.9cbs.com/read-118406.html

New Post(0)