Little Eror Help

Posts 111 of 11 · Page 1 of 1
Little Eror Help

I keep geting this error
fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
I bin looking around on how to fix this error but i cant seem to fix it
plz dont flame that this is easy go learn c++ bec i am still learning c++ as we speak
It is sayinf thaT stdafx.h is missing /
make a file named that (right click > add file?)

i dont think i am missing it I will try and rename it Hold on
Edit/its still poping up

Code:
------ Build started: Project: PID3RMAN 1.0, Configuration: Debug Win32 ------
Compiling...
base.cpp
c:\documents and settings\parent\my documents\visual studio 2008\projects\pid3rman 1.0\pid3rman 1.0\base.cpp(2) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\Parent\My Documents\Visual Studio 2008\Projects\PID3RMAN 1.0\PID3RMAN 1.0\Debug\BuildLog.htm"
PID3RMAN 1.0 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Make a new project and choose empty project..
Theres a way you can disable it but i forgot how..

Thanks let me try right now
/Edit Still Comes up Dx
Quote Originally Posted by PID3RMAN View Post

Thanks let me try right now
/Edit Still Comes up Dx
cuz im not in ur lcan
Quote Originally Posted by Tony Stark` View Post


cuz im not in ur lcan


Hahah are yhu going to post this on everthing i put
Make a new project and don't delete stdafx.h this time? And it will work.
You chose empty project right? NOT Dll.
Erase it.... lol

so it would just be #include <windows.h>

or whatever you got.. lol

So the code (I suspect) you are using would be like this

[php]#include <windows.h>
#define Engine 0x000 //Replace 0x000 to Engine LTC

bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole(char *szCommand)
{
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t RCC = (RunConsoleCommand_t)Engine; //EngineLTC;
RCC(szCommand);
}

void main()
{
while(!IsGameReadyForHook()){
Sleep(200);
}
bool FPS = false;
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD1)<0)
if(FPS){
PushToConsole("ShowFPS 0");
FPS = false;
}else{
PushToConsole("ShowFPS 1");
FPS = true;
}

}
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
[/php]
i told you how to fix this in msn 2 times

make a empty win 32 project

make shure its .dll

and you pick empty project
Posts 111 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?