OlegNat
9th April 2004 13:06 UTC
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?
kichik
9th April 2004 13:59 UTC
No, it's impossible in the scripting language. You would have to use the System.dll plug-in or write your own plug-in.
OlegNat
9th April 2004 14:16 UTC
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
OlegNat
9th April 2004 14:37 UTC
Ok. Thank you. I will tray
Joel
9th April 2004 16:29 UTC
Can be usefull if NSIS, as $\r, $\n, etc.., has $\0....
:)