新手求教,VC/MFC ADO如何连接Oracle数据库并且插入记录的?

新手求教,VC/MFC ADO怎么连接Oracle数据库并且插入记录的??
这个数据库在ip:10.30.16.29的机器上
数据库类型:oracle

username:kxbariii

password:stepiii

datebase:STEPDEVE_10.30.16.29


表名:KXBARIII.BOARD_CHECKWELD



------解决方案--------------------
bool OpenDBInstance( char *pProvider, char *pSource, char *pUserID, char *pPassWd )
{
m_pConn = NULL;

_bstr_t strDBConnection = "Provider= ";
strDBConnection += pProvider;
strDBConnection += ";Data Source= ";
strDBConnection += pSource;
strDBConnection += ";User ID= ";
strDBConnection += pUserID;
strDBConnection += ";Password= ";
strDBConnection += pPassWd;
strDBConnection += "; ";


try
{
// 创建连接接口
if( NULL == m_pConn )
{
if( FAILED( m_pConn.CreateInstance( __uuidof( Connection ) ) ) ) // 产生一个实例。
{
m_pConn = NULL;
AfxMessageBox( "创建数据库连接接口失败 ");
return false;
}
}


// 打开连接
if( FAILED( m_pConn-> Open( strDBConnection, " ", " ", adModeUnknown ) ) )
{
return false;
}

m_pConn-> CursorLocation = adUseClient;

}
catch( _com_error& e ) // 捕捉异常
{
_bstr_t desc = e.Description();
_bstr_t source = e.Source();

CString strMsg;
strMsg.Format( "建立数据库连接时发生错误:%s,原因:%s,描述:%s! ",
(char*)source, (char*)desc );
strMsg += "\n ";

return false;
}


return true;
}