Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 3472

@User 3472
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Accessing a _RecordsetPtr returned by ATL in ASP
    U User 3472

    I have an ATL component that passes back an IDispatch of a _RecordsetPtr as the VT_DISPATCH of a VARIANT. e.g. STDMETHODIMP CBASE::GetRecordSet(BSTR sql, VARIANT *Result) { _variant_t vBuffer; ... vBuffer = static_cast(m_recordset); *Result = vBuffer.Detach(); } From my C++ MFC app I can call GetRecordSet() and access the recordset using the pdispVal of the VARIANT .... VARIANT Result; hr = IBaseInst->GetProfile( _bstr_t("SELECT name FROM emps"), &Result); _RecordsetPtr pRecordSet; pRecordSet = Result.pdispVal; if( !pRecordSet->adoEOF) { .... } I am trying to perform similar actions from an ASP page but do not know how to access the recordset correctly. I can access fields assuming they exist using: Dim rs rs = Ibase.GetRecordSet( "SELECT name FROM emps") gName = rs("name") But I can not do much else; rs.bof fails with 'Object doesn't support this property or method'. I obvioulsy need to do something to get at the recordset from the returned VARIANT, but what ? Can anyone help with suggestions or code examples.

    Web Development c++ database help tutorial question

  • Accessing a _RecordsetPtr returned by ATL in ASP
    U User 3472

    I have an ATL component that passes back an IDispatch of a _RecordsetPtr as the VT_DISPATCH of a VARIANT. e.g. STDMETHODIMP CBASE::GetRecordSet(BSTR sql, VARIANT *Result) { _variant_t vBuffer; ... vBuffer = static_cast(m_recordset); *Result = vBuffer.Detach(); } From my C++ MFC app I can call GetRecordSet() and access the recordset using the pdispVal of the VARIANT .... VARIANT Result; hr = IBaseInst->GetProfile( _bstr_t("SELECT name FROM emps"), &Result); _RecordsetPtr pRecordSet; pRecordSet = Result.pdispVal; if( !pRecordSet->adoEOF) { .... } I am trying to perform similar actions from an ASP page but do not know how to access the recordset correctly. I can access fields assuming they exist using: Dim rs rs = Ibase.GetRecordSet( "SELECT name FROM emps") gName = rs("name") But I can not do much else; rs.bof fails with 'Object doesn't support this property or method'. I obvioulsy need to do something to get at the recordset from the returned VARIANT, but what ? Can anyone help with suggestions or code examples.

    Web Development c++ database help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups