28 Apr
1997
28 Apr
'97
11:29 a.m.
You wrote:
I encountered some problems with Procedures accepting `CString' parameters. When passing a string constant to such a parameter, GPC does *not* automatically add a "chr ( 0 )" terminator.
I think it should. Much less confusing, probably more portable and in Extended Pascal #0 is not recognized, so means a few characters more typing pain. Another solution, whith less performance impact would be to always add a chr(0) to a string constant at compile time. I think I favor this approach. The length returned should be the length minus chr(0) but the chr(0) should be there. Groetjes, Berend.
10703
Age (days ago)
10703
Last active (days ago)
0 comments
1 participants
participants (1)
-
Berend de Boer