View Full Version : Info Logging interface addresses
Xeno123
10-02-2009, 08:34 PM
inline void LogAddress( PVOID interface, const std::string& Name = "Interface" )
{
std::cout<< "Address of: " << Name << " = " << std::hex << reinterpret_cast<UINT_PTR> ( interface ) << std::endl;
}
MiDoX
12-15-2009, 08:03 AM
Im not seeing the point of templating the function when youre ultimately going to cast it back to DWORD.
Edit: Nevermind.
Xero|Hawk
12-15-2009, 08:16 AM
I'm not seeing the point in templating the function if you then specify the interface pointer's class. You could do a DWORD-cast just as easily.
Xeno123
12-15-2009, 12:35 PM
I know, nothing proper was going thru my brain when I did this.
P47R!CK
12-15-2009, 12:51 PM
I know, nothing proper was going thru my brain when I did this.
blame the drugs
der juden into das ovenhowzen
h1web
12-15-2009, 03:07 PM
I know, nothing proper was going thru my brain when I did this.
Welcome to the land of C++, where "proper" language usage is rocket science.
Powered by vBulletin® Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.