hello out there...
i know there is the Win32 API command lstrlen() to get the length of a string. As we all know, Win32 API functions are not ever the fastest and so i did some research and come up with following speed optimized lstrlen() replacement (based on Win32 API only), which seems to be a lot faster as the original version.
Text.s = "What do you think about this?"
lResult = HeapSize_( GetProcessHeap_(), 0, @Text ) - 5
MessageBox_( 0, Str( lResult ), "StringLen", 0 )
It seems this replacement is a nice way to speed things up, but is this way really a clean way or more like a dirty hack? What do you think about this code? Any risk to use this in prods?
PS: Seems to work with PB...