Error Help Please

Posts 18 of 8 · Page 1 of 1
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
Download the DirectX9 June SDK and include the Include and Lib directories into your hack's properties
set your LIB ind Include directories
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 ==========
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.
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.
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++)
Posts 18 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?