Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Backup a database into text file Pin
David Crow26-Aug-04 3:55
David Crow26-Aug-04 3:55 
GeneralRe: Backup a database into text file Pin
4apai26-Aug-04 3:56
4apai26-Aug-04 3:56 
GeneralRe: Backup a database into text file Pin
basementman26-Aug-04 8:19
basementman26-Aug-04 8:19 
GeneralRe: Backup a database into text file Pin
4apai26-Aug-04 22:31
4apai26-Aug-04 22:31 
QuestionRight-click menu item to access *.chm manual topic? Pin
Eduardo M. Rey26-Aug-04 3:14
Eduardo M. Rey26-Aug-04 3:14 
AnswerRe: Right-click menu item to access *.chm manual topic? Pin
Blake Miller27-Aug-04 7:25
Blake Miller27-Aug-04 7:25 
GeneralRe: Right-click menu item to access *.chm manual topic? Pin
Eduardo M. Rey27-Aug-04 8:25
Eduardo M. Rey27-Aug-04 8:25 
GeneralCan't open the table in the database. Pin
chocm26-Aug-04 3:11
chocm26-Aug-04 3:11 
I am writing a database application, I use the MS ODBC driver for Oracle. I want to view, edit add/delete records on a Oracle database. After I building the executable, there was NO error, but when I ran the EXE, I knew the database had been connected and opened correctly, because the messagebox had been prompted and showing "the database has been opened", but in the next step, an error messagebox prompted, showing the Runtime-Library error. I don't know where is wrong, and need some help, Thanks!

Here is the code for openning the database and table.

CDatabase m_db;
BOOL flag=FALSE;
flag=m_db.Open(_T("OracleDSN"), FALSE,FALSE,_T("ODBC;UID=ADMIN"));
if(flag)
MessageBox("the database has been opened");
else
MessageBox("failed to open the database");
CRecordset m_recordset(&m_db);
m_recordset.Open(CRecordset::forwardOnly, "select * from table_1");


GeneralRe: Can't open the table in the database. Pin
David Crow26-Aug-04 4:00
David Crow26-Aug-04 4:00 
GeneralRe: Can't open the table in the database. Pin
chocm29-Aug-04 3:35
chocm29-Aug-04 3:35 
GeneralRe: Can't open the table in the database. Pin
chocm31-Aug-04 2:07
chocm31-Aug-04 2:07 
GeneralRe: Can't open the table in the database. Pin
David Crow31-Aug-04 2:28
David Crow31-Aug-04 2:28 
QuestionWhat after GetActiveObject( …. ) ? Pin
anderslundsgard26-Aug-04 3:01
anderslundsgard26-Aug-04 3:01 
AnswerRe: What after GetActiveObject( …. ) ? Pin
4apai26-Aug-04 3:16
4apai26-Aug-04 3:16 
GeneralRe: What after GetActiveObject( …. ) ? Pin
anderslundsgard26-Aug-04 5:16
anderslundsgard26-Aug-04 5:16 
GeneralRe: What after GetActiveObject( …. ) ? Pin
4apai26-Aug-04 22:39
4apai26-Aug-04 22:39 
GeneralRe: What after GetActiveObject( …. ) ? Pin
anderslundsgard26-Aug-04 23:04
anderslundsgard26-Aug-04 23:04 
GeneralBinarytree Pin
.NetRams26-Aug-04 2:21
.NetRams26-Aug-04 2:21 
GeneralRe: Binarytree Pin
4apai26-Aug-04 2:51
4apai26-Aug-04 2:51 
GeneralCListBox, Items underline Pin
Member 130581126-Aug-04 2:14
Member 130581126-Aug-04 2:14 
GeneralRe: CListBox, Items underline Pin
David Salter26-Aug-04 2:45
David Salter26-Aug-04 2:45 
GeneralRe: CListBox, Items underline Pin
Member 130581126-Aug-04 23:46
Member 130581126-Aug-04 23:46 
GeneralRe: CListBox, Items underline Pin
rotu27-Aug-04 0:37
rotu27-Aug-04 0:37 
GeneralInstallShield Developer 7 launching multiple msi from setup/master msi Pin
TssPrasad26-Aug-04 2:14
sussTssPrasad26-Aug-04 2:14 
GeneralUnable to create a server Pin
Anonymous26-Aug-04 2:08
Anonymous26-Aug-04 2:08 

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.