Hybrid base crazy errors

Posts 1–15 of 25 · Page 1 of 2
Hybrid base crazy errors
How do i fix this stuff



Code:
1>------ Build started: Project: ndspubV1, Configuration: Release Win32 ------
1>  cMenu.cpp
1>  cWinamp.cpp
1>  d3dfont9.cpp
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char const *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPBDK@Z) already defined in D3D Base.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::GetTextExtent(char const *,struct tagSIZE *)" (?GetTextExtent@CD3DFont@@QAEJPBDPAUtagSIZE@@@Z) already defined in D3D Base.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ) already defined in D3D Base.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" (?InvalidateDeviceObjects@CD3DFont@@QAEJXZ) already defined in D3D Base.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ) already defined in D3D Base.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z) already defined in D3D Base.obj
1>d3dfont9.obj : error LNK2005: "public: __thiscall CD3DFont::~CD3DFont(void)" (??1CD3DFont@@QAE@XZ) already defined in D3D Base.obj
1>d3dfont9.obj : error LNK2005: "public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PBDKK@Z) already defined in D3D Base.obj
1>C:\Documents and Settings\xraydoc\my documents\visual studio 2010\Projects\ndspubV1\Release\ndspubV1.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
You redefined everything. Just use the /FORCE:MULTIPLE Option.
howz?
d
o

i

force multiplwe option
well heres a full tut on how to fix this:

1. Learn to Code, and dont post a thread about every problem you have.
I can't i beleive i just did that, Thanked DeadLinez.. w/e
u can remove the thanks
ok i did that and i got it to build but when i inject into a d3d9 test enviorment it a window pops up saying it needs to be debuged and closes

now what? ppls?
Best thing you can do is search and clean your source code.

And the test environments don't like the getmodulehandles and the PTC function because it does not understand it, so you better disable those while you test.
Well i got no ptc's or hook just the base and i cant get it to work on the test enviorment maybe i should use a diff injecter or maybe not .
Unhandled exception at 0x09054e38 in test9.exe: 0xC0000005: Access violation.i get this when i try to inject it to test9.exe
Most bases have the
Code:
public static Boolean IsGameReadyForHook()
        {
            if (GetModuleHandle("d3d9.dll").ToInt32() != 0 && GetModuleHandle("ClientFX.fxd").ToInt32() != 0 && GetModuleHandle("CShell.dll").ToInt32() != 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
Sorry that was my C# base, the only one I have out right now. Anyway, make sure to return true if d3d9.dll handle != NULL the other modules do not exist in a test environment, otherwise the code will never work...

Code:
if(GetModuleHandle("d3d9.dll") != NULL)
return true;
return false;
where do i put if(GetModuleHandle("d3d9.dll") != NULL)
return true;
return false;
?
Quote Originally Posted by yarulzwwe View Post
where do i put if(GetModuleHandle("d3d9.dll") != NULL)
return true;
return false;
?
Where you want to check if d3d9 is loaded, perhaps? ._.
Quote Originally Posted by yarulzwwe View Post
where do i put if(GetModuleHandle("d3d9.dll") != NULL)
return true;
return false;
?
In your IsGameReady function...

On a side note, please don't copy and paste other people's code and release it. It is the main reason why people don't like releasing code in the first place.
ill give credits dude
Quote Originally Posted by yarulzwwe View Post
ill give credits dude
But claim most of it as your own? D:

Perhaps you should try reading the function NAMES, because generally they mean what they mean? "IsGameReadyForHook"? "DrawScene"? "MainThread"? "DrawMenu"?
Posts 1–15 of 25 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us