Vc中关于Word的编程(表格)-Vc on the Word of programming (Forms) 下载
|
VC++中进行word表格的填写,编译后能够直接运行,并且能够方便提取出复用代码。-VC for word forms to fill in, directly compiled to run convenient and can extract reusable code. 下载
|
在实际应用中,编程者往往喜欢程序能自动生成word说明文档,说明程序运行的状况或运行的结果;或者程序能提取数据库的内容生成word表格,使用户能方便的查看和修改,打印。但是VC++中调用word的确不容易,特别是对word中各种函数的使用,本文以作者的工作经验详细介绍一下如何调用word和进行word表格的填写,有同样需求的编友也可查看一下MSDN中的Automation Microsoft Office 97 and Microsoft office 2000。-in practical application, programming procedures are often like word can be automatically generated documentation, a description of the proceedings or the status of running the operation; Or procedure can extract the contents of the database generated word form so that the users can easily view and modify, print. But VC Calling word is not easy, especially for word the various function, the author of the paper work experience tell us in detail how to call word for word and fill in the forms, with the same demand for the series Friends can also check MSDN Automation of Microsoft Office 97 and Microsoft Office 2000 . 下载
|
该词法分析程序用VC++ 6.0编写,以FileOpenDialog打开的*.c或*.cpp文件为语言字集的源程序作为词法分析程序的输入数据,经词法分析程序分析后的结果保存在源文件的同目录的output.txt文件中。在词法分析中,自文件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将它翻译成固定长度的单词内部表示,并查填适当的信息表。经过词法分析后,源程序字符串(源程序的外部表示)被翻译成具有等长信息的单词串(源程序的内部表示),并产生两个表格:常数表和标识符表,它们分别包含了源程序中的所有常数和所有标识符。-the lexical analysis procedures used to prepare VC 6.0 to FileOpenDialog open *. c *. cpp documents or language character sets for the source as lexical analysis of the data entry process, the analysis of lexical analysis procedures after the results stored in the same source file directory paper output.txt . The lexical analysis, the first since the paper began scanning source characters, once found with "words" definition of the source string, it will be translated into fixed length of the internal word, and to identify the appropriate information filled table. After lexical analysis, source string (source said external) has been translated into information such as a long string of words (internal source said), and produce two forms : Constant table and table identifier, namely 下载
|