Passing /n in a String to C
BlitzMax Forums/BlitzMax Programming/Passing /n in a String to C
| ||
I can't seem to find a way to pass a string with a /n newline in it to c. The function I'm calling ( in a DLL ) is definitely set to use /n as a newline, but I can't get it there. Any ideas? |
| ||
You mean something like that?Import pub.win32 Global MyDLL=LoadLibraryA( "mylib" ) ' load "mylib.dll" Global MyStringFunc(str$z)=getprocaddress(MyDLL,"my_string_func") MyStringFunc "Line1~nLine2~nLine3~nLine4"(from: http://chris-camacho.com/index.php?option=com_content&task=view&id=16&Itemid=28 ) --Byteemoz |
| ||
Oooooh.. yep, ~n does it just great. Thanks man. |