Click here to Skip to main content
16,005,121 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCalling COM DLL in Pocket PC Pin
Logan from Singapore5-Jan-06 0:52
Logan from Singapore5-Jan-06 0:52 
Question[Message Deleted] Pin
HOW WHAT4-Jan-06 23:24
HOW WHAT4-Jan-06 23:24 
AnswerRe: about write template Pin
Michael Dunn5-Jan-06 8:46
sitebuilderMichael Dunn5-Jan-06 8:46 
GeneralRe: about write template Pin
Stephen Hewitt8-Jan-06 16:33
Stephen Hewitt8-Jan-06 16:33 
GeneralRe: about write template Pin
Michael Dunn8-Jan-06 18:15
sitebuilderMichael Dunn8-Jan-06 18:15 
GeneralRe: about write template Pin
Stephen Hewitt8-Jan-06 20:24
Stephen Hewitt8-Jan-06 20:24 
GeneralRe: about write template Pin
Michael Dunn8-Jan-06 21:59
sitebuilderMichael Dunn8-Jan-06 21:59 
QuestionMaking ATL OLE DB Provider templates support updating of data Pin
haiyonghan3-Jan-06 20:12
haiyonghan3-Jan-06 20:12 
I have read article "Making ATL OLE DB Provider templates support updating of data" at www.codeproject.com. Through reading your article, you must be a professional in "OLE DB Provider" field, I think so. Now, would you like to give me some help about this issue? You will be pretty appreciated.

1. In the file "IRowsetChangImpl.h" of your "Simple Data Object with update support", there is a row of code "HRESULT hr = pT->GetDataHelper(hAccessor, pColInfo, (void**)&pBinding, pDstData, cCols, spConvert, pRow);"(lies in method "SetDataHelper"). But there is not definition and implementation of "GetDataHelper". How to resolve it?

2. Now, I'm building up a updatable OLE DB Provider. This provider will be run in MS SQLServer DTS. First "Transform Data Task" of MS SQLServer DTS get the rowset from SQLServer, then call this provider, and pass rowset data to my provider by calling IRowsetChange::SetData(HROW hRow, HACCESSOR hAccessor, void* pSrcData). My questions are as following:
1) "Transform Data Task" pass the new data(a row of data include 10 columns) to my provider through method "SetData(HROW hRow, HACCESSOR hAccessor, void* pSrcData)". Is it correct?
2) I have get the DBBINDING info by the next code:
STDMETHOD (SetData)(HROW hRow, HACCESSOR hAccessor, void* pSrcData)
{
DBACCESSORFLAGS *pdwAccessorFlags;
DBCOUNTITEM *pcBindings;
DBBINDING **prgBindings;
DBBINDING *pBindings;

pdwAccessorFlags = (DBACCESSORFLAGS *)::calloc(1, sizeof(DBACCESSORFLAGS));
pcBindings = (DBCOUNTITEM *)::calloc(1, sizeof(DBCOUNTITEM));
pBindings = (DBBINDING *)::calloc(1, sizeof(DBBINDING));
prgBindings = &pBindings;

HRESULT hr = this->GetBindings(hAccessor, pdwAccessorFlags, pcBindings, prgBindings);

return S_OK;
}

Now, how can I extract data from pSrcData? I'm puzzled.

Expect for your reply!

Thanks in advance!

QuestionRTL UI in PropertySheet? Pin
hjm34093-Jan-06 18:58
hjm34093-Jan-06 18:58 
QuestionPossible to add controls to a dialog on the fly? (wtl) Pin
ioctl513-Jan-06 2:05
ioctl513-Jan-06 2:05 
AnswerRe: Possible to add controls to a dialog on the fly? (wtl) Pin
Michael Dunn3-Jan-06 8:21
sitebuilderMichael Dunn3-Jan-06 8:21 
NewsAt Last! My DCOM Tutorial for VS.NET is Here! Pin
Brian C Hart30-Dec-05 22:32
professionalBrian C Hart30-Dec-05 22:32 
QuestionHow to write data to a file when it is in a vector Pin
Larry Mills Sr30-Dec-05 14:13
Larry Mills Sr30-Dec-05 14:13 
AnswerRe: How to write data to a file when it is in a vector Pin
Stephen Hewitt8-Jan-06 16:51
Stephen Hewitt8-Jan-06 16:51 
Questionwhy not message return Pin
HOW WHAT30-Dec-05 3:26
HOW WHAT30-Dec-05 3:26 
AnswerRe: why not message return Pin
Rob Caldecott30-Dec-05 3:55
Rob Caldecott30-Dec-05 3:55 
GeneralRe: why not message return Pin
HOW WHAT30-Dec-05 17:16
HOW WHAT30-Dec-05 17:16 
AnswerRe: why not message return Pin
Stephen Hewitt8-Jan-06 17:43
Stephen Hewitt8-Jan-06 17:43 
QuestionATL problem .... Pin
bobetko29-Dec-05 11:32
bobetko29-Dec-05 11:32 
AnswerRe: ATL problem .... Pin
Igor Vigdorchik29-Dec-05 17:52
Igor Vigdorchik29-Dec-05 17:52 
AnswerRe: ATL problem .... Pin
Michael Dunn31-Dec-05 10:58
sitebuilderMichael Dunn31-Dec-05 10:58 
QuestionAbout using IPersistStreamInit to load HTML File Pin
simonchen.net28-Dec-05 20:00
simonchen.net28-Dec-05 20:00 
AnswerRe: About using IPersistStreamInit to load HTML File Pin
simonchen.net29-Dec-05 19:24
simonchen.net29-Dec-05 19:24 
QuestionWrite OLETypes to a binary file Pin
sameerbhise.pspl28-Dec-05 17:17
sameerbhise.pspl28-Dec-05 17:17 
AnswerRe: Write OLETypes to a binary file Pin
Jörgen Sigvardsson5-Jan-06 9:01
Jörgen Sigvardsson5-Jan-06 9:01 

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.