Archive: Can zero \0 character be inserted into a string (ODBC attributes for example)?


Can zero \0 character be inserted into a string (ODBC attributes for example)?
I try to register DSN using SQLConfigDataSource. Due to MSDN last parameter of this function have to be "List of attributes in the form "keyname=value". These strings are separated by null terminators with two consecutive null terminators at the end of the list"
But I can not write into script no \0, no $\0

Can yanybody help me, please?


No, it's impossible in the scripting language. You would have to use the System.dll plug-in or write your own plug-in.


In wich case can I use this pluggin?
I found that it has next functions Alloc, Free and Copy. So, can I use them for allocating memory and creating needed string or not? If yes, is there any description of this functions?

Or I have to create own dll with function that adds DSN and use system.dll plugin for calling my function?

Thank you


Example: http://forums.winamp.com/showthread....ht=system+null


Ok. Thank you. I will tray


Can be usefull if NSIS, as $\r, $\n, etc.., has $\0....

:)