int ExpRezBox() {
CXWnd *Child;
CXWnd *pWnd;
char InputCXStr[128],*p;
int v;
pWnd=(CXWnd *)FindMQ2Window("ConfirmationDialogBox");
if(pWnd)
{
if (((PCSIDLWND)(pWnd))->Show==0) return -1;
Child=pWnd->GetChildItem("cd_textoutput");
if(Child)
{
ZeroMemory(InputCXStr,sizeof(InputCXStr));
GetCXStr(Child->SidlText,InputCXStr,sizeof(InputCXStr));
[COLOR="Red"] p = strstr(InputCXStr,"attempting to return you");
if (p) return 0;
[/COLOR] p = strstr(InputCXStr,"(");
if (!p) return -1;
v = atoi(p+1);
p = strstr(p,"percent");
if (!p) return -1;
return v;
}
}
return -1;
}
Updated on first page.
1>------ Build started: Project: MQ2Rez, Configuration: Release Win32 ------
1>Compiling...
1>MQ2Rez.cpp
1>EQLIB_IMPORTS
1>.\MQ2Rez.cpp(86) : error C2664: 'strncpy' : cannot convert parameter 3 from 'char *' to 'size_t'
1> There is no context in which this conversion is possible
1>Build log was saved at "file://c:\Documents and Settings\Me\My Documents\MQ2 Precompiled\MQ2Rez\Intermediate\BuildLog.htm"
1>MQ2Rez - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
Updated on first page.