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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
F

flybird

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

Posts

Recent Best Controversial

  • namespaces problem ...
    F flybird

    I got this link problem and really don't know why ... any ideas ? -----------Configuration: CentralServerTest - Win32 Debug-------------------- Linking... Network_CS_HackedPeersD.lib(Network_CS_HackedPeers.obj) : error LNK2005: _namespaces already defined in network_testappD.lib(NET_gSoapInterface.obj) Debug/CentralServerTest.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. CentralServerTest.exe - 2 error(s), 0 warning(s)

    C / C++ / MFC help sysadmin debugging question workspace

  • Execution problem with TrackPopupMenu, help !!!
    F flybird

    here is my code: In AppView.cpp : ---------------- void CTestApplicationView::OnContextMenu(CWnd* pWnd, CPoint point) { CMenu Menu; // Store popup point, and convert to client coordinates // for the drawing functions. Menu.LoadMenu( IDR_CONTEXTMENU ); CMenu* pPopup = Menu.GetSubMenu( 0 ); pPopup->TrackPopupMenu( TPM_LEFTALIGN|TPM_RIGHTBUTTON, point.x, point.y, this ); } when i right click mouse i got an execution error on TrackPopupMenu: -------------- BOOL CMenu::TrackPopupMenu(UINT nFlags, int x, int y, CWnd* pWnd, LPCRECT lpRect) { ASSERT(m_hMenu != NULL); <---------- PROBLEM HERE _AFX_THREAD_STATE* pThreadState = AfxGetThreadState(); HWND hWndOld = pThreadState->m_hTrackingWindow; HMENU hMenuOld = pThreadState->m_hTrackingMenu; pThreadState->m_hTrackingWindow = pWnd->GetSafeHwnd(); pThreadState->m_hTrackingMenu = m_hMenu; BOOL bOK = ::TrackPopupMenu(m_hMenu, nFlags, x, y, 0, pThreadState->m_hTrackingWindow, lpRect); pThreadState->m_hTrackingWindow = hWndOld; pThreadState->m_hTrackingMenu = hMenuOld; return bOK; } Any ideas, cause I really don't understand why ...:((

    C / C++ / MFC help 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