Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

ivansla

@ivansla
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • problem with context menu code
    I ivansla

    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 .

    C / C++ / MFC c++ question help learning

  • graphics.h
    I ivansla

    Hi, I'm a newbee in programming world and I learn to program in C++ by analyzing source codes. I don't know whether this is good idea but... Anyway the reason why I posted this message here because I have a problem. Whenever I download someones source code ( mainly simple games like tetris) there is included header file called graphics.h. When I compile this source code it reports me that it can't find such header file. What is the problem? I mean I know that i don't have such header file but why? I'm using Visual Studio 6 and VS 2005.

    C / C++ / MFC visual-studio question csharp c++ graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups