Please Delete No Need More

Results 1 to 4 of 4
  1. #1
    Member Blood* is offline
    MemberRank
    Aug 2009 Join Date
    New BloodLocation
    82Posts

    Please Delete No Need More

    #include "stdafx.h"
    #include <stdio.h>
    #include <windows.h>
    #include <stdio>

    #include "..\detours\detours.h"
    #include "resources.h"

    #define CHANNEL_LOWGRAVITY 2
    #define ZGETGAMECLIENT 0x004ABCC0
    #define ZMYCHARACTER_GETGRAVITYCONST 0x0047DB30
    ...
    void GravityModThread()
    {
    Beep(1000, 100);

    DetourFunctionWithEmptyTrampoline((unsigned char *)OriginalGetGravityConst, (unsigned char *)ZMYCHARACTER_GETGRAVITYCONST, (unsigned char *)HookedGetGravityConst);
    }

    __declspec(dllexport) BOOL __stdcall DllMain(HINSTANCE hInst,DWORD reason,LPVOID lpv)
    {
    if(ulReason == DLL_PROCESS_ATTACH)
    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&GravityModThread, 0, 0, 0);

    else if(ulReason == DLL_PROCESS_DETACH)
    {
    Beep(500, 100);

    DetourRemove((unsigned char *)OriginalGetGravityConst, (unsigned char *)HookedGetGravityConst);
    }

    return 1;
    }


    ---------------------------

    1>c:\documents and settings\user\meus documentos\visual studio 2008\projects\gravity\gravity\gravity.cpp(7) : fatal error C1083: Cannot open include file: 'stdio': No such file or directory

    1>Build log was saved at "file://c:\Documents and Settings\user\Meus documentos\Visual Studio 2008\Projects\Gravity\Gravity\Debug\BuildLog.htm"

    Only Visual C++ 2008 Express thx ;D i need work in the visual C++ 2008


  2. #2
    WowIwasSuperCringeB4 XZeenon is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,405Posts

    Re: C# Include problem :

    Are you trying to code this in C# or C++? I don't really understand what you are doing, because in C# you don't do #include blah blah, you do: using System.w/e; etc.

  3. #3
    Member Blood* is offline
    MemberRank
    Aug 2009 Join Date
    New BloodLocation
    82Posts

    Re: C# Include problem :

    Close This Topic.
    i'm advanced now in C++
    this everything okay
    i'm not view
    needed excuse #include stdio
    code made by me
    thx,

  4. #4
    Account Upgraded | Title Enabled! cerealnp is offline
    MemberRank
    Apr 2006 Join Date
    BrazilLocation
    441Posts

    Re: C# Include problem :

    Quote Originally Posted by Blood* View Post
    code made by me
    Lol'd.
    Wrong section though.
    Last edited by cerealnp; 14-08-09 at 11:44 PM.



Advertisement