PDA

View Full Version : Almost done with hack but need help :/



haxor95
05-08-2008, 10:56 PM
i keep getting this error

--------------------Configuration: LH1337EXE - Win32 Debug--------------------
Compiling...
LH1337EXEDlg.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(110) : error C2501: 'hDLL' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(110) : error C2040: 'hDLL' : 'int' differs in levels of indirection from 'struct HINSTANCE__ *'
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(110) : error C2440: 'initializing' : cannot convert from 'struct HINSTANCE__ *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(110) : error C2143: syntax error : missing ';' before 'if'
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(110) : error C2447: missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(112) : error C2143: syntax error : missing ';' before 'else'
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(113) : error C2447: missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio\MyProjects\LH1337DLL\LH1337EXE\LH1337EXEDlg .cpp(117) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.

LH1337EXEDlg.obj - 8 error(s), 0 warning(s)
i even put the ; in front of "if" and "else" but it doesnt get rid of the error and the other stuff idk can some1 help me?

spartacchio
05-09-2008, 04:41 AM
u need to put the source or we can't help u

ganglyman21
05-11-2008, 04:26 AM
I can see a couple eroors I recognise there:


C:Program FilesMicrosoft Visual StudioMyProjectsLH1337DLLLH1337EXELH1337EXEDlg.cpp (110) : error C2501: 'hDLL' : missing storage-class or type specifiers

means u need this at the top:


HINSTANCE hDLL = NULL;

then this

C:Program FilesMicrosoft Visual StudioMyProjectsLH1337DLLLH1337EXELH1337EXEDlg.cpp (110) : error C2447: missing function header (old-style formal list?)

means you have tried tovoidd something but not correctly:


void Stamina(); //wrong
void Stamina() //no semi colon = correct

But without seeing the source or at least the part of it the errors take you to there isn't much anyone can do.