Results 1 to 8 of 8
  1. #1
    hfe636's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed

    Error Help Please

    I have been messing around with a few C++ books and websites to learn the language so ive caught onto the basics so i went ahead and attempted to make a hack for CA i am using gellins base for a d3d menu i updated the ptc method and changed the look of the menu a bit my problem is an error which is telling me it can not include d3dx9.h so i think that the uploader of the gellins base didn't upload that file what i would like to know is how do i fix it how do i code in my own d3dx9.h file if i have to can someone help me please


    Error Code
    Code:
    1>------ Build started: Project: Hacks, Configuration: Debug Win32 ------
    1>  MenuFormat.cpp
    1>  Base.h : Building for D3D9
    1>c:\users\daniel\documents\visual studio 2012\projects\hacks\hacks\base.h(16): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
    1>  Base.cpp
    1>  Base.h : Building for D3D9
    1>c:\users\daniel\documents\visual studio 2012\projects\hacks\hacks\base.h(16): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
    1>  Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    Help plz thanks

  2. #2
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,589
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    Download the DirectX9 June SDK and include the Include and Lib directories into your hack's properties
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  3. #3
    pDevice's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    d3d9.h
    Posts
    1,306
    Reputation
    15
    Thanks
    420
    My Mood
    Stressed



  4. #4
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    set your LIB ind Include directories

  5. #5
    hfe636's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    Thanks that helped lots lol but now i get a new error and im not sure if its a problem with directory's like the old error and before i go messing around with anything ill just post here before i break something ^.^ thanks for the help though on that last error!

    Not sure if this helps but within my Base.h i have this

    Code:
    #include "detours.h"
    #pragma comment (lib, "detours.lib")
    could this be the problem ?


    Code:
    1>------ Build started: Project: Hacks, Configuration: Release Win32 ------
    1>  Base.cpp
    1>  Base.h : Building for D3D9
    1>Base.cpp(208): warning C4551: function call missing argument list
    1>Base.cpp(218): warning C4551: function call missing argument list
    1>  MenuFormat.cpp
    1>  Base.h : Building for D3D9
    1>LINK : fatal error LNK1104: cannot open file 'detours.lib'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Last edited by hfe636; 11-01-2012 at 09:17 PM.

  6. #6
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,589
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    Quote Originally Posted by hfe636 View Post
    Thanks that helped lots lol but now i get a new error and im not sure if its a problem with directory's like the old error and before i go messing around with anything ill just post here before i break something ^.^ thanks for the help though on that last error!

    Not sure if this helps but within my Base.h i have this

    Code:
    #include "detours.h"
    #pragma comment (lib, "detours.lib")
    could this be the problem ?


    Code:
    1>------ Build started: Project: Hacks, Configuration: Release Win32 ------
    1>  Base.cpp
    1>  Base.h : Building for D3D9
    1>Base.cpp(208): warning C4551: function call missing argument list
    1>Base.cpp(218): warning C4551: function call missing argument list
    1>  MenuFormat.cpp
    1>  Base.h : Building for D3D9
    1>LINK : fatal error LNK1104: cannot open file 'detours.lib'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Yes. Make sure you have the file "Detours.lib" in your source directory where all your files are located for your project. The actual file. If not, and you're not using the library or those detours, remove it.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  7. #7
    hfe636's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    Quote Originally Posted by Flengo View Post


    Yes. Make sure you have the file "Detours.lib" in your source directory where all your files are located for your project. The actual file. If not, and you're not using the library or those detours, remove it.
    Thank you sir that helped lots worked fine got rid of that error and fixed some other issues i had within the menu being visible and such and wells along came something else that i have no idea what to do about it LOL so if you or anyone else that knows how to fix please take the time and post i appreciate all the help thank you <3


    Code:
    1>------ Build started: Project: Hacks, Configuration: Release Win32 ------
    1>  Base.cpp
    1>  Base.h : Building for D3D9
    1>Base.cpp(206): warning C4551: function call missing argument list
    1>Base.cpp(216): warning C4551: function call missing argument list
    1>  Generating code
    1>  Finished generating code
    1>detours.lib(detours.obj) : error LNK2026: module unsafe for SAFESEH image.
    1>detours.lib(disasm.obj) : error LNK2026: module unsafe for SAFESEH image.
    1>C:\Users\Daniel\documents\visual studio 2012\Projects\Hacks\Release\Hacks.dll : fatal error LNK1281: Unable to generate SAFESEH image.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    im guessing something in the detour.lib is fked up? and do i even need the detours or can i get rid of it and no i didnt code the detour.h nor the detour.lib i think it was gellin so credits to him.
    Last edited by hfe636; 11-01-2012 at 09:59 PM.

  8. #8
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    Quote Originally Posted by hfe636 View Post
    Thank you sir that helped lots worked fine got rid of that error and fixed some other issues i had within the menu being visible and such and wells along came something else that i have no idea what to do about it LOL so if you or anyone else that knows how to fix please take the time and post i appreciate all the help thank you <3


    Code:
    1>------ Build started: Project: Hacks, Configuration: Release Win32 ------
    1>  Base.cpp
    1>  Base.h : Building for D3D9
    1>Base.cpp(206): warning C4551: function call missing argument list
    1>Base.cpp(216): warning C4551: function call missing argument list
    1>  Generating code
    1>  Finished generating code
    1>detours.lib(detours.obj) : error LNK2026: module unsafe for SAFESEH image.
    1>detours.lib(disasm.obj) : error LNK2026: module unsafe for SAFESEH image.
    1>C:\Users\Daniel\documents\visual studio 2012\Projects\Hacks\Release\Hacks.dll : fatal error LNK1281: Unable to generate SAFESEH image.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    im guessing something in the detour.lib is fked up? and do i even need the detours or can i get rid of it and no i didnt code the detour.h nor the detour.lib i think it was gellin so credits to him.
    looks like it built fine.
    so i doubt its the Detours file
    warnings are fine, errors need fixed
    MSDN will be your best friend no one is willing to help
    Linker Tools Error LNK1281 (C++)

Similar Threads

  1. [Help Request] runtime error help please
    By Keroka0 in forum CrossFire Help
    Replies: 3
    Last Post: 08-16-2012, 09:42 PM
  2. [Help Request] c++ build error help please
    By xXsnakemasterXx in forum Piercing Blow Help
    Replies: 0
    Last Post: 08-06-2012, 12:40 PM
  3. hack error help please
    By a1s2garden5 in forum Combat Arms Coding Help & Discussion
    Replies: 6
    Last Post: 08-06-2011, 10:16 AM
  4. Error, Help please!
    By YouPanic in forum Combat Arms EU Help
    Replies: 1
    Last Post: 08-29-2010, 06:15 AM
  5. [PLEASE HELP]:(Combat arms error:( [HELP PLEASE]
    By Ownage1 in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 01-12-2009, 05:23 AM