PDA

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


OlegNat
9th April 2004, 12:06
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, 12:59
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, 13:16
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

kichik
9th April 2004, 13:24
Example: http://forums.winamp.com/showthread.php?s=&threadid=172312&highlight=system+null

OlegNat
9th April 2004, 13:37
Ok. Thank you. I will tray

Joel
9th April 2004, 15:29
Can be usefull if NSIS, as $\r, $\n, etc.., has $\0....

:)