Click here to Skip to main content
15,917,321 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionOLE DB Provider with BOOKMARK capability Pin
RezaAsAdi22-Dec-10 8:53
RezaAsAdi22-Dec-10 8:53 
I have made a OLE DB Provider using "ATL OLE DB Provider Wizard" in VS 2005.I tried to implement bookmark in it
but it seems consumers can not recognize bookmark bookmark capability of my provider.I have these lines in
property map set of my rowset object:

PROPERTY_INFO_ENTRY_EX(BOOKMARKS,  VT_BOOL, DBPROPFLAGS_ROWSET | DBPROPFLAGS_READ | DBPROPFLAGS_WRITE , VARIANT_TRUE, 0)
PROPERTY_INFO_ENTRY_EX(BOOKMARKSKIPPED,VT_BOOL, DBPROPFLAGS_ROWSET | DBPROPFLAGS_READ, VARIANT_TRUE, 0)
PROPERTY_INFO_ENTRY_EX(BOOKMARKTYPE,  VT_I4, DBPROPFLAGS_ROWSET | DBPROPFLAGS_READ, DBPROPVAL_BMK_NUMERIC, 0)
PROPERTY_INFO_ENTRY_EX(LITERALBOOKMARKS, VT_BOOL, DBPROPFLAGS_ROWSET | DBPROPFLAGS_READ | DBPROPFLAGS_WRITE, VARIANT_TRUE, 0)
PROPERTY_INFO_ENTRY_EX(ORDEREDBOOKMARKS, VT_BOOL, DBPROPFLAGS_ROWSET | DBPROPFLAGS_READ | DBPROPFLAGS_WRITE, VARIANT_TRUE, 0)


and even my data source tables don't have bookmark column,I put an extra column(with ordinal=0) as the first
column of rowset object which is created in Execute method of this object.
But in session object,IRowsetSchema interface only returns the tables columns not included any entry for Bookmark.

should I include a column entry for Bookmark in column schema of any table?
should I always include bookmark column in returning data rowsets or it depends on consumer request?
Is there any sample code which shows implementing bookmark inside the "Execute" method of rowset object?

May you answer these questions please?
Thanks in advance
QuestionProblem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
Aseem Sharma21-Dec-10 19:25
Aseem Sharma21-Dec-10 19:25 
AnswerRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
pacchij27-Dec-10 11:25
pacchij27-Dec-10 11:25 
GeneralRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
Aseem Sharma28-Dec-10 19:32
Aseem Sharma28-Dec-10 19:32 
GeneralRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
pacchij29-Dec-10 12:11
pacchij29-Dec-10 12:11 
Questioni have a quesstion about gcc warning Pin
lxlenovostar21-Dec-10 6:00
lxlenovostar21-Dec-10 6:00 
AnswerRe: i have a quesstion about gcc warning Pin
Richard MacCutchan21-Dec-10 8:23
mveRichard MacCutchan21-Dec-10 8:23 
QuestionPress a key using virtual key with SendInput Pin
vtalau20-Dec-10 23:37
vtalau20-Dec-10 23:37 
QuestionI have a question about the adobe reader Pin
quickzhao322316-Dec-10 22:42
quickzhao322316-Dec-10 22:42 
AnswerRe: I have a question about the adobe reader Pin
mav@octaval17-Dec-10 0:07
mav@octaval17-Dec-10 0:07 
GeneralRe: I have a question about the adobe reader Pin
quickzhao322317-Dec-10 17:51
quickzhao322317-Dec-10 17:51 
AnswerRe: I have a question about the adobe reader Pin
Richard MacCutchan17-Dec-10 1:52
mveRichard MacCutchan17-Dec-10 1:52 
GeneralRe: I have a question about the adobe reader Pin
quickzhao322317-Dec-10 17:55
quickzhao322317-Dec-10 17:55 
GeneralRe: I have a question about the adobe reader Pin
Richard MacCutchan17-Dec-10 23:25
mveRichard MacCutchan17-Dec-10 23:25 
AnswerRe: I have a question about the adobe reader Pin
jk chan17-Dec-10 2:02
jk chan17-Dec-10 2:02 
GeneralRe: I have a question about the adobe reader Pin
quickzhao322317-Dec-10 18:01
quickzhao322317-Dec-10 18:01 
GeneralRe: I have a question about the adobe reader Pin
Richard MacCutchan17-Dec-10 23:27
mveRichard MacCutchan17-Dec-10 23:27 
Questionhello i have a question about #include Pin
lxlenovostar12-Dec-10 17:29
lxlenovostar12-Dec-10 17:29 
AnswerRe: hello i have a question about #include Pin
Richard MacCutchan12-Dec-10 23:34
mveRichard MacCutchan12-Dec-10 23:34 
GeneralRe: hello i have a question about #include Pin
lxlenovostar13-Dec-10 4:32
lxlenovostar13-Dec-10 4:32 
GeneralRe: hello i have a question about #include Pin
Richard MacCutchan13-Dec-10 7:15
mveRichard MacCutchan13-Dec-10 7:15 
QuestionInterlockedIncrement usage Pin
Krishnakumartg10-Dec-10 3:20
Krishnakumartg10-Dec-10 3:20 
AnswerRe: InterlockedIncrement usage Pin
Cool_Dev10-Dec-10 3:35
Cool_Dev10-Dec-10 3:35 
AnswerRe: InterlockedIncrement usage Pin
Anand Todkar14-Dec-10 22:06
Anand Todkar14-Dec-10 22:06 
QuestionTab key in WTL ProperySheetPage sounds bell? Pin
ddoutel9-Dec-10 7:37
ddoutel9-Dec-10 7:37 

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.