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:
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.
On 19/06/2003 at 21:38, xxxxxxxx wrote:
Ok, the $5 thing is off. I may have figured it out...
On 19/06/2003 at 22:50, xxxxxxxx wrote:
Could you tell us what the initial problem was?
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?