Jump to content

D3D9 Mod


Recommended Posts

Hi all, i want to create a mod with D3D9 hook (d3d9.dll) but GTA doesn't work...


DLL Source :



#include <windows.h>#define EXPORT __declspec(dllexport)#define IMPORT __declspec(dllimport)BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, PVOID pvReserved){   if(dwReason == DLL_PROCESS_ATTACH)   {       LoadLibrary("C:\WINDOWS\system32\d3d9.dll"); // Automaticaly, gta sa loads this dll but the d3d9.dll in the GTA Folder is load, so we must load this DLL...       return 0;   }}



But GTA says : You must have DirectX9 installed.


You know why ? Thanks ! smile.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.