没错,我在stdafx.h中加入了 #import "c:\...\msado10.dll" no_namespace rename("EOF","adoEOF") 的语句,但是报错提示window.h already include,mfc must not include <window.h> 编译不通过,why?
如果有MSDN帮助光盘,则Samples\VC98\mfc\database\daoctl是其实例。 也可到微软网站上搜DAOCTL: ActiveX Control Container with Data Bound Controls。This sample shows how to build an ActiveX™ control container that contains data bound controls. The container provides the controls with data from a Microsoft Access database via DAO不知对你是否有用。
#import "c:\...\msado10.dll" no_namespace rename("EOF","adoEOF")
的语句,但是报错提示window.h already include,mfc must not include <window.h>
编译不通过,why?
然后自己加了#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
就可以使用了,我写的是MFC ActiveX ControlWizard
也可到微软网站上搜DAOCTL: ActiveX Control Container with Data Bound Controls。This sample shows how to build an ActiveX™ control container that contains data bound controls. The container provides the controls with data from a Microsoft Access database via DAO不知对你是否有用。