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

    2nd try..Creating a text file..

    SDK Help
    0
    4
    439
    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 19/06/2003 at 21:03, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   6.3 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I would still like to be able to create a text file using the Cinema 4d SDK. Can anyone do it? Consider it a challenge... I need to write out a standard ASCII text file that can be read by any text viewer. When I try, I get a binary file. I'll even send $5 to the person who can show me how to do it. 🙂
       
      Matt

      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 19/06/2003 at 21:38, xxxxxxxx wrote:

        Ok, the $5 thing is off. I may have figured it out... 🙂

        Matt

        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 19/06/2003 at 22:50, xxxxxxxx wrote:

          Could you tell us what the initial problem was?

          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 19/06/2003 at 23:02, xxxxxxxx wrote:

            It seems like when using the functions file->WriteString, etc an extra 00 byte is added at the end of each string. This causes windows to think it is a binary file. What I did was just remove this last part and then the file gets written as a text file.
            As a side note, do you have any idea why a plugin would work fine if I used the debug configuration in Visual C++ but wouldn't work if I used the Release Configuration?
            Matt

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