• 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 10 of 10
    1. #1
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      guru's Avatar
      Join Date
      Jun 2012
      Posts
      117
      Thanks (-->)
      7
      Thanks (<--)
      21

      Compile successful but no output

      Silent VPN
      Hi guys!
      I got a problem in vc++ 2010. I tried a sample program to test the ide. But it compiles successfully without showing any window(which is the desired output). Could you help me debug it?

      I am posting my code here!

      [spoiler]#include&lt;Windows.h&gt;

      HRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wparam,LPARAM lparam);

      int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hprevInstance,LPWSTR cmdline,int cmdshow)
      {
      UNREFERENCED_PARAMETER(hprevInstance);
      UNREFERENCED_PARAMETER(cmdline);
      HWND hwnd;
      MSG msg;
      WNDCLASS wc;
      wc.hInstance=hInstance;
      wc.lpszClassName=TEXT("Window");
      wc.style=CS_VREDRAW | CS_HREDRAW;
      wc.hCursor=LoadCursor(0,IDC_ARROW);
      wc.hbrBackground=GetSysColorBrush(COLOR_3DFACE);
      wc.lpfnWndProc=WndProc;
      wc.lpszMenuName=NULL;
      RegisterClass(&amp;wc);
      hwnd=CreateWindow(wc.lpszClassName,TEXT("Test Window"),WS_OVERLAPPEDWINDOW|WS_VISIBLE,100,100,60 0,480,0,0,hInstance,0);
      ShowWindow(hwnd,cmdshow);
      UpdateWindow(hwnd);
      while(GetMessage(&amp;msg,NULL,0,0))
      {
      TranslateMessage(&amp;msg);
      DispatchMessage(&amp;msg);
      }
      return (int) msg.wParam;
      }

      HRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wparam, LPARAM lparam)
      {
      switch(msg)
      {
      case WM_CREATE:
      {
      break;
      }
      case WM_LBUTTONDBLCLK:
      {
      MessageBox(hwnd,TEXT("You are not allowed to double click"),TEXT("Info"),MB_OK);
      break;
      }
      case WM_DESTROY:
      {
      PostQuitMessage(0);
      break;
      }
      }
      return DefWindowProc(hwnd,msg,wparam,lparam);
      }[/spoiler]

    2. #2
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      742
      Hey guru, I remember doing a bit of Win32 ide programming a while back, It can be very stressful if your used to C# Ide development work. Anyways I got your code and made a couple of changes, Incase you havent fixed it yet here is the working code, I have commented on the changes I made, not all of them have to be that way but the main ones will be obvious.

      If this solves it for you make sure to lock the thread and add [SOLVED] to the topic title.

      Code:
      #include&lt;Windows.h&gt;
      
      HRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wparam,LPARAM lparam);
      
      int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hprevInstance, /*LPWSTR*/LPSTR cmdline,int cmdshow)
      {
        //UNREFERENCED_PARAMETER(hprevInstance);
        //UNREFERENCED_PARAMETER(cmdline);
      
        HWND hwnd;
        MSG msg;
        WNDCLASS wc;
      
        wc.hInstance=hInstance;
        wc.lpszClassName=TEXT("Window");
        wc.style=CS_VREDRAW | CS_HREDRAW;
        wc.hCursor=LoadCursor(NULL /*0*/,IDC_ARROW);
        wc.hbrBackground=GetSysColorBrush(COLOR_3DFACE);
        wc.lpfnWndProc=WndProc;
        wc.lpszMenuName=NULL;
        wc.hIcon     = LoadIcon(NULL, IDI_APPLICATION); //WAS MISSING
        //THESE 2 BELOW WERE ALSO MISSING
        wc.cbClsExtra  = 0;
        wc.cbWndExtra  = 0;
      
        RegisterClass(&amp;wc);
        hwnd=CreateWindow(wc.lpszClassName,TEXT("Test Window"),WS_OVERLAPPEDWINDOW|WS_VISIBLE,100,100,600,480,0,0,hInstance,0);
        ShowWindow(hwnd,cmdshow);
        UpdateWindow(hwnd);
      
      
        while(GetMessage(&amp;msg,NULL,0,0))
        {
         TranslateMessage(&amp;msg);
         DispatchMessage(&amp;msg);
        }
        return (int) msg.wParam;
      }
      
      HRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wparam, LPARAM lparam)
      {
        switch(msg)
        {
      	  /*
        case WM_CREATE:
         {
         break;
         }
        case WM_LBUTTONDBLCLK:
         {
         MessageBox(hwnd,TEXT("You are not allowed to double click"),TEXT("Info"),MB_OK);
         break;
         }
      	 */
        case WM_DESTROY:
         {
           PostQuitMessage(0);
           break;
         }
        }
        return DefWindowProc(hwnd,msg,wparam,lparam);
      }

      Fleep

    3. #3
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      konsowa's Avatar
      Join Date
      May 2012
      Posts
      184
      Thanks (-->)
      1
      Thanks (<--)
      2
      If ur ever need to debug anything basically just put a msgbox or 2 which can help u in determining where the problem is..

    4. #4
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      guru's Avatar
      Join Date
      Jun 2012
      Posts
      117
      Thanks (-->)
      7
      Thanks (<--)
      21
      @Fleep: Thanks fleep! I tried it but can't crack it. I learning this new programming language entirely for programming the hack. Just tried the basics which ever i learned for this week but it's really confusing. I wonder how people use this language. They look like mnemonics to me. People say that this is they efficient way to program hack than any other languages. One more thing fleep, I saw your tutorial you used some of these vc++ elements in the programming. Do I need to be an expert/intermediate level programmer to use it?

      @Konsowa: For how many days could I be programming with message box technique to find the bugs even though it's a good idea? For this whole week i used the message box technique to find the bug and fixed it. Moment i tried programming a full length program with message box, I ended with this. Moreover I compare these codes with which I was building successfully this week but no use of it. Quite challenging for me. I am not good at debugging in vc++. And also I don't know what variable should contain what value.


      Once I get the basic work in place, I will kick start my hacking work....

    5. #5
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      742
      Quote Originally Posted by guru
      @Fleep: Thanks fleep! I tried it but can't crack it. I learning this new programming language entirely for programming the hack. Just tried the basics which ever i learned for this week but it's really confusing. I wonder how people use this language. They look like mnemonics to me. People say that this is they efficient way to program hack than any other languages. One more thing fleep, I saw your tutorial you used some of these vc++ elements in the programming. Do I need to be an expert/intermediate level programmer to use it?

      @Konsowa: For how many days could I be programming with message box technique to find the bugs even though it's a good idea? For this whole week i used the message box technique to find the bug and fixed it. Moment i tried programming a full length program with message box, I ended with this. Moreover I compare these codes with which I was building successfully this week but no use of it. Quite challenging for me. I am not good at debugging in vc++. And also I don't know what variable should contain what value.


      Once I get the basic work in place, I will kick start my hacking work....
      Unless your fairly experienced with c++ then I don't recommend you mess with this as it takes a lot of work to do simple things.
      I would recommend sticking to console interfaces in the meantime. Also the VC++ within the tutorial isnt anything difficult, although from my experience it is quite buggy.

      Fleep

    6. #6
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      guru's Avatar
      Join Date
      Jun 2012
      Posts
      117
      Thanks (-->)
      7
      Thanks (<--)
      21
      I would recommend sticking to console interfaces in the meantime
      Did you mean console app development?

      I will make a list of things that i need to know:
      [list type=decimal]
      [li]C++ / C#(which would you recommend?)[/li]
      [li]directx interfaces[/li][/list]

      any other thing?

      I was in programming for 8 years but never thought about programming system applications or graphics applications. So I need some guidance to a certain point as I am new to this stuff(Don't mistake me fleep if i ask some silly questions. I apologize for that).

    7. #7
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      742
      Quote Originally Posted by guru
      I would recommend sticking to console interfaces in the meantime
      Did you mean console app development?

      I will make a list of things that i need to know:
      [list type=decimal]
      [li]C++ / C#(which would you recommend?)[/li]
      [li]directx interfaces[/li][/list]

      any other thing?

      I was in programming for 8 years but never thought about programming system applications or graphics applications. So I need some guidance to a certain point as I am new to this stuff(Don't mistake me fleep if i ask some silly questions. I apologize for that).
      Well before learning C++ I recommend you play around with C#, after getting comfortable with that get used to C++ win32 api.
      After that look into D3D Interfaces.

      Don't worry about the questions, just start at the easier stuff then move on to heavy c++, also if you wana try out a user friendly interface with C++ then check out [lmgtfy]QT[/lmgtfy], its very similar to Window forms and one of the easiest GUI available for c++.

      Fleep

    8. #8
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      guru's Avatar
      Join Date
      Jun 2012
      Posts
      117
      Thanks (-->)
      7
      Thanks (<--)
      21
      Fleep I know c#. But to what level do I need to know in c# before moving to c++?!! [s]Because my aim is to create an aimbot and esp hack for fps games[/s].

      Example: like reading/writing value to the process, creating windows application using c# etc..

    9. #9
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      742
      Quote Originally Posted by guru
      Fleep I know c#. But to what level do I need to know in c# before moving to c++?!! [s]Because my aim is to create an aimbot and esp hack for fps games[/s].

      Example: like reading/writing value to the process, creating windows application using c# etc..
      Well I think if your very comfortable with C# then you shouldn't have a problem with c++.
      Why not write a couple of hacks first in C#, then move on to C++.

      If you want to create an aimbot as one of your first hacks you can pretty much forget about it as it is crazy.
      Here is one of my C# hacking tutorials you may have seen, I did a LONG time ago and with it you get a read/write to memory class and so on. I believe its pretty quick and you may get some help out of it.

      https://guidedhacking.com/forum/index.php?topic=14.0

      Fleep

    10. #10
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      guru's Avatar
      Join Date
      Jun 2012
      Posts
      117
      Thanks (-->)
      7
      Thanks (<--)
      21
      Silent VPN
      Fleep, I never mind about the craziness. But I need to be quick.

    Similar Game Hacker Threads

    1. [Help] Address and offset is right but wrong output?
      By olsarets7 in forum Assault Cube Hacks
      Replies: 2
      Last Post: 04-26-2016, 11:51 AM
    2. [Help] Wrong Output
      By simonpaa in forum Hacking Help
      Replies: 8
      Last Post: 02-13-2016, 12:23 PM
    3. [Help] injection successful but without d3d menu.
      By cascraft in forum General Coding Discussion
      Replies: 5
      Last Post: 07-01-2015, 04:54 PM
    4. [Help] D3D Menu Not showing? But no compile errors
      By xploiitz in forum GH Tutorials Help
      Replies: 49
      Last Post: 04-11-2013, 08:41 PM
    5. Help with ESP output to cmd line/prompt
      By silentm in forum Hacking Help
      Replies: 5
      Last Post: 12-18-2012, 10:05 AM