Friday, May 8, 2015

ParamCount() and ParamStr(1).c_str()

C++

int __fastcall dload ()
{
  int found = 0;
  char msg[255];
  char cmd[255];

  strcpy (cmd,"");//......................................1
  if (ParamCount() > 0)//..............................2
    {
    strcpy (cmd,ParamStr(1).c_str() );//...........3
    found = 1; 
    }

  return found;
}

What s the equivalent to 1,2 and 3.

No comments:

Post a Comment