Thread: Stupid errors

Results 1 to 9 of 9
  1. #1
    rocker340's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    in my house
    Posts
    304
    Reputation
    12
    Thanks
    76

    Stupid errors

    im trying to compile my hotkey hack and i keep getting this error does anyone know what i need to do to fix it

    error C2447: '{' : missing function header (old-style formal list?)

    thats the error and this is the code that it is refrencing



    {
    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;
    }

    plz help me

    If you need a Lo/Ck/Er/Z invite, PM me! Lo/Ck/Er/Z is a promotion site to watch videos for PTZ, and redeem cool electronics for free by trading in PTZ




  2. #2
    R45H1D's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Montreal
    Posts
    785
    Reputation
    21
    Thanks
    951
    My Mood
    Amazed
    Something wrong there.

  3. The Following User Says Thank You to R45H1D For This Useful Post:

    rocker340 (06-18-2010)

  4. #3
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Please tell me there is a line above the first { with text in it.

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

    rocker340 (06-18-2010)

  6. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    i think your missing
    BOOL APIENTRY DllMain( HMODULE hModule,
    DWORD ul_reason_for_call,
    LPVOID lpReserved
    )

    above that code

  7. The Following User Says Thank You to whit For This Useful Post:

    rocker340 (06-18-2010)

  8. #5
    rocker340's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    in my house
    Posts
    304
    Reputation
    12
    Thanks
    76
    ohhh kk thanks guys i realized that i had this and then another dllmain.cpp in the project so i deleted it and it work thanks for the help
    Last edited by rocker340; 06-18-2010 at 07:06 AM.

    If you need a Lo/Ck/Er/Z invite, PM me! Lo/Ck/Er/Z is a promotion site to watch videos for PTZ, and redeem cool electronics for free by trading in PTZ




  9. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    umm do you have a file called dllmain.cpp in the project?

  10. #7
    king4940's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    with your gf
    Posts
    335
    Reputation
    24
    Thanks
    187
    just rename the dllmain to anything just might work

    works for me.



    RESPECT LIST:

    BombSway
    Marko
    Drake
    Deadline

  11. #8
    rocker340's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    in my house
    Posts
    304
    Reputation
    12
    Thanks
    76
    it ok i got it to work
    /close request

    If you need a Lo/Ck/Er/Z invite, PM me! Lo/Ck/Er/Z is a promotion site to watch videos for PTZ, and redeem cool electronics for free by trading in PTZ




  12. #9
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    /Solved
    /Closed
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. God someone help me with this stupid Error
    By -Crossfire_Hacking_Ftw- in forum CrossFire Help
    Replies: 5
    Last Post: 11-21-2010, 06:58 AM
  2. WinRaR Stupid error help!
    By KingOfLionsAslan in forum General
    Replies: 15
    Last Post: 07-11-2010, 11:45 PM
  3. WinRaR Stupid error help!!!!!!!!!!
    By KingOfLionsAslan in forum General
    Replies: 24
    Last Post: 07-11-2010, 10:44 PM
  4. Stupid Error =/
    By Wyo in forum CrossFire Help
    Replies: 13
    Last Post: 04-11-2010, 09:08 AM
  5. Stupid error
    By RoflMyWaffle in forum Combat Arms Discussions
    Replies: 8
    Last Post: 09-02-2009, 01:09 PM