Click here to Skip to main content
15,918,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General[Q]Using the MAPI Pin
Member 431523-Nov-99 18:04
Member 431523-Nov-99 18:04 
QuestionMDI custom tile with open/close of childeren? Pin
Michael Peters19-Nov-99 19:45
Michael Peters19-Nov-99 19:45 
AnswerRE: MDI custom tile with open/close of childeren? Pin
Martin Speiser19-Nov-99 23:51
Martin Speiser19-Nov-99 23:51 
GeneralRE: RE: MDI custom tile with open/close of childeren? Pin
Martin Speiser20-Nov-99 0:04
Martin Speiser20-Nov-99 0:04 
Generalmpeg extraction Pin
kai23-Nov-99 5:15
kai23-Nov-99 5:15 
QuestionOnDraw, how can I get the rectangle that is painting ? Pin
Braulio Diez22-Nov-99 22:48
sussBraulio Diez22-Nov-99 22:48 
AnswerRE: OnDraw, how can I get the rectangle that is painting ? Pin
Henk Devos23-Nov-99 9:33
Henk Devos23-Nov-99 9:33 
AnswerRE: OnDraw, how can I get the rectangle that is painting ? Pin
Anonymous24-Nov-99 14:56
suss Anonymous24-Nov-99 14:56 
GeneralTrying to print with a CWinThread... Pin
Braulio Diez23-Nov-99 1:18
sussBraulio Diez23-Nov-99 1:18 
GeneralCHtmlView Pin
Thierry Mathieu22-Nov-99 20:50
sussThierry Mathieu22-Nov-99 20:50 
GeneralBasic OOP question... Pin
Braulio Diez22-Nov-99 20:32
sussBraulio Diez22-Nov-99 20:32 
GeneralRE: Basic OOP question... Pin
Paul Selormey22-Nov-99 20:55
Paul Selormey22-Nov-99 20:55 
GeneralThanks but... Pin
Braulio Diez22-Nov-99 21:20
sussBraulio Diez22-Nov-99 21:20 
GeneralRE: Thanks but... Pin
Henk Devos23-Nov-99 9:27
Henk Devos23-Nov-99 9:27 
GeneralRE: Basic OOP question... Pin
sandrine22-Nov-99 22:07
sandrine22-Nov-99 22:07 
GeneralRE: RE: Basic OOP question... Pin
Braulio Diez23-Nov-99 1:57
sussBraulio Diez23-Nov-99 1:57 
GeneralRE: RE: RE: Basic OOP question... Pin
Anonymous23-Nov-99 7:41
suss Anonymous23-Nov-99 7:41 
GeneralRe: Basic OOP question... Pin
Member 147421-Apr-00 11:01
Member 147421-Apr-00 11:01 
GeneralDebugging Control Panel Applets Pin
Farzad Bakhtiar9-Apr-00 21:56
sussFarzad Bakhtiar9-Apr-00 21:56 
GeneralGetFieldValue() throws an exception Pin
Stefan20-Nov-99 5:25
Stefan20-Nov-99 5:25 
I have a code like this

CString cSQL;
CDatabase db;
db.OpenEx( NULL, CDatabase::forceOdbcDialog );

CRecordset tbl( &db );

cSQL.Format( "SELECT * FROM tablename WHERE ID = %d", nID );
tbl.Open( CRecordset::forwardOnly, cSQL );

try {
tbl.GetFieldValue( "ID", cSQL );
tbl.GetFieldValue( "ID", cSQL );
}
catch( CException* e ) {
char szCause[255];
e->GetErrorMessage( szCause, 255 );
e->Delete();
}

The first GetFieldValue() call gets appropriate value into cSQL variable.
But on the second GetFieldValue() call I get CDBException and
the value of szCause is "" - empty string and m_nRetCode member of
CException object is 100.

What is wrong in this code?

Any help would be very helpful.

Thanks in advance.

Stefan


GeneralRE: GetFieldValue() throws an exception Pin
Member 40424-Nov-99 9:38
Member 40424-Nov-99 9:38 
GeneralRe: a step by step running Pin
goldmount19-Nov-04 3:25
goldmount19-Nov-04 3:25 

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.