Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Enumerating GDI Handles in (own) process. Pin
sashoalm25-May-10 6:14
sashoalm25-May-10 6:14 
GeneralRe: Enumerating GDI Handles in (own) process. Pin
Iain Clarke, Warrior Programmer25-May-10 8:06
Iain Clarke, Warrior Programmer25-May-10 8:06 
AnswerRe: Enumerating GDI Handles in (own) process. Pin
Code-o-mat25-May-10 23:53
Code-o-mat25-May-10 23:53 
GeneralRe: Enumerating GDI Handles in (own) process. Pin
Iain Clarke, Warrior Programmer26-May-10 0:12
Iain Clarke, Warrior Programmer26-May-10 0:12 
QuestionButton+png+Resource Pin
john563224-May-10 23:18
john563224-May-10 23:18 
AnswerRe: Button+png+Resource Pin
Hristo-Bojilov24-May-10 23:49
Hristo-Bojilov24-May-10 23:49 
GeneralRe: Button+png+Resource Pin
john563225-May-10 0:17
john563225-May-10 0:17 
Questionstrcmp for Last five characters Pin
Anu_Bala24-May-10 20:46
Anu_Bala24-May-10 20:46 
Hi,
I want to compare last five character.Is there any direct syntax for that.
Im geting secondary monitor size, to get that im using the follwing code

 mi.cbSize = sizeof(mi);
GetMonitorInfo(hMonitor, &mi);

mix.cbSize = sizeof(mix);
GetMonitorInfo(hMonitor, (MONITORINFO*)&mix);
CString display;
display.Format("%s" ,(LPSTR)mix.szDevice);
		
if(strcmp(display,\\.\DISPLAY1)==0)    //PROBLEM IS HERE
{
	DualRect = mi.rcMonitor;	
	display.Format(" Res[%d,%d,%d,%d]",DualRect.left,DualRect.right,DualRect.top,DualRect.bottom);
	AfxMessageBox(display);
}


Here display get string as "\\.\DISPLAY1" but in stringcomparison,it doesnot get passed.
Whats my mistake?
Like this i will strcmp with DISPLAY2 string and then i will get that second monitor screen size.
Anu

AnswerRe: strcmp for Last five characters Pin
Sarath C24-May-10 21:11
Sarath C24-May-10 21:11 
AnswerRe: strcmp for Last five characters Pin
chandu00424-May-10 21:33
chandu00424-May-10 21:33 
AnswerRe: strcmp for Last five characters Pin
Richard MacCutchan24-May-10 21:33
mveRichard MacCutchan24-May-10 21:33 
AnswerRe: strcmp for Last five characters Pin
Aescleal24-May-10 22:02
Aescleal24-May-10 22:02 
AnswerRe: strcmp for Last five characters Pin
Hristo-Bojilov24-May-10 22:22
Hristo-Bojilov24-May-10 22:22 
GeneralRe: strcmp for Last five characters Pin
David Crow25-May-10 7:41
David Crow25-May-10 7:41 
GeneralRe: strcmp for Last five characters Pin
Hristo-Bojilov25-May-10 8:04
Hristo-Bojilov25-May-10 8:04 
GeneralRe: strcmp for Last five characters Pin
David Crow25-May-10 8:22
David Crow25-May-10 8:22 
GeneralRe: strcmp for Last five characters Pin
asadullah ansari25-May-10 16:35
asadullah ansari25-May-10 16:35 
QuestionPlease Explain One Instruction Pin
computerpublic24-May-10 17:58
computerpublic24-May-10 17:58 
AnswerRe: Please Explain One Instruction Pin
Stephen Hewitt24-May-10 18:03
Stephen Hewitt24-May-10 18:03 
AnswerRe: Please Explain One Instruction Pin
CPallini24-May-10 20:45
mveCPallini24-May-10 20:45 
AnswerRe: Please Explain One Instruction Pin
ThatsAlok25-May-10 1:52
ThatsAlok25-May-10 1:52 
QuestionObject Oriented Problem. Pin
RobNO24-May-10 13:49
professionalRobNO24-May-10 13:49 
AnswerRe: Object Oriented Problem. Pin
Stephen Hewitt24-May-10 14:08
Stephen Hewitt24-May-10 14:08 
GeneralRe: Object Oriented Problem. Pin
RobNO24-May-10 14:11
professionalRobNO24-May-10 14:11 
JokeRe: Object Oriented Problem. Pin
Peter_in_278024-May-10 14:13
professionalPeter_in_278024-May-10 14:13 

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.