Click here to Skip to main content
15,894,646 members
Home / Discussions / COM
   

COM

 
QuestionOLE VB Function equilivent for C++? Pin
BrianBoru28-Apr-05 4:42
BrianBoru28-Apr-05 4:42 
AnswerRe: OLE VB Function equilivent for C++? Pin
Vi212-May-05 1:42
Vi212-May-05 1:42 
GeneralThrowing an event with a nested UDT Pin
GizzoF28-Apr-05 0:18
GizzoF28-Apr-05 0:18 
GeneralProperties in COM Pin
ckapil27-Apr-05 23:12
ckapil27-Apr-05 23:12 
GeneralRe: Properties in COM Pin
ThatsAlok28-Apr-05 0:37
ThatsAlok28-Apr-05 0:37 
GeneralRe: Properties in COM Pin
ThatsAlok28-Apr-05 1:03
ThatsAlok28-Apr-05 1:03 
GeneralRe: Properties in COM Pin
ckapil28-Apr-05 1:24
ckapil28-Apr-05 1:24 
GeneralIStream object string length error Pin
mjharvey27-Apr-05 14:09
mjharvey27-Apr-05 14:09 
I am trying to update an ISequentialStream object in a RowSet in SQL Server. But am getting the following errors:

- Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
- String data, length mismatch

The "String data, length mismatch" one is troubling me. And I think it has something to do with the way I am creating the stream. This is the methodology I am trying to implement:

IStream *pIStream;
CreateStreamOnHGlobal(NULL, true, &pIStream);
pIStream->SetSize(x);
pIStream->Write(databuf, databuf_len, &byteswritten);
ISequentialStream *pISeqStream;
pIStream->QueryInterface(IID_ISequentialStream, (void **)&pISeqStream);

I am struggling with the length. As to what it should be set to. I have done a simple test to try and write a 6 character string. The size of the stream created is 6 bytes and I have set the size of the length in the bindings for the rowset to be 6. Yet I am getting a string length error on Update ...does a null terminator for the string have to be allowed for somewhere.

Any help on what I may be doing wrong here would be appreciated. Thanks.
GeneralRe: IStream object string length error Pin
mjharvey27-Apr-05 16:45
mjharvey27-Apr-05 16:45 
GeneralMaking DLL from Matlab Pin
mosquets27-Apr-05 3:39
mosquets27-Apr-05 3:39 
GeneralComponent Accessibility Pin
Robert Findlay27-Apr-05 2:52
Robert Findlay27-Apr-05 2:52 
GeneralRe: Component Accessibility Pin
Robert Findlay9-May-05 1:07
Robert Findlay9-May-05 1:07 
GeneralNeed help about Office Automation Pin
figer25-Apr-05 21:47
figer25-Apr-05 21:47 
GeneralRe: Need help about Office Automation Pin
Jason Henderson26-Apr-05 8:16
Jason Henderson26-Apr-05 8:16 
GeneralRe: Need help about Office Automation Pin
vishalmore11-May-05 21:13
vishalmore11-May-05 21:13 
GeneralAcitveX container hanging problem Pin
kostik125-Apr-05 21:17
kostik125-Apr-05 21:17 
GeneralDCOM Pin
itkid25-Apr-05 19:32
itkid25-Apr-05 19:32 
GeneralRe: DCOM Pin
Mayur Mahajan26-Apr-05 17:21
Mayur Mahajan26-Apr-05 17:21 
GeneralHandling COM Events Pin
i.chen24-Apr-05 20:34
sussi.chen24-Apr-05 20:34 
GeneralRe: Handling COM Events Pin
Frank_lgh9-May-05 14:45
Frank_lgh9-May-05 14:45 
GeneralC to MASM, troubles while converting. Pin
Brean24-Apr-05 11:34
Brean24-Apr-05 11:34 
GeneralActiveX controls on web pages Pin
Hugo Hallman24-Apr-05 11:01
Hugo Hallman24-Apr-05 11:01 
GeneralRe: ActiveX controls on web pages Pin
vishalmore11-May-05 21:17
vishalmore11-May-05 21:17 
GeneralRe: ActiveX controls on web pages Pin
Hugo Hallman12-May-05 1:27
Hugo Hallman12-May-05 1:27 
QuestionHow can we typecast the Exported Function pointers of a DLL Pin
sijis21-Apr-05 22:26
sijis21-Apr-05 22:26 

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.