///---------------------------------------------------------------------------- /// /// File Name: AccBot.cpp /// Copyright 2003-2006 AOL LLC. All rights reserved. /// ///---------------------------------------------------------------------------- #include "StdAfx.h" // standard AIMCC includes #include "MyClient.h" // logic for this bot ACC_IMPLEMENT_VERSIONINFO_IDENT_DATA(accbot) int main(int argc, const char* argv[]) { if (argc != 3) { printf("usage: accbot screenname password\n"); return -1; } HRESULT hr; COptionsMap args; printf("accbot initializing...\n"); if (SUCCEEDED(hr = args.Init(argc, argv))) { CAccPtr sp = new CMyClient; if (SUCCEEDED(hr = sp->Start(args))) hr = AccMessageLoop(); } printf("accbot shutting down with hr=%08X.\n", hr); return (int)hr; }