Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Dialog always appears,despite conditional

    SDK Help
    0
    4
    544
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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)
      {
      }

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post