现在想在VC下编写通过ADO访问SQL Serer的DLL,让Borland C++Builder使用?DLL实现的功能就是例如添加记录,返回记录集等操作,那么DLL该如何编写?在Borland C++Builder中编写通过ADO访问数据库的程序时,有ADO访问控件,现在通过VC编写的DLL来实现,是不是就不用Borland C++ Builder中的控件了?在VC中通过ADO访问数据库时,要把ADO导入,那么在编写访问数据库的DLL时,ADO该怎么导入呀?
解决方案 »
- 这个问题折腾了很久,没搞懂
- 有谁用过CSizingControlBar这个实现窗体停靠的类,有问题想请教!
- 求XMLFlow的源码!
- 如何用vc编程控制WIN2000中主板逢鸣器的声音?
- 请问一下BOOL和bool有什么区别吗?
- 串口通讯为什么会出现63?
- 编程高手&CS高手:CS 服务器命令谁有?
- 这句话是什么意思啊!???CWbView::CWbView() : m_Document( (CWnd *)this ), m_pWndParent(NULL)
- 快到新年了,小旭在这里祝大家:新年快乐 马到成功。(内空)
- 请问如何初始化Windows公用对话框??谢谢
- 如何使图片跟据键盘事件移动图像显示的位置?
- 请问%8.3f输出文本如何对齐
// or project specific include files that are used frequently, but
// are changed infrequently
//#if !defined(AFX_STDAFX_H__424F0C54_75BC_4F56_BA1E_4E583AE24E5E__INCLUDED_)
#define AFX_STDAFX_H__424F0C54_75BC_4F56_BA1E_4E583AE24E5E__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxdisp.h> // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT
#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h> // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h> // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT/*#import "c:\program files\common files\system\ado\msado15.dll"rename ("EOF", "adoEOF")
rename_namespace("ado20");
using namespace ado20;*/
/*#import "c:\Program Files\common Files\system\ado\msado15.dll" rename ("EOF","adoEOF") rename_namespace("ado20")
using namespace ado20;*/
#import "C:\WINNT\system32\Msstdfmt.dll" no_namespace
#pragma warning(disable:4146)
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" named_guids rename("EOF","adoEOF"), rename("BOF","adoBOF")
#pragma warning(default:4146)
using namespace ADODB; //{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__424F0C54_75BC_4F56_BA1E_4E583AE24E5E__INCLUDED_)
bcb直接调用ADO也可以阿。