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. Problem debugging an OCX control code

Problem debugging an OCX control code

Scheduled Pinned Locked Moved C / C++ / MFC
helpgraphicsdebuggingquestion
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.
  • J Offline
    J Offline
    jayart
    wrote on last edited by
    #1

    Hi All, I am debugging an application(MyApp) which uses an OCX control. I need to debug the OCX control too. I am able to compile the OCX in debug mode and have copied the MyOcx.ocx and MyOcx.pdb files to MyApp Debug folder. When I try to debug the MyApp I am not able to debug the OCX code. I checked with the modules window and found that the symbols for the ocx could not be loaded and it shows "" C:\WINDOWS\System.Drawing.pdb: Cannot find or open the PDB file." error I checked with the C: files but the .pdb do not exist. Is it a problem with my m/c that it does not have the System.Drawing.pdb file or I am wrong somewhere else? Please help me. Just a note to add: MyApp is built in VS2005 and MyOcx is built in VS2003. Any help would be highly appreciated. Thanks and Regards, Arti Gujare -- modified at 7:04 Tuesday 28th November, 2006

    S 1 Reply Last reply
    0
    • J jayart

      Hi All, I am debugging an application(MyApp) which uses an OCX control. I need to debug the OCX control too. I am able to compile the OCX in debug mode and have copied the MyOcx.ocx and MyOcx.pdb files to MyApp Debug folder. When I try to debug the MyApp I am not able to debug the OCX code. I checked with the modules window and found that the symbols for the ocx could not be loaded and it shows "" C:\WINDOWS\System.Drawing.pdb: Cannot find or open the PDB file." error I checked with the C: files but the .pdb do not exist. Is it a problem with my m/c that it does not have the System.Drawing.pdb file or I am wrong somewhere else? Please help me. Just a note to add: MyApp is built in VS2005 and MyOcx is built in VS2003. Any help would be highly appreciated. Thanks and Regards, Arti Gujare -- modified at 7:04 Tuesday 28th November, 2006

      S Offline
      S Offline
      sps itsec46
      wrote on last edited by
      #2

      Hi Arti, do you perhaps use the .NET Framework in your OCX? Because "System.Drawing" sounds like the corresponding namespace of the .NET Framework. Perhaps your callstack looks nicer if you use the Microsoft Symbol Server to get the corresponding debug symbols. Then for example "System.Drawing.pdb" will be automatically downloaded from M$. Checkout the following articles on how to configure Visual Studio to connect to the M$ Symbol Server: http://www.codeproject.com/useritems/symbols.asp[^] http://www.codeproject.com/debug/postmortemdebug_standalone1.asp[^]

      cheers, mykel If they give you lined paper, write the other way!

      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