Click here to Skip to main content
15,921,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRecord the number of command clicks on the main GUI Pin
Golden Lee9-Mar-08 1:47
Golden Lee9-Mar-08 1:47 
GeneralRe: Record the number of command clicks on the main GUI Pin
Rajkumar R9-Mar-08 3:08
Rajkumar R9-Mar-08 3:08 
QuestionDLL Plugins Pin
Ivan-bg9-Mar-08 1:18
Ivan-bg9-Mar-08 1:18 
GeneralRe: DLL Plugins Pin
CPallini9-Mar-08 3:48
mveCPallini9-Mar-08 3:48 
GeneralRe: DLL Plugins Pin
Ivan-bg9-Mar-08 4:50
Ivan-bg9-Mar-08 4:50 
GeneralRe: DLL Plugins Pin
CPallini9-Mar-08 5:46
mveCPallini9-Mar-08 5:46 
GeneralRe: DLL Plugins Pin
Chris Losinger9-Mar-08 15:46
professionalChris Losinger9-Mar-08 15:46 
GeneralOpen Excel file,Error Pin
TaoteSea8-Mar-08 23:21
TaoteSea8-Mar-08 23:21 
Open Excel file,Error

_ConnectionPtr m_adoConn;
_RecordsetPtr m_adoRec;
::CoInitialize(NULL);
m_adoConn.CreateInstance(__uuidof(Connection));
m_adoConn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\1.xls;Extended Properties=Excel 8.0;IMEX=1;","","",adModeUnknown);


stop this function:
inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}

why error
thankSmile | :)

Blog:
http://taotesea.spaces.live.com

QuestionRe: Open Excel file,Error Pin
CPallini8-Mar-08 23:34
mveCPallini8-Mar-08 23:34 
GeneralRe: Open Excel file,Error Pin
Hamid_RT9-Mar-08 0:46
Hamid_RT9-Mar-08 0:46 
Questionwhat are the differences among try...catch,__try...__except and try...finally? [modified] Pin
kcynic8-Mar-08 19:17
kcynic8-Mar-08 19:17 
AnswerRe: what are the differences among try...catch,__try...__except and try...finally? Pin
Rajkumar R8-Mar-08 21:43
Rajkumar R8-Mar-08 21:43 
GeneralRe: what are the differences among try...catch,__try...__except and try...finally? Pin
kcynic8-Mar-08 22:01
kcynic8-Mar-08 22:01 
GeneralRe: what are the differences among try...catch,__try...__except and try...finally? Pin
Mircea Puiu8-Mar-08 22:15
Mircea Puiu8-Mar-08 22:15 
GeneralRe: what are the differences among try...catch,__try...__except and try...finally? Pin
kcynic8-Mar-08 22:28
kcynic8-Mar-08 22:28 
GeneralRe: what are the differences among try...catch,__try...__except and try...finally? Pin
Rajkumar R9-Mar-08 3:47
Rajkumar R9-Mar-08 3:47 
GeneralRe: what are the differences among try...catch,__try...__except and try...finally? Pin
kcynic9-Mar-08 14:57
kcynic9-Mar-08 14:57 
AnswerRe: what are the differences among try...catch,__try...__except and try...finally? Pin
Rajkumar R9-Mar-08 21:33
Rajkumar R9-Mar-08 21:33 
GeneralRe: what are the differences among try...catch,__try...__except and try...finally? Pin
kcynic9-Mar-08 21:36
kcynic9-Mar-08 21:36 
QuestionMultithread and GDI Issues Pin
kanduripavan8-Mar-08 18:03
kanduripavan8-Mar-08 18:03 
GeneralRe: Multithread and GDI Issues Pin
rp_suman8-Mar-08 21:53
rp_suman8-Mar-08 21:53 
GeneralRe: Multithread and GDI Issues Pin
Cedric Moonen8-Mar-08 23:09
Cedric Moonen8-Mar-08 23:09 
GeneralRe: Multithread and GDI Issues Pin
kanduripavan9-Mar-08 2:26
kanduripavan9-Mar-08 2:26 
GeneralRe: Multithread and GDI Issues Pin
Cedric Moonen9-Mar-08 2:34
Cedric Moonen9-Mar-08 2:34 
GeneralRe: Multithread and GDI Issues Pin
kanduripavan9-Mar-08 2:49
kanduripavan9-Mar-08 2:49 

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.