How to Fix Error XStr

Posts 1–4 of 4 · Page 1 of 1
How to Fix Error XStr
Help me..

XStr error
Firstly, don't upload images as attachments. Ever.

Secondly, you don't show the implementation of XStr, so knowing how it was supposed to work / how to fix it is pretty much out the window. Next time give a fucking proper test case.

Since it's used with LoadLibraryA, I'm assuming it "stringifies" those 5 hex values. And since there is D3D stuff further into the code, and there are 5 hex values (d-3-d-1-x), it should probably load d3d.

So, easy fix is replacing:

Code:
LoadLibraryA(XStr( /* WHATEVER */).c());
with:

Code:
LoadLibraryA("D3D1X");
But then again, if you didn't fiigure this out by yourself, my help will probably be in vein.
Quote Originally Posted by Harava View Post
Firstly, don't upload images as attachments. Ever.

Secondly, you don't show the implementation of XStr, so knowing how it was supposed to work / how to fix it is pretty much out the window. Next time give a fucking proper test case.

Since it's used with LoadLibraryA, I'm assuming it "stringifies" those 5 hex values. And since there is D3D stuff further into the code, and there are 5 hex values (d-3-d-1-x), it should probably load d3d.

So, easy fix is replacing:

Code:
LoadLibraryA(XStr( /* WHATEVER */).c());
with:

Code:
LoadLibraryA("D3D1X");
But then again, if you didn't fiigure this out by yourself, my help will probably be in vein.
FIX.. Thanks
Think this XStr is a XOR. Define them like this:

Code:
#define dwYourDLLtoLoad      XorStr<0x41,9,0x1533420A>("\x2A\x27\x31\x2A\x20\x2A\x74\x7A"+0x1533420A).s
DWORD dwDLL = (DWORD)LoadLibraryA(dwYourDLLtoLoad);
PS: please dont ask how to make a XorStr function.. this should know everyone who do hooks.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us