Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: calling a class member function in a seperate thread Pin
rupert_durans17-Oct-06 22:40
rupert_durans17-Oct-06 22:40 
QuestionForce a program to get Unicode Pin
dSolariuM17-Oct-06 21:48
dSolariuM17-Oct-06 21:48 
AnswerRe: Force a program to get Unicode Pin
GDavy17-Oct-06 23:25
GDavy17-Oct-06 23:25 
AnswerRe: Force a program to get Unicode Pin
ThatsAlok18-Oct-06 5:09
ThatsAlok18-Oct-06 5:09 
QuestionHow to reduce the CPU Usage? Pin
willbin17-Oct-06 21:40
willbin17-Oct-06 21:40 
AnswerRe: How to reduce the CPU Usage? Pin
Christian Graus17-Oct-06 21:47
protectorChristian Graus17-Oct-06 21:47 
GeneralRe: How to reduce the CPU Usage? Pin
willbin18-Oct-06 5:20
willbin18-Oct-06 5:20 
QuestionRTC issue Pin
Cristi B17-Oct-06 21:29
Cristi B17-Oct-06 21:29 
Hi all,
Anyone experienced with MS RTC Client API?

I came accross the following issue:

Developed a server APP where each client is initialized with InitializeEx(RTCIF_DISABLE_MEDIA). Then I connect with office communicator using account A on the same backend LCS instance.
When I send a message from A (office communicator) to any account B connected with my APP, office comm complains "The following message could not be sent...".

MSDN says I sould answer to incoming sessions of type APPLICATION with pSession->AnswerWithSessionDescription();

I used code like this:
<br />
HRESULT OnRTCSessionStateChangeEvent(IRTCSessionStateChangeEvent2* pEvent)<br />
{<br />
  RTC_SESSION_TYPE enType;<br />
  RTC_SESSION_STATE enState;<br />
<br />
  IRTCSession2* pSession;<br />
  pEvent->get_Session(&pSession);<br />
<br />
  pSession->get_State(&enState);<br />
  pSession->get_Type(&enType);<br />
<br />
  if (enType == RTCST_APPLICATION && enState == RTCSS_INCOMING)<br />
   {<br />
BSTR type, desc;<br />
pSession->GetRemoteSessionDescription(&type,&desc);<br />
pSession->AnswerWithSessionDescription(type,desc);<br />
SysFreeString(type);<br />
SysFreeString(desc);<br />
}<br />
if (enState == RTCSS_CONNECTED)<br />
{<br />
 //keep the session in my own array<br />
}<br />
else<br />
{<br />
  pSession->Release();<br />
}<br />
}<br />


Some more thoughts:
1) With the above code I cannot use pSession->SendMessage(NULL, myMsg, 0). It fails with error code INVALID SESSION STATE. I am interested only in IM kind of communication, not in media exchange
2) How can I detect more info about an incoming session. The desc variable above only contains some SDP data, nothing about who (WHAT APPLICATION) originated the request
Any help wpuld be appreciated. ThanksHmmm | :|

Cristi

Discover beauty in whatever you're doing
QuestionPrinting tooltips displayed using cWindow class Pin
panks_r17-Oct-06 20:37
panks_r17-Oct-06 20:37 
AnswerRe: Printing tooltips displayed using cWindow class Pin
Programm3r17-Oct-06 20:45
Programm3r17-Oct-06 20:45 
QuestionDbase with CDaoDatabase? Pin
murali_utr17-Oct-06 20:09
murali_utr17-Oct-06 20:09 
AnswerRe: Dbase with CDaoDatabase? Pin
Jörgen Sigvardsson18-Oct-06 11:49
Jörgen Sigvardsson18-Oct-06 11:49 
QuestionRegEnumValue fn error ... help me .. Pin
Sakthiu17-Oct-06 20:04
Sakthiu17-Oct-06 20:04 
QuestionRe: RegEnumValue fn error ... help me .. Pin
prasad_som17-Oct-06 20:09
prasad_som17-Oct-06 20:09 
AnswerRe: RegEnumValue fn error ... help me .. Pin
Sakthiu17-Oct-06 20:13
Sakthiu17-Oct-06 20:13 
AnswerRe: RegEnumValue fn error ... help me .. Pin
prasad_som17-Oct-06 20:35
prasad_som17-Oct-06 20:35 
GeneralRe: RegEnumValue fn error ... help me .. Pin
Waldermort17-Oct-06 20:51
Waldermort17-Oct-06 20:51 
GeneralRe: RegEnumValue fn error ... help me .. Pin
Blake Miller18-Oct-06 9:52
Blake Miller18-Oct-06 9:52 
AnswerRe: RegEnumValue fn error ... help me .. Pin
ThatsAlok18-Oct-06 5:07
ThatsAlok18-Oct-06 5:07 
QuestionLOGFONT and GetTextExtent Pin
includeh1017-Oct-06 20:04
includeh1017-Oct-06 20:04 
AnswerRe: LOGFONT and GetTextExtent Pin
Mark Salsbery18-Oct-06 6:29
Mark Salsbery18-Oct-06 6:29 
QuestionHow to access print preview Control bar Pin
georgekjolly17-Oct-06 19:23
georgekjolly17-Oct-06 19:23 
AnswerRe: How to access print preview Control bar Pin
alphaxz17-Oct-06 19:27
alphaxz17-Oct-06 19:27 
QuestionDLL Programming: a Web Browser on Dialog Box Pin
Get_Rakesh17-Oct-06 18:41
Get_Rakesh17-Oct-06 18:41 
QuestionHow to run a command and wait for its completion Pin
Abhiyantara17-Oct-06 18:36
Abhiyantara17-Oct-06 18:36 

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.