System::String* str = rb->resval.rstring;
acutPrintf("File %s does not exist", str); => this line displays correctly
the name if I'm using debug version of the arx file, but with release
version I get : ô´y ...
Do you know why ?
Thanks for any advice.
I'm using Visual C++ with Managed Extensions:
try
{
struct resbuf *rb;
rb = acedGetArgs();
if (rb == NULL)
acutPrintf("CimsErase function needs arguments to be suplied");
else
{
if (rb->restype == RTSTR)
{
System::String* str = rb->resval.rstring;
str->Replace("\\", "\\\\");
if (System::IO::File::Exists(str))
{
System::IO::File::Delete(str);
}
else
// HERE IS THE PROBLEM
acutPrintf("File %s does not exist", str);
}
else
acutPrintf("First argument of CimsErase must be string");
}
}
catch(System::Exception* ex)
{
acutPrintf("\n CimsErase could not be completed. Exception: %s",
ex->Message);
}