Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Selection is gray in a CListCtrl Pin
Joel Lucsy24-Jan-06 5:09
Joel Lucsy24-Jan-06 5:09 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 5:12
RoyceF24-Jan-06 5:12 
GeneralRe: Selection is gray in a CListCtrl Pin
Joel Lucsy24-Jan-06 5:20
Joel Lucsy24-Jan-06 5:20 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 5:22
RoyceF24-Jan-06 5:22 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 10:49
RoyceF24-Jan-06 10:49 
QuestionJava c++ integration Pin
pplshero5423-Jan-06 6:33
pplshero5423-Jan-06 6:33 
AnswerRe: Java c++ integration Pin
jhwurmbach23-Jan-06 7:05
jhwurmbach23-Jan-06 7:05 
QuestionIs it possible to serialize a SAFEARRAY to a buffer? Pin
domehead23-Jan-06 6:23
domehead23-Jan-06 6:23 
Roll eyes | :rolleyes: I'm playing around with a client/server app that uses winsock/iocp to send/receive data via a simple protocol. A backend database is basically being queried by the clients over the TCP connection.

I would like to return results to the client using ADO's GetRows method on the server and passing the SAFEARRAY that GetRows returns as a buffer over the TCP connection. No, I'm not using COM/DCOM, straight TCP, so I need to send a buffer.

Currently I'm using ADO's GetString to create a buffer, passing then, and then parsing it on the client. I'd like to use GetRows and pass a SAFEARRAY directly. This allows improved concurrency because of the asynchronous capabilities of GetRows, and would also remove the need to parse the data on the client.

From what I understand, a SAFEARRAY consists of an array descriptor and then a buffer of data. I assume that the data buffer is very pointer-centric, but if I can get the size of the buffer and pass it, perhaps I could "fix-up" the pointers on the receiving end or something (based on an offset of the pointer to the start of the buffer on the server vs. the start of the allocated buffer on the client)?

Thoughts?

Mike Stephenson
Questionrecord wave using visual c++ (real time) Pin
mohahhh23-Jan-06 6:20
mohahhh23-Jan-06 6:20 
AnswerRe: record wave using visual c++ (real time) Pin
normanS23-Jan-06 19:22
normanS23-Jan-06 19:22 
Questionedit box vector Pin
francescot23-Jan-06 5:28
francescot23-Jan-06 5:28 
AnswerRe: edit box vector Pin
Chris Losinger23-Jan-06 5:40
professionalChris Losinger23-Jan-06 5:40 
GeneralRe: edit box vector Pin
francescot23-Jan-06 5:50
francescot23-Jan-06 5:50 
GeneralRe: edit box vector Pin
francescot23-Jan-06 5:55
francescot23-Jan-06 5:55 
GeneralRe: edit box vector Pin
francescot23-Jan-06 6:36
francescot23-Jan-06 6:36 
GeneralRe: edit box vector Pin
David Crow23-Jan-06 7:50
David Crow23-Jan-06 7:50 
GeneralRe: edit box vector Pin
Chris Losinger23-Jan-06 5:55
professionalChris Losinger23-Jan-06 5:55 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 6:15
jhwurmbach23-Jan-06 6:15 
GeneralRe: edit box vector Pin
francescot23-Jan-06 6:42
francescot23-Jan-06 6:42 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 7:00
jhwurmbach23-Jan-06 7:00 
GeneralRe: edit box vector Pin
francescot23-Jan-06 7:29
francescot23-Jan-06 7:29 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 21:41
jhwurmbach23-Jan-06 21:41 
GeneralRe: edit box vector Pin
francescot23-Jan-06 9:17
francescot23-Jan-06 9:17 
GeneralRe: edit box vector Pin
Chris Losinger23-Jan-06 9:30
professionalChris Losinger23-Jan-06 9:30 
GeneralRe: edit box vector Pin
francescot23-Jan-06 11:16
francescot23-Jan-06 11:16 

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.