Click here to Skip to main content
15,914,444 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Stripping HTML using ASP Pin
Erik Thompson21-Jun-00 21:58
sitebuilderErik Thompson21-Jun-00 21:58 
GeneralRe: Stripping HTML using ASP Pin
Chris Maunder21-Jun-00 22:30
cofounderChris Maunder21-Jun-00 22:30 
GeneralRe: Stripping HTML using ASP Pin
Uwe Keim25-Jun-00 18:36
sitebuilderUwe Keim25-Jun-00 18:36 
QuestionHow Can I Read a Custom Database and Display It in an ASP Pin
Jeremy Davis20-Jun-00 22:52
Jeremy Davis20-Jun-00 22:52 
AnswerRe: How Can I Read a Custom Database and Display It in an ASP Pin
Chris Maunder20-Jun-00 23:31
cofounderChris Maunder20-Jun-00 23:31 
Generalfree courses on line Pin
alona14-Jun-00 11:53
alona14-Jun-00 11:53 
GeneralAccessing a _RecordsetPtr returned by ATL in ASP Pin
Member 347713-Jun-00 23:08
Member 347713-Jun-00 23:08 
GeneralRe: Accessing a _RecordsetPtr returned by ATL in ASP Pin
Rick Benish24-Aug-00 10:10
Rick Benish24-Aug-00 10:10 
I see your using MFC but my ATL code should still help you
STDMETHODIMP CDoc_Session::SQLSearch(BSTR bstrSQL, Recordset ** ppRecSet)
{
HRESULT hr;
try
{
_bstr_t bstrSearch(bstrSQL);
if(bstrSearch.length()>0)
{
_RecordsetPtr piRS;
hr = piRS.CreateInstance(__uuidof(Recordset));
if(FAILED(hr)) return hr;
piRS->CursorLocation = adUseClient;
piRS->Open(bstrSearch, m_piConn->ConnectionString, adOpenForwardOnly,adLockReadOnly,adCmdUnknown);
if(VARIANT_FALSE == piRS->GetADOEOF())
return piRS->QueryInterface(__uuidof(_Recordset), reinterpret_cast<void**>(ppRecSet));
else
return E_FAIL;
}
else
return E_FAIL;

}
catch (_com_error e)
{
::MessageBox(NULL, e.Description(), "DNS", MB_OK);
return e.Error();
}
catch (...)
{
return E_FAIL;
}

return S_OK;
}

1. You need to change your variant return value to a Recordset ** ppRecSet. You will need to do a #importlib of the msado15.dll in the library section of your .idl file. This is so the midl compiler will be able to marshell the Recordset type.

2. Next you need to make sure returning
Recordset->CursorLocation=adUseClient;

3. Finally you need do a QueryInterface on the local Recordset so that can intialize the returing record set.

If you need more help on this I think I might be able to find some old MFC code that does this same thing.

Good Luck
QuestionHow can you solve this problem ? <script>runscript('')</script>> Pin
vungoctan11-Jun-00 18:52
vungoctan11-Jun-00 18:52 
GeneralJavaScript Help Pin
Member 15027-Jun-00 7:20
Member 15027-Jun-00 7:20 
GeneralRe: JavaScript Help Pin
Uwe Keim7-Jun-00 10:22
sitebuilderUwe Keim7-Jun-00 10:22 
Questionhow can i use a ATL component in ASP page Pin
Jim6-Jun-00 2:48
Jim6-Jun-00 2:48 
AnswerRe: how can i use a ATL component in ASP page Pin
Alex Gorev6-Jun-00 4:02
Alex Gorev6-Jun-00 4:02 
GeneralIFrame Problem Pin
Dan Smith2-Jun-00 18:14
Dan Smith2-Jun-00 18:14 
GeneralSearching on a web page. please respond. very urgent Pin
Member 15022-Jun-00 3:31
Member 15022-Jun-00 3:31 
GeneralRe: Searching on a web page. please respond. very urgent Pin
Erik Thompson2-Jun-00 6:35
sitebuilderErik Thompson2-Jun-00 6:35 
QuestionAnyone Konw Of Any DHTML Bugs In IE5? Pin
Member 23951-Jun-00 21:12
Member 23951-Jun-00 21:12 
QuestionSize Of DIV Contents? Pin
Member 239531-May-00 21:39
Member 239531-May-00 21:39 
AnswerRe: Size Of DIV Contents? Pin
haykel1-Jun-00 4:12
haykel1-Jun-00 4:12 
GeneralRe: Size Of DIV Contents? Pin
Member 23951-Jun-00 10:48
Member 23951-Jun-00 10:48 
GeneralDHTML: Retrieving The Dimensions Of A DIV Container Pin
Member 239525-May-00 21:24
Member 239525-May-00 21:24 
GeneralRe: DHTML: Retrieving The Dimensions Of A DIV Container Pin
haykel25-May-00 22:34
haykel25-May-00 22:34 
GeneralRe: DHTML: Retrieving The Dimensions Of A DIV Container Pin
Member 239531-May-00 21:36
Member 239531-May-00 21:36 
GeneralRe: DHTML: Retrieving The Dimensions Of A DIV Container Pin
haykel1-Jun-00 1:51
haykel1-Jun-00 1:51 
GeneralRe: DHTML: Retrieving The Dimensions Of A DIV Container Pin
Member 23951-Jun-00 10:49
Member 23951-Jun-00 10: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.