rc资源文件的中英文应用备忘
准备好RC文件,例如Quarter.rc:
stringtable
begin
1000, "29"
2000, "第一季度"
2001, "第二季度"
2002, "第三季度"
2003, "第四季度"
2004, "一季报"
2005, "中报"
2006, "三季报"
2007, "年报"
2008, "报告期"
2009, "从"
2010, "到"
2011, "或"
2012, "时间"
2013, "常用时间查询"
2014, "自定义年度查询"
2015, "自定义时间查询"
2016, "筛选条件"
2017, "全部资料"
2018, "请选择时间范围"
2019, "开始时间:"
2020, "结束时间:"
2021, "确认"
2022, "放弃"
2023, "年到"
2024, "年"
2025, "一季"
2026, "中报"
2027, "三季"
2028, "年报"
3000, "Quarter 1"
3001, "Quarter 2"
3002, "Quarter 3"
3003, "Quarter 4"
3004, "Q1 Report"
3005, "Mid-Year Report"
3006, "Q3 Report"
3007, "Annualreport"
3008, "ReportDate"
3009, "From"
3010, "To"
3011, "Or"
3012, "Date"
3013, "Common Time Span"
3014, "User-Defined Year"
3015, "User-Defined Time Span"
3016, "Select by"
3017, "All Related Data"
3018, "Select Time Period"
3019, "Begin Time:"
3020, "End Time:"
3021, "OK"
3022, "Cancel"
3023, "To"
3024, ""
3025, "Q1"
3026, "Q2"
3027, "Q3"
3028, "Q4"
End
begin
1000, "29"
2000, "第一季度"
2001, "第二季度"
2002, "第三季度"
2003, "第四季度"
2004, "一季报"
2005, "中报"
2006, "三季报"
2007, "年报"
2008, "报告期"
2009, "从"
2010, "到"
2011, "或"
2012, "时间"
2013, "常用时间查询"
2014, "自定义年度查询"
2015, "自定义时间查询"
2016, "筛选条件"
2017, "全部资料"
2018, "请选择时间范围"
2019, "开始时间:"
2020, "结束时间:"
2021, "确认"
2022, "放弃"
2023, "年到"
2024, "年"
2025, "一季"
2026, "中报"
2027, "三季"
2028, "年报"
3000, "Quarter 1"
3001, "Quarter 2"
3002, "Quarter 3"
3003, "Quarter 4"
3004, "Q1 Report"
3005, "Mid-Year Report"
3006, "Q3 Report"
3007, "Annualreport"
3008, "ReportDate"
3009, "From"
3010, "To"
3011, "Or"
3012, "Date"
3013, "Common Time Span"
3014, "User-Defined Year"
3015, "User-Defined Time Span"
3016, "Select by"
3017, "All Related Data"
3018, "Select Time Period"
3019, "Begin Time:"
3020, "End Time:"
3021, "OK"
3022, "Cancel"
3023, "To"
3024, ""
3025, "Q1"
3026, "Q2"
3027, "Q3"
3028, "Q4"
End
用此RC文件编译成res文件,然后在代码中加上 {$R Quarter.res}
从RC编译成RES文件有2个方法
1. 直接添加到工程中,build就可以了
2. 用命令brcc32 FileName.rc 编译