[openamq-dev] Help on receving Vector objects
Malinga
malingajava at yahoo.com
Thu Aug 16 13:16:29 CEST 2007
Hi,
I manage to successful send the message with the help of Martin Sustrik, thanks for that. But now i want to retrieve it. im using,
[
message_size = amq_content_basic_get_body (content, (byte*)message_text, 1024);
if (message_size) {
message_text [message_size] = 0;
icl_console_print("INFO : ");
icl_console_print (message_text);
std::vector<MontageDataStructure>* vec = (std::vector<MontageDataStructure>*) message_text;
printf("SIZE %d \n", vec->size());
for(int i=0;i<vec->size();i++){
printf("Side : %d \n", vec->at(i).A);
printf("Exchange : %s \n", vec->at(i).B);
printf("Symbole : %s \n", vec->at(i).C);
printf("Shares : %d \n", vec->at(i).D);
printf("Price : %d \n", vec->at(i).E);
}
]
To retrieve the message. But it fails and send me the wrong outputs, what i have done wrong pls guide me.
Thanks in advance.
-Malinga
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20070816/a75760f4/attachment.htm
More information about the openamq-dev
mailing list