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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Strange Debuggin Thing

Strange Debuggin Thing

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialc++question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paolo Ponzano
    wrote on last edited by
    #1

    hello, I've some strange problems while debugging, I've one solution with 4 project,2 are exe files, the other 2 are dll. My problem is I can't see the value of variables while debugging outside the main file. for example case WM_INITDIALOG: SetWindowPos(hWnd, NULL, wi.rcWindow.left, wi.rcWindow.bottom, 300, 250, NULL); ShowWindow(hWnd,SW_NORMAL); //hParser=LoadLibrary("parser.dll"); if(hParser == NULL) { MessageBox(hwndMain,"LoadLibrary failed on parser.dll", "Error", MB_ICONERROR|MB_OK); break; } if(!AnalizeMMC(hWnd,NULL)) { MessageBox(hwndMain,"Unable to process multi-media content file", "Error", MB_ICONERROR|MB_OK); break; } when I step into AnalizeMMC, that's defined into another .cpp file bool AnalizeMMC(HWND hWndMMC,tag *ind) { char temp[30]={0}; WIN32_FIND_DATA *wfd = new WIN32_FIND_DATA(); HANDLE hFirstFile=INVALID_HANDLE_VALUE; HWND hList=NULL; FILE *fd=NULL; char test[50]={0}; hList=GetDlgItem(hWndMMC,IDC_LIST1); hFirstFile=FindFirstFile("*.mmc",wfd); if (hFirstFile == INVALID_HANDLE_VALUE) return false; ..... I can't see the value of temp,wfd,hFirstFile and so on... I receive wfd CXX0017: Error: symbol "wfd" not found .......why this happens???, how to fix it????? the same happens if I refer to content of another project. Thanks Paolo

    A 1 Reply Last reply
    0
    • P Paolo Ponzano

      hello, I've some strange problems while debugging, I've one solution with 4 project,2 are exe files, the other 2 are dll. My problem is I can't see the value of variables while debugging outside the main file. for example case WM_INITDIALOG: SetWindowPos(hWnd, NULL, wi.rcWindow.left, wi.rcWindow.bottom, 300, 250, NULL); ShowWindow(hWnd,SW_NORMAL); //hParser=LoadLibrary("parser.dll"); if(hParser == NULL) { MessageBox(hwndMain,"LoadLibrary failed on parser.dll", "Error", MB_ICONERROR|MB_OK); break; } if(!AnalizeMMC(hWnd,NULL)) { MessageBox(hwndMain,"Unable to process multi-media content file", "Error", MB_ICONERROR|MB_OK); break; } when I step into AnalizeMMC, that's defined into another .cpp file bool AnalizeMMC(HWND hWndMMC,tag *ind) { char temp[30]={0}; WIN32_FIND_DATA *wfd = new WIN32_FIND_DATA(); HANDLE hFirstFile=INVALID_HANDLE_VALUE; HWND hList=NULL; FILE *fd=NULL; char test[50]={0}; hList=GetDlgItem(hWndMMC,IDC_LIST1); hFirstFile=FindFirstFile("*.mmc",wfd); if (hFirstFile == INVALID_HANDLE_VALUE) return false; ..... I can't see the value of temp,wfd,hFirstFile and so on... I receive wfd CXX0017: Error: symbol "wfd" not found .......why this happens???, how to fix it????? the same happens if I refer to content of another project. Thanks Paolo

      A Offline
      A Offline
      Antony M Kancidrowski
      wrote on last edited by
      #2

      Have you tried just debugging the DLL in question? That is set the DLL to active project / startup project then when prompted for the executable choise the appropriate executable that uses the DLL. Ant. I'm hard, yet soft.
      I'm coloured, yet clear.
      I'm fruity and sweet.
      I'm jelly, what am I? Muse on it further, I shall return!
      - David Williams (Little Britain)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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