VC中的string table(

导读:

   VC中的string table

  近来发现对VC中还是有很多的不懂,其中有一个不懂的就是string table.

  今天要记录的东东是:

  假如某一个string table是

  /nTest42/nTest42/n/n/nTest4264.Document/nTest42 Document

  那么:

  这么核心的东西才给20分

  第一个/nTest42标书主窗口的标题

  第二个/nTest42是新文件名

  紧接着的两个/n,其中的第一个用在file open 和save对话框中的标志符

  第二个是用于file open 和save对话框的过滤器中的扩张类型

  nTest4264.Document是注册文件类型

  nTest42 Document是注册文件类型名

  IDR_MAINFRAME /n /n /n

   /n /n /n

   /n /n

  

  The following table defines each of the substrings:

  Substring Definition

  

  Name that appears in the application window's title bar (for example, "Microsoft Excel"). Present only in the document template for SDI applications.

  

  Root for the default document name (for example, "Sheet"). This root plus a number is used for the default name of a new document of this type whenever the user chooses the New command from the File menu (for example, "Sheet1" or "Sheet2"). If not specified, "Untitled" is used as the default.

  

  Name of this document type. If the application supports more than one type of document, this string is displayed in the File New dialog box (for example, "Worksheet"). If not specified, the document type is inaccessible using the File New command.

  

  Description of the document type and a wildcard filter matching documents of this type. This string is displayed in the List Files Of Type drop-down list in the File Open dialog box (for example, "Worksheets (*.XLS)"). If not specified, the document type is inaccessible using the File Open command.

  

  Extension for documents of this type (for example, ".XLS"). If not specified, the document type is inaccessible using the File Open command.

  

  Identifier for the document type to be stored in the registration database maintained by Windows. This string is for internal use only (for example, "ExcelWorksheet").If not specified, the document type cannot be registered with the Windows File Manager.

  

  Name of the document type to be stored in the registration database. This string may be displayed in dialog boxes of applications that access the registration database (for example, "Microsoft Excel Worksheet").

  查看原贴

  

  

  免费网络赚钱教程,一步一步教你轻轻松松赚钱!

  

  

  本网站最新开发的天天收藏夹(www.ttscj.com),定制你的主页!



本文转自

http://www.supercss.com/User/BBScenter/c5-0-2-9483-0-1-1.htm
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: VC String 是一种C ++字符串类,可以处理不同编码的字符串,包括多国语言。这意味着VC String可以支持许多不同的字符集,并且可以将数据从一个字符集转换为另一个字符集。 VCString使用Unicode,这是一种通用字符编码标准,它可以表示世界上所有语言的字符。这意味着无论用户在哪个国家,他们都可以使用他们自己的语言编写和读取字符串。 在多语言应用程序VC String特别有用。当应用程序需要处理多种语言时,VC String可以自动检测和转换各种字符集。这样,应用程序就可以在不同的地方运行而不会出现乱码或字符无法识别的问题。 VC String支持的一些字符集包括ASCII、Unicode、UTF-8和UTF-16等等。因此,它可以在处理任何文本数据时都保持准确性和完整性。无论是在开发桌面,移动还是Web应用程序,VC String都是一个强而有力的工具,可确保应用程序的正确性、可靠性和易读性。 ### 回答2: VC++字符串string可以支持多国语言。因为不同的语言有不同的字符集和编码方式,因此在处理不同语言的字符串时需要特别注意编码问题。VC++string类可以使用多种不同的编码方式,如ASCII编码、Unicode编码(UTF-16和UTF-8)等,以支持不同语言的字符串处理。 在使用string类处理多国语言字符串时,需要根据实际情况选择不同的编码方式,比如在处理字符串时常选用UTF-8编码,因为UTF-8可以表示全世界大部分字符,包括文和日文等字符。而在处理一些欧洲语言时,常选用Unicode UTF-16编码,因为这些语言所使用的字符集较小,可以用UTF-16表示。 除了编码方式外,string类还提供了一些成员函数来处理不同语言之间的字符串。比如,可以使用成员函数find或substr来查找和截取字符串的某个子串,这个子串可以是任何语言的字符序列。此外,string类还提供了转换函数,如stoi、stof、stod等,可以将包含数字的字符串转换为数字类型,这些数字类型可以在各个国家和地区通用。 总之,VC++string类支持多国语言处理,可以通过不同编码方式和成员函数,处理各种语言的字符串,同时满足不同地区的需求。 ### 回答3: VC++(Visual C++)是一种语言,它可以在Windows操作系统上开发程序。在VC++,可以使用多种编程语言,如C++、C#、VB等。而其C++就包含了string类,是STL(Standard Template Library)的一个模板类,用于处理字符串。 在VC++string类可以处理多国语言的字符串,包括文、英文、日文、韩文等。由于不同国家的字符编码不同,所以需要使用不同的编码方式来处理不同语言的字符串。 在VC++,可以使用ANSI、Unicode、UTF-8等不同的编码方式来处理字符串。对于不同的编码方式,需要使用不同的字符集对字符串进行处理。例如,在Unicode编码方式,一个字符占用两个字节的空间,而在ANSI编码方式,一个字符占用一个字节的空间。 因此,在使用VC++的string类处理多国语言的字符串时,需要根据不同的语言和字符编码方式来选择合适的字符集和编码方式。对于一些复杂的多字节字符编码方式,例如UTF-8编码方式,需要使用专门的库来进行处理,以保证字符串的正确性和可读性。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值