• 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
      Umm...
       
      Feeling Normal
       
      nb81's Avatar
      Join Date
      Oct 2013
      Posts
      29
      Thanks (-->)
      8
      Thanks (<--)
      3

      Questions about C++

      John Kittz
      Hey!

      I'm pretty new to C/C++. I'm doing C# for 1 year now, so I want to learn a new, higher-level programming language.
      I dedicated a whole day to reading tutorials/books about it and now I (think I) know the basics of it.

      As I saw there is no need for Dll input, as all of the functions I need is in the header files and this makes me easier to do memory things.

      But I would have some questions about some things I can't understand.
      What does this means? '->' And this? '^'
      What are DWORDs and other "unusual"(for me) variable types? I know int, bool, short, long etc. but the capital letter types are foreign to me. What are the differences between a DWORD and an integer? Or a LPCSTR and string(or char[])?
      What can I use pointers for? I saw a lot of people using it(the '*' symbol) but what can they achieve with it?

      I'm out of questions for now

      Thanks in advance!

    2. #2
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      145
      1. c++ is lower-level than C#
      2. pstructureX->valueY actually means that pstructureX is a pointer to a structure, if you want the structure itself u need to use *pstructureX, and if you want the value valueY within structure x you need *pstructureX.valueY which means the same as pstructureX->valueY
      3. read this https://www.cplusplus.com/doc/tutorial/pointers/ to learn pointers.

      goodluck

      EDIT: and for the data types look at this, you can also (in VS) right click a data type and see where the definition is it helps to understand.
      https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
      Last edited by NTvalk; 10-26-2013 at 02:26 PM.

    3. #3
      Learning to hack games!
       
      Feeling Normal
       
      's Avatar
      Join Date
      Jan 1970
      Posts
      0
      Thanks (-->)
      294
      Thanks (<--)
      328
      If you highlight DWORD or any other variable or function in Visual Studio and press F1 it'll take you to the MSDN website and give you a brief explanation.

    4. #4
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      491
      Cheats'n'Trainers
      * dereferences the pointer, ie instead of just reading the value a variable wholds it will read the value at the address the variable holds.
      Questions about C++

    Similar Game Hacker Threads

    1. [Help] i got some IDA Questions.
      By shryder in forum IDA Pro Disassembler
      Replies: 1
      Last Post: 04-06-2016, 05:39 PM
    2. [Help] Lot of questions :)
      By maxibaby in forum C/C++
      Replies: 10
      Last Post: 10-31-2015, 04:22 AM
    3. [Help] Few questions
      By Bluzzard in forum Hacking Help
      Replies: 8
      Last Post: 11-12-2014, 03:49 PM
    4. general SDK questions.
      By noobhacky in forum Hacking Help
      Replies: 10
      Last Post: 06-02-2014, 03:38 AM
    5. help/questions
      By Coulprit 777 in forum C/C++
      Replies: 10
      Last Post: 01-04-2014, 07:24 AM

    Tags for this Thread