Installing and Using Debuging tools... Help

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Installing and Using Debuging tools... Help

      I installed the Debugging tool at
      microsoft.com/whdc/devtools/debugging/installx86.mspx

      When I try to compile the authors sample code he has in his
      book (MiniDumper); I get lots and lots of compiler errors in
      the "Tlhelp32.h" file!!! Since I don't know anything about
      this file, I dont want to go in and fix stuff.

      I there something I need to do in my VC 7.0 compiler?!!

      Thanks,
    • You can do attachments by clicking the "edit..." button on the "Attachment:" section when you post. It only lets you do zip file less than 500K, I think. But posting proj files won't help me figure out your errors.

      I just need to see the error messages. Can you just copy and paste the errors as plain text?
    • RE: Installing and Using Debuging tools... Help

      Kain,


      Here is a partial listing sir,


      .
      .
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(82): error C2059: syntax error : ')'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(89): error C2059: syntax error : ')'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(134): error C2059: syntax error : ')'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(33): error C2059: syntax error : ')'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(82): error C2059: syntax error : ')'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(89): error C2059: syntax error : ')'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(134): error C2059: syntax error : ')'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(116): error C2061: syntax error : identifier 'DWORD'
      .
      .
      .
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(31): error C2065: 'DWORD' : undeclared identifier
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(86): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(114): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(122): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(128): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(86): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(114): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(122): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(128): error C2086: 'int BOOL' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(79): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(86): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(114): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(122): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(128): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(79): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(86): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(114): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(122): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(128): error C2086: 'int WINAPI' : redefinition
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(31): error C2146: syntax error : missing ')' before identifier 'dwFlags'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(31): error C2146: syntax error : missing ')' before identifier 'dwFlags'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(80): error C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(80): error C2146: syntax error : missing ')' before identifier 'hSnapshot'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(87): error C2146: syntax error : missing ')' before identifier 'hSnapshot'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(129): error C2146: syntax error : missing ')' before identifier 'th32ProcessID'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(129): error C2146: syntax error : missing ')' before identifier 'th32ProcessID'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(141): error C2146: syntax error : missing ';' before identifier 'cntUsage'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(141): error C2146: syntax error : missing ';' before identifier 'cntUsage'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(30): error C2146: syntax error : missing ';' before identifier 'CreateToolhelp32Snapshot'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(30): error C2146: syntax error : missing ';' before identifier 'CreateToolhelp32Snapshot'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(95): error C2146: syntax error : missing ';' before identifier 'dwAddress'
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\TlHelp32.h(95): error C2146: syntax error : missing ';' before identifier 'dwAddress'
    • Hmm... it doesn't know what a DWORD is, and it thinks BOOL and WINAPI are already defined. It sounds like your includes are confused and fighting with each other, ma'am.

      Installing that debugging tool seems to have altered your include directories in a bad way. The purpose of the debug tool is to debug windows drivers, I think. Was that your intention? I do not think it adds additional functionality for debugging code for a regular app/game. I could be wrong, though.

      You can view your global include drectories (the one that may have been altered by the recently installed debug tool) by doing this in your VS.NET 2003 app:
      1. Tools->Options...
      2. Projects
      3. VC++ Directories
      4. Set the listbox on the top right of the dialog to say "Show directories for: Include files"


      Here's what mine say:
      $(VCInstallDir)include
      $(VCInstallDir)atlmfc\include
      $(VCInstallDir)PlatformSDK\include\prerelease
      $(VCInstallDir)PlatformSDK\include
      $(FrameworkSDKDir)include

      If changing your directories to match mine doesn't help, then try uninstalling the debug tool, if possible. There may also be lib issues to resolve as well. Just try removing any directories that refer to the debugging tool.

      If that doesn't help, then you may try the blind man with a shotgun solution and uninstall VS.NET 2003 and reinstall it. Hopefully, it won't come to that, though.

      The post was edited 2 times, last by Kain ().

    • Sir :]

      ..he purpose of the debug tool is to debugwindows drivers..


      OH OK!! I was under the impression that I needed these.
      Oh well. :) I did uninstall it and I get the same old thing.

      Here are what mine are:

      C:\OggVorbis\libvorbis-1.1.1\include
      C:\OggVorbis\libogg-1.1.2\include
      C:\Program Files\Microsoft DirectX 9.0 SDK (April 2005)\Include
      C:\Boost\include\boost-1_32
      $(VCInstallDir)include
      $(VCInstallDir)atlmfc\include
      $(VCInstallDir)PlatformSDK\include\prerelease
      $(VCInstallDir)PlatformSDK\include
      $(FrameworkSDKDir)include

      They are exatcly like yours with the exception of a few
      more libriries.

      Side Bar:
      When I put in "#include <dsound.h>" in my code, I get
      a ton of these errors:
      CAudio error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
      CAudio error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
      CAudio error C2501: '_DSCBUFFERDESC1::LPWAVEFORMATEX' : missing storage-class or type specifiers


      Any suggestions??


      Thanks again.

      S.

      The post was edited 1 time, last by Sabrina ().

    • RE: Installing and Using Debuging tools... Help

      Howdy Sir,

      OK, DUH! I was tyring to upload zip files that were TOO
      big! I was including the *.proj files as well.

      I did uninstall the debugger thing-ma-jig. I installed it cuz
      I thought the author and other people use it to help
      with delvelopment. I guess I thought it would be a good
      idea to "mimic" their development platform as well, so I
      installed it as a 'learning tool'. Anyway, I still get the same
      errors ?(


      I did notice in the authors book that the sound classes
      use DirectX 8.1 I installed the DirectX 8.1 SDK, but now
      am woundering if DirectX is 'Backward compatable'. Can
      I still use DirectX9 for DirectX8 code/projects without
      having 'compatability' issues? My point is since I have
      DirectX 9, and the author is using DirectXt 8.1 (?)
      can I still use my version instead of using the 8.1
      for sound?

      What I did with the authors sound class is remove it from
      the other source and isolate it to see if I could get it
      working alone by its self. I have some success! The
      only errors I get are the error C3861: 'DXUT_ERR':
      identifier not found, even with argument-dependent lookup' errors. Any quick ideas?


      Thank you again! :D

      S.M.
    • DXUT_ERR is included with the gamecode sample.

      Are you using the sample codebase or just writing the code as you go for learning purposes? I'm curious to know if your code was working fine before the install of that debugging tool.

      Just for kicks, in case you are not using the sample codebase, get the revision and edited proj files from that other thread and see if you can get that to work on your machine.

      As far as I can tell, your settings are fine, something else is going on.
    • Hi,

      I am writing the code for learning purposes. I did the
      same thing with the authors "CProcess" class. I isolated
      the code and placed some other code to see how it
      worked. I got it working great! It really helps me see now
      how it works in his game. Of course I can't use it in
      anything, but its a great learning experience! :D

      The "MiniDump" program the author did not work before
      I installed the debugger from MS. Its not a big deal, I
      was just hoping to get it compiled to see how it works.

      I put the DirectX sound stuff on the back-burner for
      now. I will need to think about the problem and keep
      researching.

      S.
    • OK, well good luck.

      The closer you get to the DirectX stuff, the more you're gonna want to take a look at the author's sample code.

      Eventually, it might serve you well to come from both directions in your learning process... that is to continue doing what you are already doing, but also get the sample code to compile and use it as reference when you run into a roadblock with your fresh-start codebase.

      As always, you know where to find us :)
    • Eh, I'd suggest against using the stuff from the book. Some of that stuff had glaring syntax errors, and since it was cut and pasted into Word, there's too high a chance of mistakes. You might think that makes Mike sloppy, but I don't.
      -Larrik Jaerico

      www.LarrikJ.com