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.

thanks it work

Function GetMyStringC:Byte Ptr()
Local ls_msg:String = "Test de retour de valeur au format string"
Return ls_msg.ToCString()
End Function

Global GetMyStringC:Byte Ptr() = GetProcAddress ( Library , "GetMyStringC" )

DebugLog "GetMyStringC=" + String.FromCString(GetMyStringC())

DebugLog:GetMyStringC=Test de retour de valeur au format String