1.在VC中新建一控制台程序,选支持MFC(当然,你也可以不选择支持MFC的,不过会很麻烦)
2.按CTRL+W调出MFC ClassWizard,Add Class->From a type library,选择你的word的类型库 (例如我的是word2003,安装在e盘,我的路径是"e:\edittools\microsoft office\office11\msword.olb"), 选择完毕后,在弹出的窗口中选择要让classwizard生成的包装类,在本例中要用到 _Application, Documents, _Document, Range 这四个类,选中他们后按OK 3.进入你的main函数所在的cpp文件,加入头文件引用 #include "msword.h" //引用刚才classwizard生成的idispatch包装类 4.加入代码 ……
| ||
![]() |
#5 得分:0
回复于: 2012-04-26 17:28:48
将数据导入到oracle数据库请参考:
OCI Programming Basics This chapter introduces you to the basic concepts involved in programming with the OCI. This chapter covers the following topics: Overview of OCI Programming OCI Program Structure OCI Data Structures Handles Descriptors OCI Programming Steps OCI Environment Initialization Processing SQL Statements Commit or Rollback Terminating the Application Error Handling Additional Coding Guidelines Using PL/SQL in an OCI Program OCI Globalization Support OCI Database Globalization Support Functions Overview of OCI Programming |