Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pointer help

Status
Not open for further replies.

DevilCommander

Programmer
Jul 30, 2006
1
US
I been working with a dll wrapper and this function:

void Console(char *pcCommand) //Used to print to console, just like in-game
{
//post: writes pcCommand to Console
HWND MConsole = FindWindow(0, "Console");
EnumChildWindows(MConsole, EnumChildSendCommandProc,(LPARAM)pcCommand);
}

My question is how could I make it send back the offset so I could use it in this function?

typedef void (*Con_sole) (char *Console_txt,...);
Con_sole Console=(Con_sole)0x00000000;

if(GetAsyncKeyState(VK_F7)&1==1) Console("testingpassword");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top