cannot use _RecordsetPtr when importing msado15.dl
-
Hello, when i import msado15.dll i do not get _RecordsetPtr. I can use _Recordset but i do not know how to get item data. i found in the samples the code but it always uses _RecordsetPtr. how can i get _RecordsetPtr ? or what is eqivalent usage of _Recordset to the _RecordsetPtr's call: _RecordsetPtr Rs1;variant = Rs1->Fields->GetItem (_variant_t ("name"))->Value; thank you PS I use: #import "c:\program files\common files\system\ado\msado15.dll" \ no_namespace rename "EOF", "getEOF"); _COM_SMARTPTR_TYPEDEF(_Recordset, __uuidof(Recordset));
-
Hello, when i import msado15.dll i do not get _RecordsetPtr. I can use _Recordset but i do not know how to get item data. i found in the samples the code but it always uses _RecordsetPtr. how can i get _RecordsetPtr ? or what is eqivalent usage of _Recordset to the _RecordsetPtr's call: _RecordsetPtr Rs1;variant = Rs1->Fields->GetItem (_variant_t ("name"))->Value; thank you PS I use: #import "c:\program files\common files\system\ado\msado15.dll" \ no_namespace rename "EOF", "getEOF"); _COM_SMARTPTR_TYPEDEF(_Recordset, __uuidof(Recordset));
Well i've been using _RecordsetPtr as a member in header files. I had a quick look at one of my sources and this is everything that I include, so it's probably in one of these. Good luck, Robert Dickenson. /* #include "stdafx.h" // stdafx only includes the following two: */ #include #include #import "C:\Program Files\Common Files\System\ADO\msado15.dll" \ no_namespace rename("EOF", "EndOfFile") #include #include #include