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

C / C++ / MFC

 
QuestionSQLFetchScroll is failing if database column contains NULL value Pin
Ashish Ranjan Mishra14-Oct-13 21:13
Ashish Ranjan Mishra14-Oct-13 21:13 
AnswerRe: SQLFetchScroll is failing if database column contains NULL value Pin
Rajesh R Subramanian14-Oct-13 22:24
professionalRajesh R Subramanian14-Oct-13 22:24 
GeneralRe: SQLFetchScroll is failing if database column contains NULL value Pin
Ashish Ranjan Mishra14-Oct-13 23:24
Ashish Ranjan Mishra14-Oct-13 23:24 
GeneralRe: SQLFetchScroll is failing if database column contains NULL value Pin
Rajesh R Subramanian14-Oct-13 23:29
professionalRajesh R Subramanian14-Oct-13 23:29 
GeneralRe: SQLFetchScroll is failing if database column contains NULL value Pin
Rajesh R Subramanian14-Oct-13 23:34
professionalRajesh R Subramanian14-Oct-13 23:34 
GeneralRe: SQLFetchScroll is failing if database column contains NULL value Pin
Ashish Ranjan Mishra15-Oct-13 9:41
Ashish Ranjan Mishra15-Oct-13 9:41 
GeneralRe: SQLFetchScroll is failing if database column contains NULL value Pin
Rajesh R Subramanian15-Oct-13 11:30
professionalRajesh R Subramanian15-Oct-13 11:30 
QuestionPassing class pointer via socket Pin
Don Guy14-Oct-13 13:09
Don Guy14-Oct-13 13:09 
Hey there,

I have a function called,

App 1:

void GetImage(CImage * img)
{
//Pass &img over socket to another app
}

App 2:

void DisplayImage()
{
CImage * pImg = &img;
}

Is it possible to pass a class pointer as memory buffer across the socket?

The above code is just an example. My question in general is, whether it's possible to pass any Classes pointer as a memory buffer across sockets.

UPDATE:

This is within same process. In that case can i simply pass the pointer over socket?

Another catch here is, i need to encode all the data in a XML format before sending across the socket.

C++ Code:

CImage *pImage; //pImage hold the data

Inside XML:

<param />&pImage

Can i do like this?

Thanks

modified 15-Oct-13 12:48pm.

AnswerRe: Passing class pointer via socket Pin
Richard Andrew x6414-Oct-13 14:34
professionalRichard Andrew x6414-Oct-13 14:34 
GeneralRe: Passing class pointer via socket Pin
pasztorpisti14-Oct-13 21:50
pasztorpisti14-Oct-13 21:50 
AnswerRe: Passing class pointer via socket Pin
Erudite_Eric14-Oct-13 17:10
Erudite_Eric14-Oct-13 17:10 
AnswerRe: Passing class pointer via socket Pin
ExcellentOrg14-Oct-13 21:20
ExcellentOrg14-Oct-13 21:20 
AnswerRe: Passing class pointer via socket Pin
Rajesh R Subramanian14-Oct-13 22:43
professionalRajesh R Subramanian14-Oct-13 22:43 
AnswerRe: Passing class pointer via socket Pin
Albert Holguin15-Oct-13 6:39
professionalAlbert Holguin15-Oct-13 6:39 
GeneralRe: Passing class pointer via socket Pin
Don Guy15-Oct-13 6:48
Don Guy15-Oct-13 6:48 
AnswerRe: Passing class pointer via socket Pin
Albert Holguin15-Oct-13 7:49
professionalAlbert Holguin15-Oct-13 7:49 
GeneralRe: Passing class pointer via socket Pin
Rajesh R Subramanian15-Oct-13 7:58
professionalRajesh R Subramanian15-Oct-13 7:58 
AnswerRe: Passing class pointer via socket Pin
WuRunZhe15-Oct-13 16:56
WuRunZhe15-Oct-13 16:56 
AnswerRe: Passing class pointer via socket Pin
Erudite_Eric17-Oct-13 14:37
Erudite_Eric17-Oct-13 14:37 
QuestionExport the CListView data or GridView data into Excel or .CSV usig MFC Pin
sma123#14-Oct-13 6:09
sma123#14-Oct-13 6:09 
AnswerRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Richard MacCutchan14-Oct-13 6:55
mveRichard MacCutchan14-Oct-13 6:55 
AnswerRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Rajesh R Subramanian14-Oct-13 22:30
professionalRajesh R Subramanian14-Oct-13 22:30 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
sma123#15-Oct-13 1:12
sma123#15-Oct-13 1:12 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Rajesh R Subramanian15-Oct-13 1:28
professionalRajesh R Subramanian15-Oct-13 1:28 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
sma123#15-Oct-13 1:40
sma123#15-Oct-13 1:40 

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.