• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 4 of 4
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      torgomanz10's Avatar
      Join Date
      Jan 2014
      Posts
      9
      Thanks (-->)
      5
      Thanks (<--)
      0

      Lightbulb How to fix some errors with C++ (winNT.h)

      John Kittz
      Hello guys!

      Today, I'll be teaching you how to fix a specific errors in Visual C++ 2008, 2010 express and even ultimate, like these below:


      1>------ Build started: Project: Console Trainer, Configuration: Debug Win32 ------
      1> Main.cpp
      1>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(290): error C2146: syntax error : missing ';' before identifier 'PVOID64'
      1>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(8993): error C2146: syntax error : missing ';' before identifier 'Buffer'
      1>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(8993): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(8993): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========





      First Double click on the first error, which is looking like this


      1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64'


      It will automatically takes you to line 290 which is down below!


      typedef void * POINTER_64 PVOID64;


      Then change it to:


      typedef void * __ptr64 PVOID64;


      Then Save it (CTRL+S)
      Build or Run it







      Thats it! Hope it Helped!
      EnjoY


      Turjumanz!

    2. #2
      RTFM
      Shootin Pool!
       
      Coding
       
      Syperus's Avatar
      Join Date
      Oct 2012
      Location
      127.0.0.1
      Posts
      436
      Thanks (-->)
      101
      Thanks (<--)
      131
      Also maybe explain whats causing the error and why you need to change the code to what you provided? Would make for a decent little tutorial. Just a thought.
      Blacks Ops Zombies, BioShock Infinite Array of Bytes
      "People say I'm a bad influence. I say the world's already fucked, I'm just adding to it" -Eminem

    3. #3
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      145
      I generally don't recommend changing winnt.h. What you can do is include windows.h before you include winnt.h (or replace it).
      Because POINTER_64 is defined in windows.h:
      #define POINTER_64 __ptr64

      Including winnt.h without windows.h results in POINTER_64 being undefined.

    4. #4
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      torgomanz10's Avatar
      Join Date
      Jan 2014
      Posts
      9
      Thanks (-->)
      5
      Thanks (<--)
      0
      Cheats'n'Trainers
      tried this... didnt work
      Quote Originally Posted by NTvalk View Post
      I generally don't recommend changing winnt.h. What you can do is include windows.h before you include winnt.h (or replace it).
      Because POINTER_64 is defined in windows.h:
      #define POINTER_64 __ptr64

      Including winnt.h without windows.h results in POINTER_64 being undefined.

    Similar Game Hacker Threads

    1. [Help] Css Bunny hop/esp Errors
      By tvojama in forum Counter-Strike: Source Hacks
      Replies: 7
      Last Post: 04-03-2015, 07:56 PM
    2. [Help] C++ - 3 compiling errors (trigger bot)
      By pret in forum Hacking Help
      Replies: 4
      Last Post: 02-05-2015, 06:10 PM
    3. [Help] I dont understand these errors?
      By rulethecool in forum Hacking Help
      Replies: 4
      Last Post: 10-04-2014, 12:00 PM
    4. [Help] Errors.. TUT number 7 final Trainer! Help!!!
      By torgomanz10 in forum GH Tutorials Help
      Replies: 8
      Last Post: 02-01-2014, 12:24 PM
    5. [Help] D3D menu in c++ compilation errors.
      By ruekv in forum GH Tutorials Help
      Replies: 10
      Last Post: 03-24-2013, 09:04 AM

    Tags for this Thread