Jump to content
  • Advertisement

EVE

Member
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

100 Neutral

About EVE

  • Rank
    Member
  1. Hi. I would like to create in my "game" window. I want them window be able to move, stretch, but honestly I do not quite know how to go about it. Can you give me tutorial or source code such window? Please help and thanks for reading.
  2. Refresh. Let me add a few missed facts. 1) I worked with this code of 3 months, when I changed the FPS to 100 there were problems. 2) Method using - a DLL Injector - working in another application. 3) I understand that the addresses of variables in the application are change, but I put the program to "IDA" and I found the "CreateDevice". In this way, I learned that "0xC97C28" is a pointer to the rendering device. If the application always put this address in the function of the parameter "CreateDevice", that my reasoning is good? 4) I removed the code "CreateTextureFromFile" - the application does not crash. (100 FPS) 5) I do not see convergence between the Crash, the number of FPS and the "CreateTextureFromFile" but the number of tests carried out indicate that some relationship exists. If for example the "CreateDeviceFromFile" can not be called after BeginScene and before EndScene that there is a relationship - more FPS - more chance that function called in unauthorised place. 6) Currently I create a thread in DllMain in which later calls a "CreateTextureFromFile". I know that I should not do this so I improve it. However, I do not think that It correct my mistake.
  3. I know that DirectX device address is constant and I can not use: IDirect3DDevice9 * device = * (IDirect3DDevice9 **) 0xC97C28 / / DirectX Device ? :/ Could you give me a link with a good guide for how to do it functioning? PS: Is there some exception, for example D3DXCreateTextureFromFile that can not be used between the Begin and End Scene? // Edit: I worked at 60 FPS for 2 hours and did not get any crash. I enabled once to 100 FPS and immediately I have crash.
  4. Just in this case this value is constant. Copied from IDA: push offset dword_C97C2 @UP: But where in this case I can put the code? // Edit: Yes! I found the reason, but,I still do not know the problem and how to solve it. Once in the main program, I change the number of FPS in 20, i have crash occurs 0 times out of 5 attempts. But when I change the number of FPS for 100 i have crash occurs 3 times out of 5 attempts.
  5. Hello! My code: // -------- INCLUDE ---------------- #include <Windows.h> #include <windowsx.h> #include <d3dx9.h> #include <stdio.h> IDirect3DDevice9* device = *(IDirect3DDevice9**)0xC97C28; // DirectX Device IDirect3DTexture9* pTexture; // bool DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) { if(fdwReason == DLL_PROCESS_ATTACH) { if(D3DXCreateTextureFromFile(device, L"tex.png", &pTexture) != D3D_OK) { printf("Fail!"); return 0; } printf("Abc!"); } return TRUE; } Log: Abc! I don't know why the crash occurs. Earlier this code to run! And today I see crash. I greet and please for help.
  6. Hello. Is there any way to one used function DrawText and draw text in two colors? For example: font->DrawText(sprite ,L"He is |color-red| fast.",-1,&RCT,DT_NOCLIP, D3DCOLOR_ARGB(0,0,0,255)); Appears: He is [color="#FF0000"]fast. Thank, regards.
  7. Hello. Has loaded its own DLL into another process, so I have a variable: HINSTANCE. I need to get the HWND (Window Handle). How can I get it, knowing HINSTANCE? Thank you and best regards.
  8. Thx! But i have a problem. :/ if (!Berkelium::init(FileString::empty())) { return 0; } Code copied straight from the website, but does not work. Errors: Error 1 error C2653: 'FileString' : is not a class or namespace name Error 2 error C3861: 'empty': identifier not found 3 IntelliSense: name followed by '::' must be a class or namespace name What is the problem?
  9. mhagain, I want to do web browser in 3D game. Hodgman, awesomium sdk is perfect but their license restricts me. Anything else?
  10. Hello! I wanted to make a web browser in directx3D. Unfortunately I have no idea how to go about it. Please Help! Thanks for reading (and the answer: p).
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!