Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GetlastError() returning 87 when i use EndPage() in my printing application Pin
kir_MFC11-Jan-10 22:24
kir_MFC11-Jan-10 22:24 
QuestionRe: GetlastError() returning 87 when i use EndPage() in my printing application Pin
CPallini11-Jan-10 22:45
mveCPallini11-Jan-10 22:45 
GeneralRe: GetlastError() returning 87 when i use EndPage() in my printing application Pin
WoutL12-Jan-10 1:08
WoutL12-Jan-10 1:08 
AnswerRe: GetlastError() returning 87 when i use EndPage() in my printing application [modified] Pin
Covean11-Jan-10 21:45
Covean11-Jan-10 21:45 
QuestionNavigating to a folder using CFileDialog Pin
maycockt11-Jan-10 20:46
maycockt11-Jan-10 20:46 
AnswerRe: Navigating to a folder using CFileDialog Pin
KingsGambit11-Jan-10 21:18
KingsGambit11-Jan-10 21:18 
AnswerRe: Navigating to a folder using CFileDialog Pin
Code-o-mat11-Jan-10 22:08
Code-o-mat11-Jan-10 22:08 
QuestionOracle describe Pin
rdop11-Jan-10 19:45
rdop11-Jan-10 19:45 
Hi All

I have a problem to use command "describe tablename" in mfc vc++."Describe tablename" is working well in oracle SQl plus.

Here is code
_ConnectionPtr m_pConn;
_RecordsetPtr pRecordset;

m_pConn->Open (_bstr_t ("Provider=OraOLEDB.Oracle;PLSQLRSet=1;Data Source=orcl"),_bstr_t ("system"), _bstr_t ("password"), adModeUnknown);
	pCommand->ActiveConnection = m_pConn;
CString fileddetail="describe supplier";
pRecordset=m_pConn->Execute(_bstr_t(fileddetail), 0, adCmdText);

Error is here
OraOLEDB Error: -2147217900 ORA-00900: invalid SQL statement IDispatch error #3092

Connection part is working well.
I know some member told me this is a DBA forum question why you post here.But one thing describe or DESC command is working well in oracle.So i think it's a question of MFC VC++.
Please help me
AnswerRe: Oracle describe Pin
xushih13-Jan-10 1:08
xushih13-Jan-10 1:08 
QuestionDiference between hash_map and hash_multi map. how to implement hash_multimap in VS2008 (for C++) Pin
Nandu_77b11-Jan-10 19:26
Nandu_77b11-Jan-10 19:26 
AnswerRe: Diference between hash_map and hash_multi map. how to implement hash_multimap in VS2008 (for C++) Pin
_AnsHUMAN_ 11-Jan-10 19:32
_AnsHUMAN_ 11-Jan-10 19:32 
GeneralRe: Diference between hash_map and hash_multi map. how to implement hash_multimap in VS2008 (for C++) Pin
Nandu_77b12-Jan-10 0:21
Nandu_77b12-Jan-10 0:21 
QuestionSplit header in clistcontrol Pin
itkid11-Jan-10 19:25
itkid11-Jan-10 19:25 
AnswerRe: Split header in clistcontrol Pin
Rolf Kristensen13-Jan-10 11:52
Rolf Kristensen13-Jan-10 11:52 
QuestionConnectivity with data base Pin
Le@rner11-Jan-10 19:03
Le@rner11-Jan-10 19:03 
AnswerRe: Connectivity with data base Pin
SandipG 11-Jan-10 20:17
SandipG 11-Jan-10 20:17 
AnswerRe: Connectivity with data base Pin
KingsGambit11-Jan-10 20:44
KingsGambit11-Jan-10 20:44 
QuestionMFC - CAsyncSocket class Pin
liz311-Jan-10 17:31
liz311-Jan-10 17:31 
AnswerRe: MFC - CAsyncSocket class Pin
Naveen11-Jan-10 18:39
Naveen11-Jan-10 18:39 
AnswerRe: MFC - CAsyncSocket class Pin
Cool_Dev11-Jan-10 19:21
Cool_Dev11-Jan-10 19:21 
GeneralRe: MFC - CAsyncSocket class Pin
liz311-Jan-10 21:56
liz311-Jan-10 21:56 
GeneralRe: MFC - CAsyncSocket class Pin
Moak11-Jan-10 22:37
Moak11-Jan-10 22:37 
GeneralRe: MFC - CAsyncSocket class Pin
liz312-Jan-10 19:03
liz312-Jan-10 19:03 
QuestionC++ CODE FOR VENDING MACHINE Pin
queenzz11-Jan-10 16:19
queenzz11-Jan-10 16:19 
AnswerRe: C++ CODE FOR VENDING MACHINE Pin
Richard MacCutchan12-Jan-10 0:45
mveRichard MacCutchan12-Jan-10 0:45 

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.