Cara estamos no msm barco, hehe
Cara ta dando um erro na parte final do meu hack e eu não consigo resolver D:
me ajuda plz
[php] BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved);
{ //aki está o problema
switch (ul_reason_for_call);
{
case DLL_PROCESS_ATTACH:
ShellExecute;
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]
Resultado:
[php]1>------ Build started: Project: My frirst hack, Configuration: Debug Win32 ------
1> My frirst hack.cpp
1>c:\documents and settings\user\meus documentos\hacking\my frirst hack\my frirst hack\my frirst hack.cpp(1): warning C4627: '#include <process.h>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\documents and settings\user\meus documentos\hacking\my frirst hack\my frirst hack\my frirst hack.cpp(66): error C2447: '{' : missing function header (old-style formal list?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[/php]
Ajuda plz ^^
Last edited by leoisso; 12-20-2010 at 11:47 AM.
Cara estamos no msm barco, hehe
O erro que você mostrou está na parte do code que vc NÃO mostrou, ou seja, não tem como te ajudar!
Crie um Novo Projeto C++ Win32.
Clique em Next.
Selecione DLL.
E de um Finish
Voce verá que aparece um Codigo assim:
Agora Basta Adicionar o Resto do Código do Hotkeys Abaixo dele, agora Compile.Code:#include "stdafx.h"
leoisso (01-01-2011)
I speak English and I am using Google translate. It seems your problem is that u did not add the precompiled header 'StdAfx.h' so, at the top of your source add ' #include "StdAfx.h" ' and you should be fine but I recommend that you create an empty Project and start from scratch.
Falo Inglês e estou usando o Google Translate. Parece que o problema é que u não adicionar o cabeçalho pré-compilado "StdAfx.h" assim, no topo de sua fonte de acrescentar "# include " StdAfx.h "e você deve estar bem, mas eu recomendo que você crie um projeto vazio e começar do zero.
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development