Error dll function returning String made with bmax

BlitzMax Forums/BlitzMax Programming/Error dll function returning String made with bmax

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have made your change. I receveid an error
Where is bad ?

Function GetMyStringC$()
Local ls_msg$ = "Test de retour de valeur au format string"
Return ls_msg.ToCString()
End Function

Compile Error: Unable to convert from 'Byte Ptr' to 'String'