char* CNWNXODBC::OnRequest (char* gameObject, char* Request, char* Parameters) { if (strncmp (Request, "EXEC", 4) == 0) Execute(Parameters); else if (strncmp (Request, "FETCH", 5) == 0) Fetch (Parameters, strlen (Parameters)); else if (strncmp(Request, "SETSCORCOSQL", 12) == 0) SetScorcoSQL(Parameters); return NULL; }
void DBPlugin::SetString(char* sFunction, char* sParam1, int nParam2, char* sValue) { wxLogTrace(TRACE_VERBOSE, wxT("* Plugin SetString(0x%x, %s, %d, %s)"), 0x0, sParam1, nParam2, sValue); #ifdef UNICODE wxString function(sFunction, wxConvUTF8); #else wxString function(sFunction); #endif if (function == wxT("")) { wxLogMessage(wxT("* Function not specified.")); return; } if (function == wxT("EXEC")) Execute(sParam1); else if (function == wxT("SETSCORCOSQL")) SetScorcoSQL(sParam1); }