Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWriting CString to file - problems Pin
Berkut27-May-03 3:11
Berkut27-May-03 3:11 
GeneralRe: Writing CString to file - problems Pin
David Crow27-May-03 3:16
David Crow27-May-03 3:16 
GeneralRe: Writing CString to file - problems Pin
John M. Drescher27-May-03 3:23
John M. Drescher27-May-03 3:23 
GeneralRe: Writing CString to file - problems Pin
Peter Weyzen27-May-03 8:00
Peter Weyzen27-May-03 8:00 
GeneralOfficeXP-like Menus Pin
Xakep27-May-03 3:01
Xakep27-May-03 3:01 
GeneralRe: OfficeXP-like Menus Pin
John R. Shaw27-May-03 5:35
John R. Shaw27-May-03 5:35 
Generalinserting records with ado Pin
si_6927-May-03 2:45
si_6927-May-03 2:45 
GeneralRe: inserting records with ado Pin
John M. Drescher27-May-03 4:42
John M. Drescher27-May-03 4:42 
You don't want to open a record set for this call. See the following code:

   _ConnectionPtr pCon;<br />
<br />
    _RecordsetPtr pRecordset;<br />
    pCon = m_pConnection ;  //  Please see previous examples and how to use ADO Connection object<br />
<br />
<br />
        // string I/O stream<br />
    basic_stringstream<wchar_t> strSQLStatement;<br />
    variant_t vntRecordAffected;<br />
<br />
    strSQLStatement <<L"INSERT INTO Access(Name, HTML) VALUES('myName', 'myHTML' ) ";<br />
    bstr_t strSQLstmt = strSQLStatement.str().c_str();<br />
<br />
    try<br />
    {<br />
        pCon->Execute(strSQLstmt, &vntRecordAffected, adCmdText );<br />
    }<br />
    catch( _com_error &e)<br />
    {<br />
        // get info from _com_error<br />
        _bstr_t bstrSource(e.Source());<br />
        _bstr_t bstrDescription(e.Description());<br />
        TRACE("%s", e.ErrorMessage());<br />
      }<br />
    catch(...)<br />
    {<br />
        TRACE("*** UNHANDELED EXCEPTION ***");<br />
    }

GeneralRe: inserting records with ado Pin
si_6927-May-03 4:58
si_6927-May-03 4:58 
GeneralRe: inserting records with ado Pin
John M. Drescher27-May-03 5:10
John M. Drescher27-May-03 5:10 
GeneralRe: inserting records with ado Pin
si_6927-May-03 5:19
si_6927-May-03 5:19 
GeneralRe: inserting records with ado Pin
John M. Drescher27-May-03 5:28
John M. Drescher27-May-03 5:28 
GeneralExplorer Bar Question Pin
YuHao27-May-03 2:39
YuHao27-May-03 2:39 
GeneralRe: Explorer Bar Question Pin
Rage27-May-03 5:49
professionalRage27-May-03 5:49 
GeneralRe: Explorer Bar Question Pin
YuHao27-May-03 19:22
YuHao27-May-03 19:22 
GeneralVC6 add in: print to Build output window Pin
peterchen27-May-03 1:45
peterchen27-May-03 1:45 
GeneralMDI with multiple views and one document Pin
Andy@27-May-03 1:43
Andy@27-May-03 1:43 
GeneralCreateDialogIndirect doesn't return Pin
CHAIGNEAU27-May-03 1:40
CHAIGNEAU27-May-03 1:40 
GeneralRe: CreateDialogIndirect doesn't return Pin
Rage27-May-03 5:33
professionalRage27-May-03 5:33 
GeneralRe: CreateDialogIndirect doesn't return Pin
Rage27-May-03 5:36
professionalRage27-May-03 5:36 
GeneralRe: CreateDialogIndirect doesn't return Pin
CHAIGNEAU27-May-03 9:30
CHAIGNEAU27-May-03 9:30 
GeneralProblems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra27-May-03 1:21
Miguel Segarra27-May-03 1:21 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev27-May-03 5:36
Ivor S. Sargoytchev27-May-03 5:36 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev28-May-03 10:12
Ivor S. Sargoytchev28-May-03 10:12 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra28-May-03 23:09
Miguel Segarra28-May-03 23:09 

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.