Click here to Skip to main content
15,916,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 16:32
protectorChristian Graus21-Jul-05 16:32 
GeneralRe: Compile program C++ by Visual C++.NET Pin
SAKURAVN21-Jul-05 17:03
SAKURAVN21-Jul-05 17:03 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 17:15
protectorChristian Graus21-Jul-05 17:15 
GeneralRe: Compile program C++ by Visual C++.NET Pin
SAKURAVN21-Jul-05 17:52
SAKURAVN21-Jul-05 17:52 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 17:59
protectorChristian Graus21-Jul-05 17:59 
GeneralRe: Compile program C++ by Visual C++.NET Pin
SAKURAVN21-Jul-05 18:22
SAKURAVN21-Jul-05 18:22 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 18:34
protectorChristian Graus21-Jul-05 18:34 
QuestionHow to insert a number into table in oracle Pin
zwzcode21-Jul-05 15:02
zwzcode21-Jul-05 15:02 
//I create a table A in the Oracle.Please see the follow
CREATE TABLE A
(
ID NUMBER(7) primary key
);

//Now ,I want to insert a reocrd in the table A;

_ConnectionPtr pConn=NULL;

pConn.CreateInstance(__uuidof(Connection));

_RecordsetPtr pRst=NULL;

pRst.CreateInstance(__uuidof(Recordset));

pConn->Provider="OraOLEDB.Oracle.1";

try
{
pConn->Open("","ISVISION","ISVISION",NULL);


pRst->CursorLocation=adUseClient;
pRst->Open("A",pConn.GetInterfacePtr(),adOpenStatic,adLockOptimistic,adCmdTable);

pRst->AddNew();
pRst->Fields->Item[0L]->Value=100L; //But it throw a excpetion here. I dont know the reason. If I alter the datatype of ID to CHAR(10) ,it is all right.
//这里就会出现异常,如果表A的ID的数据类型是CHAR(10)的,又不会出错?
pRst->Update();

pRst->Close();
pConn->Close();
}
catch (_com_error& e)
{
MessageBox(e.Description(),"error",MB_OK|MB_ICONWARNING);
return ;
}

if (pConn)
pConn.Release();
if (pRst)
pRst.Release();
AnswerRe: How to insert a number into table in oracle Pin
Christian Graus21-Jul-05 15:07
protectorChristian Graus21-Jul-05 15:07 
GeneralRe: how to get the lpCmdLine?thanks! Pin
Christian Graus21-Jul-05 15:06
protectorChristian Graus21-Jul-05 15:06 
GeneralRe: how to get the lpCmdLine?thanks! Pin
Rick York22-Jul-05 16:59
mveRick York22-Jul-05 16:59 
GeneralUpgrading to Visual C++.Net 2005 Pin
desmondling7821-Jul-05 14:31
desmondling7821-Jul-05 14:31 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Christian Graus21-Jul-05 14:44
protectorChristian Graus21-Jul-05 14:44 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
desmondling7821-Jul-05 15:51
desmondling7821-Jul-05 15:51 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Christian Graus21-Jul-05 16:06
protectorChristian Graus21-Jul-05 16:06 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
desmondling7821-Jul-05 16:31
desmondling7821-Jul-05 16:31 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Christian Graus21-Jul-05 16:45
protectorChristian Graus21-Jul-05 16:45 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
desmondling7821-Jul-05 17:12
desmondling7821-Jul-05 17:12 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Christian Graus21-Jul-05 17:18
protectorChristian Graus21-Jul-05 17:18 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
desmondling7821-Jul-05 17:29
desmondling7821-Jul-05 17:29 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Christian Graus21-Jul-05 17:33
protectorChristian Graus21-Jul-05 17:33 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Kevin McFarlane22-Jul-05 9:33
Kevin McFarlane22-Jul-05 9:33 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Kevin McFarlane22-Jul-05 9:29
Kevin McFarlane22-Jul-05 9:29 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Kevin McFarlane22-Jul-05 9:27
Kevin McFarlane22-Jul-05 9:27 
GeneralRe: Upgrading to Visual C++.Net 2005 Pin
Kevin McFarlane22-Jul-05 9:20
Kevin McFarlane22-Jul-05 9:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.