Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCHAR to char * Pin
Mark Salsbery23-Aug-07 11:17
Mark Salsbery23-Aug-07 11:17 
GeneralRe: TCHAR to char * Pin
Michael Dunn23-Aug-07 12:15
sitebuilderMichael Dunn23-Aug-07 12:15 
GeneralRe: TCHAR to char * Pin
Mark Salsbery23-Aug-07 12:40
Mark Salsbery23-Aug-07 12:40 
GeneralRe: TCHAR to char * Pin
Mark Salsbery23-Aug-07 12:45
Mark Salsbery23-Aug-07 12:45 
GeneralRe: TCHAR to char * Pin
Rajesh_Parameswaran24-Aug-07 0:47
Rajesh_Parameswaran24-Aug-07 0:47 
GeneralRe: TCHAR to char * [modified] Pin
Mark Salsbery24-Aug-07 5:04
Mark Salsbery24-Aug-07 5:04 
AnswerRe: TCHAR to char * Pin
Obukhov1-Nov-10 21:24
Obukhov1-Nov-10 21:24 
Questionproblem with context menu code Pin
ivansla23-Aug-07 8:26
ivansla23-Aug-07 8:26 
Hi, I'm a begginer in this programming stuff, and I learn visual C++ from the book "teach yourself visual c++ in 21 days". anyway I am on the 6th day now and I have a small problem with the menu code. here is the listing:

1.CMenu *m_lMenu;
2.CPoint m_pPoint;
3.m_pPoint = point;
4.ClientToScreen(&m_pPoint);
5.m_lMenu - GetMenu();
6.m_lMenu = m_lMenu->GetSubMenu(0);
7.m_lMenu->TrackPopupMenu(TPM_CENTERALIGN + TPM_LEFTBUTTON, m_pPoint.x, m_pPoint.y, this, NULL);

now when I compile my project ( ofcourse there is other code which works just fine), compiler gives me 2 warnings:

D:\C\projects\menus\menusDlg.cpp(203) : warning C4552: '>>' : operator has no effect; expected operator with side-effect
D:\C\projects\menus\menusDlg.cpp(204) : warning C4700: local variable 'm_lMenu' used without having been initialized

this code is copied from the book so if there is error then the error is in th book.
So my question is what is the problem? my guess is that there is something wrong with line 5 (m_lMenu - GetMenu()) make's no sense right? or is the problem in something other?

I tried even with -> and .
AnswerRe: problem with context menu code Pin
Maximilien23-Aug-07 8:31
Maximilien23-Aug-07 8:31 
AnswerRe: problem with context menu code Pin
Mark Salsbery23-Aug-07 9:53
Mark Salsbery23-Aug-07 9:53 
AnswerRe: "file selected is not in required template" VC 6.0 MFC Pin
jhwurmbach23-Aug-07 6:25
jhwurmbach23-Aug-07 6:25 
GeneralRe: "file selected is not in required template" VC 6.0 MFC Pin
Vaclav_23-Aug-07 6:37
Vaclav_23-Aug-07 6:37 
GeneralRe: "file selected is not in required template" VC 6.0 MFC Pin
ThatsAlok23-Aug-07 19:26
ThatsAlok23-Aug-07 19:26 
GeneralRe: "file selected is not in required template" VC 6.0 MFC Pin
Vaclav_24-Aug-07 9:47
Vaclav_24-Aug-07 9:47 
GeneralRe: "file selected is not in required template" VC 6.0 MFC Pin
Iain Clarke, Warrior Programmer23-Aug-07 22:28
Iain Clarke, Warrior Programmer23-Aug-07 22:28 
GeneralRe: "file selected is not in required template" VC 6.0 MFC Pin
Vaclav_24-Aug-07 9:36
Vaclav_24-Aug-07 9:36 
GeneralRe: "file selected is not in required template" VC 6.0 MFC Pin
Iain Clarke, Warrior Programmer24-Aug-07 12:27
Iain Clarke, Warrior Programmer24-Aug-07 12:27 
QuestionFacing problem while running exe created using 2005 Pin
Ravi Jadhav23-Aug-07 5:12
Ravi Jadhav23-Aug-07 5:12 
AnswerRe: Facing problem while running exe created using 2005 Pin
James R. Twine23-Aug-07 5:22
James R. Twine23-Aug-07 5:22 
AnswerRe: Facing problem while running exe created using 2005 Pin
David Crow23-Aug-07 6:15
David Crow23-Aug-07 6:15 
GeneralRe: Facing problem while running exe created using 2005 Pin
Ravi Jadhav23-Aug-07 22:55
Ravi Jadhav23-Aug-07 22:55 
AnswerRe: Facing problem while running exe created using 2005 Pin
ThatsAlok23-Aug-07 20:08
ThatsAlok23-Aug-07 20:08 
QuestionResource Language in VS2003 Pin
sandeepkavade23-Aug-07 5:01
sandeepkavade23-Aug-07 5:01 
QuestionHow to test for existence of a workstation Pin
redWingBB23-Aug-07 5:00
redWingBB23-Aug-07 5:00 
QuestionRe: How to test for existence of a workstation Pin
David Crow23-Aug-07 5:07
David Crow23-Aug-07 5:07 

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.