Mat000 Posted February 3, 2008 Share Posted February 3, 2008 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 ! Link to comment https://gtaforums.com/topic/310228-d3d9-mod/ Share on other sites More sharing options...
Sacky Posted February 3, 2008 Share Posted February 3, 2008 Look up cowpats example d3d9.dll source Link to comment https://gtaforums.com/topic/310228-d3d9-mod/?do=findComment&comment=1057466905 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now