Click here to Skip to main content
15,886,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to set working directory to MyPictures? Pin
Chintoo7234-Jan-06 0:11
Chintoo7234-Jan-06 0:11 
QuestionHow to make an own CFileDialog resource? Pin
doctorpi3-Jan-06 21:03
doctorpi3-Jan-06 21:03 
AnswerRe: How to make an own CFileDialog resource? Pin
Owner drawn4-Jan-06 0:09
Owner drawn4-Jan-06 0:09 
GeneralRe: How to make an own CFileDialog resource? Pin
doctorpi4-Jan-06 0:42
doctorpi4-Jan-06 0:42 
GeneralRe: How to make an own CFileDialog resource? Pin
Owner drawn4-Jan-06 1:05
Owner drawn4-Jan-06 1:05 
QuestionMulti line colors for Rich edit control and static controls using VC++ Pin
K. narasimharao3-Jan-06 20:37
K. narasimharao3-Jan-06 20:37 
QuestionFloating MDI child window outside MDI parent area PinPopular
contessa3-Jan-06 20:33
contessa3-Jan-06 20:33 
QuestionMaking ATL OLE DB Provider templates support updating of data Pin
haiyonghan3-Jan-06 20:13
haiyonghan3-Jan-06 20:13 
D'Oh! | :doh: 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!

QuestionVC 8.0 compiler/linker/debuger with VC 6.0 IDE Pin
Tomas Rapkauskas3-Jan-06 19:53
Tomas Rapkauskas3-Jan-06 19:53 
AnswerRe: VC 8.0 compiler/linker/debuger with VC 6.0 IDE Pin
Saksida Bojan3-Jan-06 20:23
Saksida Bojan3-Jan-06 20:23 
GeneralRe: VC 8.0 compiler/linker/debuger with VC 6.0 IDE Pin
Tomas Rapkauskas3-Jan-06 20:39
Tomas Rapkauskas3-Jan-06 20:39 
GeneralRe: VC 8.0 compiler/linker/debuger with VC 6.0 IDE Pin
Don Miguel4-Jan-06 4:18
Don Miguel4-Jan-06 4:18 
GeneralRe: VC 8.0 compiler/linker/debuger with VC 6.0 IDE Pin
Sheng Jiang 蒋晟4-Jan-06 7:12
Sheng Jiang 蒋晟4-Jan-06 7:12 
QuestionHow to use GetPrivateProfileSection Pin
<color>Aljechin 3-Jan-06 19:23
<color>Aljechin 3-Jan-06 19:23 
AnswerRe: How to use GetPrivateProfileSection Pin
Prakash Nadar3-Jan-06 19:32
Prakash Nadar3-Jan-06 19:32 
GeneralRe: How to use GetPrivateProfileSection Pin
<color>Aljechin 3-Jan-06 19:40
<color>Aljechin 3-Jan-06 19:40 
GeneralRe: How to use GetPrivateProfileSection Pin
Prakash Nadar3-Jan-06 19:49
Prakash Nadar3-Jan-06 19:49 
GeneralRe: How to use GetPrivateProfileSection Pin
<color>Aljechin 3-Jan-06 19:53
<color>Aljechin 3-Jan-06 19:53 
GeneralRe: How to use GetPrivateProfileSection Pin
<color>Aljechin 3-Jan-06 20:09
<color>Aljechin 3-Jan-06 20:09 
GeneralRe: How to use GetPrivateProfileSection Pin
kakan3-Jan-06 19:54
professionalkakan3-Jan-06 19:54 
GeneralRe: How to use GetPrivateProfileSection Pin
<color>Aljechin 3-Jan-06 20:08
<color>Aljechin 3-Jan-06 20:08 
GeneralRe: How to use GetPrivateProfileSection Pin
kakan3-Jan-06 20:22
professionalkakan3-Jan-06 20:22 
GeneralRe: How to use GetPrivateProfileSection Pin
Prakash Nadar3-Jan-06 20:26
Prakash Nadar3-Jan-06 20:26 
GeneralRe: How to use GetPrivateProfileSection Pin
kakan3-Jan-06 20:38
professionalkakan3-Jan-06 20:38 
GeneralRe: How to use GetPrivateProfileSection Pin
<color>Aljechin 3-Jan-06 20:57
<color>Aljechin 3-Jan-06 20:57 

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.