-
大小: 765KB文件类型: .rar金币: 2下载: 0 次发布日期: 2021-05-11
- 语言: C/C++
- 标签: 多国语言 c++builder 源码
资源简介
多国语言 c++builder
bcb6编写
bcb6编写

代码片段和文件信息
//---------------------------------------------------------------------------
#define _UNICODE
#define MAX_COUNT 50
#include
#pragma hdrstop
#include “D1.h“
//#include “help.h“
#include
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link “TntMenus“
#pragma link “TntStdCtrls“
#pragma link “TntComCtrls“
#pragma resource “*.dfm“
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::English1Click(Tobject *Sender)
{
this->English1->Checked=True;
this->Language1->Caption=L“Language“;
this->File1->Caption=L“File“;
this->Open1->Caption=L“Open“;
this->Close1->Caption=L“Close“;
this->Save1->Caption=L“Save“;
this->Edit1->Caption=L“Edit“;
this->Cut1->Caption=L“Cut“;
this->Copy1->Caption=L“Copy“;
this->Paste1->Caption=L“Paste“;
this->Abou1->Caption=L“Help“;
this->AbouttheProgram1->Caption=L“About the Program“;
/*Form2->TntStaticText1->Caption=L“Multi-language test program“;
Form2->TntStaticText2->Caption=L“Copyright (C) 2010 “;
Form2->TntStaticText3->Caption=L“ Author: lhy “;
Form2->TntButton1->Caption=L“OK“; */
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormShow(Tobject *Sender)
{
this->English1->RadioItem=true;
this->Spain1->RadioItem=true;
this->ChineseTraditional1->RadioItem=true;
this->ChineseSimplified1->RadioItem=true;
this->English1->Checked=True;
this->TntRichEdit1->Text=L““;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Spain1Click(Tobject *Sender)
{
this->Spain1->Checked=True;
this->ReadInifile(2);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ChineseTraditional1Click(Tobject *Sender)
{
this->ChineseTraditional1->Checked=True;
this->ReadInifile(1);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ChineseSimplified1Click(Tobject *Sender)
{
this->ChineseSimplified1->Checked=True;
this->ReadInifile(0);
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void __fastcall TForm1::AbouttheProgram1Click(Tobject *Sender)
{
//Form2->ShowModal();
}
void __fastcall TForm1::ReadInifile(int n)
{
TCHAR dir[MAX_PATH];
TCHAR file[MAX_COUNT]open[MAX_COUNT];
TCHAR close[MAX_COUNT]save[MAX_COUNT];
TCHAR edit[MAX_COUNT]cut[MAX_COUNT];
TCHAR copy[MAX_COUNT]paste[MAX_COUNT];
TCHAR help[MAX_COUNT]about[MAX_COUNT];
TCHAR text1[MAX_COUNT]text2[MAX_COUNT];
TCHAR text3[MAX_COUNT]language[M
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4918 2010-08-28 14:14 Demoproject\D1.cpp
文件 51 2010-08-28 14:20 Demoproject\D1.ddp
文件 2484 2010-08-28 14:01 Demoproject\D1.dfm
文件 2011 2010-08-28 14:01 Demoproject\D1.h
文件 108151 2010-08-28 14:37 Demoproject\D1.obj
文件 4906 2010-08-28 12:22 Demoproject\D1.~cpp
文件 51 2010-08-28 14:08 Demoproject\D1.~ddp
文件 2484 2010-08-28 14:01 Demoproject\D1.~dfm
文件 2011 2010-08-28 14:01 Demoproject\D1.~h
文件 3535 2010-08-27 18:22 Demoproject\Demo.bpr
文件 1066 2010-08-27 17:51 Demoproject\Demo.cpp
文件 37888 2010-09-10 15:30 Demoproject\Demo.exe
文件 17850 2010-08-28 14:37 Demoproject\Demo.obj
文件 876 2010-08-27 17:50 Demoproject\Demo.res
文件 2293760 2010-09-10 15:31 Demoproject\Demo.tds
文件 3494 2010-08-27 17:51 Demoproject\Demo.~bpr
文件 3539 2010-08-28 14:20 Demoproject\Demo1.bpr
文件 1066 2010-08-28 14:09 Demoproject\Demo1.cpp
文件 17790 2010-08-28 14:13 Demoproject\Demo1.obj
文件 876 2010-08-28 14:06 Demoproject\Demo1.res
文件 2293760 2010-08-28 14:20 Demoproject\Demo1.tds
文件 3539 2010-08-28 14:09 Demoproject\Demo1.~bpr
文件 763 2010-08-28 14:15 Demoproject\help.cpp
文件 51 2010-08-28 14:20 Demoproject\help.ddp
文件 2914 2010-08-28 12:27 Demoproject\help.dfm
文件 1099 2010-08-28 12:26 Demoproject\help.h
文件 56944 2010-08-28 12:30 Demoproject\help.obj
文件 763 2010-08-28 14:15 Demoproject\help.~cpp
文件 51 2010-08-28 14:15 Demoproject\help.~ddp
文件 2914 2010-08-28 12:27 Demoproject\help.~dfm
............此处省略9个文件信息
相关资源
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- 安科瑞智能电能表MODBUS通讯程序 VC6
- 九齐单片机源码
- Qt画图工具源码(qgraphics draw)
- qt 串口助手源码
- modbus 主机源码
- 《LINUX C编程从初学到精通》光盘源码
- OLED驱动源码
- tm1650+stm32f103源码(board_tm1650.c)
- cheat engine 7.2源码
- CrySearch内存搜索器源码
- FTP客户端源码(c++)
- MFC视频播放器源码(支持avi/wma/mp3等格
- CreatBitmap图片合成源码
- vs2008 can总线通讯源码
- 宠物管理系统课程设计(源码+数据库
- Windows扩展命令程序(源码)
- c语言实现火车订票系统(控制台)源
- 鼠标连点器(附源码)
- c++ 简易贪吃蛇源码
- 杀毒软件源码
- 经典外汇智能交易程序Amazing3.1源码(
- 微型文件系统源码(FatFs)
- 海康私有流分析接口源码(附使用说
- VC6 USB开发源码
- SVM算法实现(源码+文档)
- 俄罗斯方块游戏源码(Tetris)
- 步进电机控制(源码+文档)
- c++ 定时关机程序源码
评论
共有 条评论