Closed Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Reputation

    Join Date
    Oct 2006
    Last Online
    08-16-2010 @ 07:11 PM
    Location
    Wouldn't you like to know?
    Posts
    34
    Rep Power
    0

    I have 3 errors on compiling a program

    I am trying to compile a walhack for Soldier Front and I ony need to fix 3 errors. These are the errors:

    PHP Code:
    1>------ Build startedProjectWallhackConfigurationDebug Win32 ------
    1>Compiling...
    1>name.cpp
    1
    >c:documents and settings******my documentsvisual studio 2008projectswallhackwallhackname.cpp(26) : error C2062type 'int' unexpected
    1
    >c:documents and settings******my documentsvisual studio 2008projectswallhackwallhackname.cpp(78) : error C2447'{' missing function header (old-style formal list?)
    1>c:documents and settings******my documentsvisual studio 2008projectswallhackwallhackname.cpp(427) : fatal error C1004unexpected end-of-file found
    1
    >Build log was saved at "file://c:\Documents and Settings\******\My Documents\Visual Studio 2008\Projects\Wallhack\Wallhack\Debug\BuildLog.htm"
    1>Wallhack 3 error(s), 0 warning(s)
    ========== 
    Build0 succeeded1 failed0 up-to-date0 skipped ========== 
    These are the lines for them:

    26
    PHP Code:
    int LPDIRECT3DTEXTURE8;int Red,int Yellow,int Green,int Blue,int Purple,int Pink,int Orange
    78
    PHP Code:
    HRESULTint GenerateTexture;"IDirect3DDevice8";int pD3Ddev,IDirect3DTexture8;int ppD3Dtex,colour32
    427
    PHP Code:
     


    Last edited by Gohan2005777; 06-05-2008 at 02:51 PM.

  2. #2
    Registered User
    Reputation Reputation Reputation
    涼宮 ハルヒ's Avatar
    Join Date
    May 2008
    Last Online
    @
    Posts
    98
    Rep Power
    7

    Re: I have 3 errors on compiling a program

    1>c:documents and settings******my documentsvisual studio 2008projectswallhackwallhackname.cpp(26) : error C2062: type 'int' unexpected

    if you're declaring a whole bunch of integers, an int at the start will do.
    Code:
    int LPDIRECT3DTEXTURE8, Red, Yellow, Green, Blue, Purple, Pink, Orange;
    else use ; after everyone and not ,
    Code:
    int LPDIRECT3DTEXTURE8; int Red; int Yellow; int Green; int Blue; int Purple; int Pink; int Orange;

    1>c:documents and settings******my documentsvisual studio 2008projectswallhackwallhackname.cpp(78) : error C2447: '{' : missing function header (old-style formal list?)

    i'm unfamiliar with D3D and im not sure bout what you're trying to do so sorry.

    1>c:documents and settings******my documentsvisual studio 2008projectswallhackwallhackname.cpp(427) : fatal error C1004: unexpected end-of-file found

    you probably forgot to close a loop earlier. check if every { has a corresponding }
    Last edited by 涼宮 ハルヒ; 06-05-2008 at 06:25 PM.

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts