Results 1 to 5 of 5
  1. #1
    leoisso's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    At Home
    Posts
    1,728
    Reputation
    14
    Thanks
    525
    My Mood
    Drunk

    [Help] Algum coder ajuda na parte final do meu hack?

    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.

  2. #2
    -Jhony-'s Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    2
    My Mood
    Psychedelic
    Cara estamos no msm barco, hehe

  3. #3
    detroyd's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    38
    Reputation
    10
    Thanks
    10
    O erro que você mostrou está na parte do code que vc NÃO mostrou, ou seja, não tem como te ajudar!

  4. #4
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Crie um Novo Projeto C++ Win32.
    Clique em Next.
    Selecione DLL.
    E de um Finish

    Voce verá que aparece um Codigo assim:

    Code:
    #include "stdafx.h"
    Agora Basta Adicionar o Resto do Código do Hotkeys Abaixo dele, agora Compile.

  5. The Following User Says Thank You to Alessandro10 For This Useful Post:

    leoisso (01-01-2011)

  6. #5
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    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

  7. The Following 2 Users Say Thank You to topblast For This Useful Post:

    Capevaldo (01-01-2011),leoisso (01-01-2011)