[C#][Patch Independant] Getting the IDirect3DDevice9 Pointer menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    wanyancan's Avatar Member
    Reputation
    1
    Join Date
    May 2009
    Posts
    40
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it can be hooked. As I just change the real device's Vtable entry to Endscene to mine, I need to know the real devicePtr. It all depends how to 'hook'. Probably I'll directly modify the real Endscene in d3d9.dll to jmp to mine and jmp back by writing some assembly codes there. Is this what you mean by 'hook'?

    [C#][Patch Independant] Getting the IDirect3DDevice9 Pointer
  2. #17
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    Not to hi-jack the thread, but can I ask why you always use 'var' instead of an explicit type?
    'var' is an explicit type. The type is inferred at compile-time, it basically serves as shorthand for making cleaner code where the type is going to be obvious.

    ex:
    Code:
    string myString = "hi";
    vs
    var myString = "hi";
    ref: var (C# Reference)

  3. #18
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Scorpiona View Post
    'var' is an explicit type. The type is inferred at compile-time, it basically serves as shorthand for making cleaner code where the type is going to be obvious.

    ex:
    Code:
    string myString = "hi";
    vs
    var myString = "hi";
    ref: var (C# Reference)
    'var' is actually an anonymous type declaration. (It's more often used as shorthand though)

    Example;

    Code:
    var person = new {FirstName="Bob", LastName="Hope"};
    // do some stuff...
    Console.WriteLine(person.FirstName + " " + person.LastName + " is old.");
    Notice, I never declared a struct or class to hold the First/LastName vars. Hence the usefulness of anonymous types.
    Last edited by Apoc; 02-23-2010 at 01:08 PM.

  4. #19
    darrensmith0125's Avatar Member
    Reputation
    18
    Join Date
    Apr 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    var...some people love it, others hate it.

    Why would var be a bad thing? - Stack Overflow

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Guide] Patch 5.2 - How to get the new Mount from Raremobs
    By mrnice in forum World of Warcraft Guides
    Replies: 9
    Last Post: 05-17-2013, 04:24 PM
  2. [Patch] Having problem patch cataclysm to get the map file
    By leonne in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 06-18-2010, 11:42 PM
  3. Where to get the patch to put Prog. Isle back?
    By sonnyd666 in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 06-22-2008, 01:19 AM
  4. A New way to get the s_curMgr pointer
    By kynox in forum WoW Memory Editing
    Replies: 5
    Last Post: 04-01-2008, 09:39 AM
  5. Your First Mount - Where to Get the Cash while Grinding
    By Matt in forum World of Warcraft Guides
    Replies: 2
    Last Post: 05-12-2006, 06:58 PM
All times are GMT -5. The time now is 10:00 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search