Dialog always appears,despite conditional

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/02/2003 at 12:40, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.012 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
// CLASS: Config File Operations
class Config_BaseFile : BaseFile
{
 public:
  Config_BaseFile();
  WriteConfig(filename);
  ReadConfig(filename);
}
Config_BaseFile::Config_BaseFile() { super(); }
Config_BaseFile::WriteConfig(filename)
{
 if(!(Open(filename, GE_WRITE, FILE_NODIALOG) && WriteString(filepathstr, GE_XBIT)))
 {
  errdlgType = ERRDLG_NOWRITEFILE;
  errdlgText = filename->GetFullString();
  var d = new(Error_GeModalDialog);
  d->Open(-1,-1);
 }
}
Config_BaseFile::ReadConfig(filename)
{
}

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/02/2003 at 14:00, xxxxxxxx wrote:

Huh? What dialog and what conditional?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/02/2003 at 14:36, xxxxxxxx wrote:

The only "IF" in the entire code is a conditional.  The statements enclosed by the "IF" display a dialog - Error_GeModalDialog.  BaseFile->Open() seems to work properly - the return is correct, but BaseFile->WriteString() doesn't appear to return a valid result.  I haven't checked since one would hope that the documentation states facts and not maybes. 😉
Robert Templeton

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 08/02/2003 at 02:31, xxxxxxxx wrote:

As you mention there's always the possibility that WriteString() always returns FALSE. But if it actually does always fail, try calling GetError() to see what it reports.