Thread: errors (2)

Results 1 to 5 of 5
  1. #1
    dragonslop's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    254
    Reputation
    10
    Thanks
    25
    My Mood
    Confused

    Post errors (2)

    code:

    Error 1 error LNK2001: unresolved external symbol __DllMainCRTStartup@12
    Error 2 error LNK1120: 1 unresolved externals

    plz help?

  2. #2
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    831
    Reputation
    44
    Thanks
    401
    My Mood
    Twisted
    Noob u need a dllmain.

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    https://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    https://www.youtube.com/watch?v=Na2kUdu4d_k

  3. #3
    dragonslop's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    254
    Reputation
    10
    Thanks
    25
    My Mood
    Confused
    Quote Originally Posted by Ch40zz-C0d3r View Post
    Noob u need a dllmain.
    code:

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Thread_XD3DXINIT, NULL, NULL, NULL);

    return TRUE;
    }

    this is it?

  4. #4
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by dragonslop View Post
    code:

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Thread_XD3DXINIT, NULL, NULL, NULL);

    return TRUE;
    }

    this is it?
    Yes that's one way to do it.
    Dont ban me

  5. #5
    dragonslop's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    254
    Reputation
    10
    Thanks
    25
    My Mood
    Confused
    tryed still fails