绝对可用 在网上找了一圈
文档也看了一圈 没一个能真正用的
所以我综合了一下 做出了这个供大家使用
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5998 2010-03-13 16:04 testdatabasedlliceFuncGui.h
文件 393216 2010-04-27 16:24 testdatabasedllicePubDll.dll
文件 40004 2010-04-27 16:24 testdatabasedllicePubDll.lib
文件 1731 2012-01-04 11:39 testdatabasedllodbc.clw
文件 2533 2010-02-23 17:56 testdatabasedllodbc.cpp
文件 4169 2012-01-04 11:40 testdatabasedllodbc.dsp
文件 516 2009-09-16 13:46 testdatabasedllodbc.dsw
文件 1393 2009-09-24 17:29 testdatabasedllodbc.h
文件 227088 2010-02-23 18:48 testdatabasedllodbc.ilk
文件 1856 2012-01-04 11:39 testdatabasedllodbc.plg
文件 1627 2009-09-25 11:39 testdatabasedllodbcDlg.h
文件 3543 2009-09-16 13:46 testdatabasedllReadMe.txt
文件 1142 2009-09-25 10:53 testdatabasedll
esource.h
文件 206 2009-09-16 13:46 testdatabasedllStdAfx.cpp
文件 1227 2010-02-27 22:00 testdatabasedllStdAfx.h
文件 135168 2012-01-04 11:35 testdatabasedll est.mdb
文件 96 2012-01-04 11:28 testdatabasedll est.txt
文件 7358 2010-03-11 16:46 testdatabasedll
esodbc.ico
文件 396 2009-09-16 13:46 testdatabasedll
esodbc.rc2
文件 3474432 2012-01-04 11:39 testdatabasedllReleaseodbc.bsc
文件 50688 2012-01-04 11:39 testdatabasedllodbc.opt
文件 6079 2012-01-04 11:28 testdatabasedllodbc.rc
文件 42916 2012-01-04 11:28 testdatabasedllodbc.aps
文件 10190 2012-01-04 11:38 testdatabasedllodbcDlg.cpp
文件 32768 2012-01-04 11:39 testdatabasedll estdatabase.exe
目录 0 2012-01-04 10:52 testdatabasedll
es
目录 0 2012-01-04 10:52 testdatabasedllRelease
目录 0 2012-01-04 10:52 testdatabasedll
文件 148480 2012-01-04 11:40 testdatabasedllodbc.ncb
----------- --------- ---------- ----- ----
............此处省略2个文件信息
// odbc.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “odbc.h“
#include “odbcDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COdbcApp
BEGIN_MESSAGE_MAP(COdbcApp CWinApp)
//{{AFX_MSG_MAP(COdbcApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COdbcApp construction
COdbcApp::COdbcApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only COdbcApp object
COdbcApp theApp;
SQLHENV m_henv = NULL;
SQLHDBC m_hdbc = NULL;
SQLHSTMT hStmt = NULL;
char gfields[128]gconditions[256];
/////////////////////////////////////////////////////////////////////////////
// COdbcApp initialization
BOOL COdbcApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
COdbcDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
int COdbcApp::ExitInstance()
{
// TODO: Add your specialized code here and/or call the base class
icePub_databaseDisConnect(m_henv m_hdbc hStmt);
return CWinApp::ExitInstance();
}
void COdbcApp::AddToRecentFileList(LPCTSTR lpszPathName)
{
// TODO: Add your specialized code here and/or call the base class
CWinApp::AddToRecentFileList(lpszPathName);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5998 2010-03-13 16:04 testdataba
文件 393216 2010-04-27 16:24 testdataba
文件 40004 2010-04-27 16:24 testdataba
文件 1731 2012-01-04 11:39 testdataba
文件 2533 2010-02-23 17:56 testdataba
文件 4169 2012-01-04 11:40 testdataba
文件 516 2009-09-16 13:46 testdataba
文件 1393 2009-09-24 17:29 testdataba
文件 227088 2010-02-23 18:48 testdataba
文件 1856 2012-01-04 11:39 testdataba
文件 1627 2009-09-25 11:39 testdataba
文件 3543 2009-09-16 13:46 testdataba
文件 1142 2009-09-25 10:53 testdataba
esource.h
文件 206 2009-09-16 13:46 testdataba
文件 1227 2010-02-27 22:00 testdataba
文件 135168 2012-01-04 11:35 testdataba
文件 96 2012-01-04 11:28 testdataba
文件 7358 2010-03-11 16:46 testdataba
esodbc.ico
文件 396 2009-09-16 13:46 testdataba
esodbc.rc2
文件 3474432 2012-01-04 11:39 testdataba
文件 50688 2012-01-04 11:39 testdataba
文件 6079 2012-01-04 11:28 testdataba
文件 42916 2012-01-04 11:28 testdataba
文件 10190 2012-01-04 11:38 testdataba
文件 32768 2012-01-04 11:39 testdataba
目录 0 2012-01-04 10:52 testdataba
es
目录 0 2012-01-04 10:52 testdataba
目录 0 2012-01-04 10:52 testdataba
文件 148480 2012-01-04 11:40 testdataba
----------- --------- ---------- ----- ----
............此处省略2个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)