Re: Unhandled Exception in XMPP - WeOnlyDo Discussion board

Re: Unhandled Exception in XMPP (General questions)

by gothic_coder, Tuesday, December 14, 2010, 11:18 (5094 days ago) @ wodDamir

Ash,

I know, but you can delete them, and uncomment the #import statement from the sample. In that case when you compuile it the tli/tlh files will be recreated.


Yes i already uncommented #import, But the problem is that the new tli/tlh files build by compiling the sample application gives me lot's of error.. Those error are

[code]
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tlh(1430) : error C2556: 'HRESULT IXMPPChatRoom::GetSettings(void)' : overloaded function differs only by return type from 'IXMPPVarsPtr IXMPPChatRoom::GetSettings(void)'
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tlh(1403) : see declaration of 'IXMPPChatRoom::GetSettings'
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tlh(1430) : error C2371: 'IXMPPChatRoom::GetSettings' : redefinition; different basic types
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tlh(1403) : see declaration of 'IXMPPChatRoom::GetSettings'
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tli(1422) : error C2556: 'HRESULT IXMPPChatRoom::GetSettings(void)' : overloaded function differs only by return type from 'IXMPPVarsPtr IXMPPChatRoom::GetSettings(void)'
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tlh(1403) : see declaration of 'IXMPPChatRoom::GetSettings'
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tli(1422) : error C2371: 'IXMPPChatRoom::GetSettings' : redefinition; different basic types
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tlh(1403) : see declaration of 'IXMPPChatRoom::GetSettings'
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tli(1422) : error C2084: function 'IXMPPVarsPtr IXMPPChatRoom::GetSettings(void)' already has a body
c:program filesweonlydo.comxmppsamplesvccomponentatldebugwodxmpp.tlh(1403) : see previous definition of 'GetSettings'
[/code]


As for sending messages, that's not possible in blocking mode. You would need to add events and handle IncomingMessage events.

Can you perhaps try that?

Regards,
Damba

Yes i need to know how to add those events and handle IncomingMessage events, I know i'm asking for much, But it'll be great if you let me know the way to do it or redirect me to some sample program.

Thanks a ton


Complete thread: