IAgentApp::LoadAgent

voidIAgentApp::LoadAgent(LPWSTRpwzAgentChar)

Load the Agent Server and optionally load a character as well.

Defined in: ot_agent.cpp

Return Value

void

Parameters

pwzAgentChar

If pwzAgentChar is not NULL, LoadAgent will call AttachChar with pwzAgentChar.

Comments

For example, if your app object derives from IAgentApp then call LoadAgent in the app object's InitInstance and UnLoadAgent in ExitInstance. You can pass in NULL as the argument and chose to call AttachChar yourself at a later stage.