Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: directshow sdk Pin
Farhat Aisha18-Dec-05 3:18
Farhat Aisha18-Dec-05 3:18 
QuestionListCtrl / gridcontrol containing tree control in VC++ Pin
doubts.vc16-Dec-05 20:16
doubts.vc16-Dec-05 20:16 
AnswerRe: ListCtrl / gridcontrol containing tree control in VC++ Pin
Ravi Bhavnani17-Dec-05 3:24
professionalRavi Bhavnani17-Dec-05 3:24 
GeneralRe: ListCtrl / gridcontrol containing tree control in VC++ Pin
doubts.vc20-Dec-05 16:43
doubts.vc20-Dec-05 16:43 
QuestionSome problem facing when using Direct show for streaming media Pin
StarMeteor16-Dec-05 19:17
StarMeteor16-Dec-05 19:17 
QuestionSending text to chat via Edit Pin
tansey416-Dec-05 17:53
tansey416-Dec-05 17:53 
AnswerRe: Sending text to chat via Edit Pin
VikramDelhi16-Dec-05 20:29
VikramDelhi16-Dec-05 20:29 
GeneralRe: Sending text to chat via Edit Pin
tansey416-Dec-05 21:43
tansey416-Dec-05 21:43 
Thanks for the link Vikram, however it seems that there is a bug with that engine (and the user comments seem to confirm) that creates problems with XP.

From what I saw in the source of that project, I thought that this would work:

void say( const char* toSay )<br />
{<br />
	if( !SetForegroundWindow( chatBox ) ){ cout << "COULD NOT SET CHATBOX TO ACTIVE" << endl; }<br />
	Sleep(500);<br />
	UINT scan = MapVirtualKey( VK_RETURN, 0 );<br />
	Sleep(500);<br />
	SendMessage( chatBox, WM_SETTEXT, (WPARAM)0, (LPARAM)toSay );<br />
	Sleep(2000);<br />
	keybd_event(VK_RETURN, scan, KEYEVENTF_EXTENDEDKEY | 0, 0 );<br />
	Sleep(2000);<br />
	keybd_event(VK_RETURN, scan, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);<br />
}


However, that doesn't seem to work. As in my previously posted function, the chatBox is set with the text and when VK_RETURN is sent it does clear, but it does not show up in the chat, it just gets cleared. I'm not sure why this is.

-- modified at 3:43 Saturday 17th December, 2005
QuestionDestroying the window Pin
chethu66516-Dec-05 17:06
chethu66516-Dec-05 17:06 
Questiondrawing HICON Pin
T1TAN16-Dec-05 15:29
T1TAN16-Dec-05 15:29 
AnswerRe: drawing HICON Pin
PJ Arends16-Dec-05 17:15
professionalPJ Arends16-Dec-05 17:15 
GeneralRe: drawing HICON Pin
T1TAN17-Dec-05 13:11
T1TAN17-Dec-05 13:11 
QuestionSetting hi and low-order words Pin
Alex Orovetskiy16-Dec-05 11:23
Alex Orovetskiy16-Dec-05 11:23 
AnswerRe: Setting hi and low-order words Pin
Nish Nishant16-Dec-05 11:27
sitebuilderNish Nishant16-Dec-05 11:27 
GeneralRe: Setting hi and low-order words Pin
Alex Orovetskiy16-Dec-05 11:40
Alex Orovetskiy16-Dec-05 11:40 
AnswerRe: Setting hi and low-order words Pin
Jörgen Sigvardsson16-Dec-05 12:23
Jörgen Sigvardsson16-Dec-05 12:23 
GeneralRe: Setting hi and low-order words Pin
Alex Orovetskiy16-Dec-05 21:46
Alex Orovetskiy16-Dec-05 21:46 
AnswerRe: Setting hi and low-order words Pin
ThatsAlok16-Dec-05 21:54
ThatsAlok16-Dec-05 21:54 
QuestionWriteFile hangs Pin
dave siegfried16-Dec-05 10:12
dave siegfried16-Dec-05 10:12 
QuestionRe: WriteFile hangs Pin
David Crow16-Dec-05 14:55
David Crow16-Dec-05 14:55 
Question#pragma once, #ifndef problem Pin
werfel16-Dec-05 10:06
werfel16-Dec-05 10:06 
AnswerRe: #pragma once, #ifndef problem Pin
Maximilien16-Dec-05 10:12
Maximilien16-Dec-05 10:12 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 10:17
werfel16-Dec-05 10:17 
GeneralRe: #pragma once, #ifndef problem Pin
Maximilien16-Dec-05 10:22
Maximilien16-Dec-05 10:22 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 10:26
werfel16-Dec-05 10:26 

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.