|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Apr 2004
Location: Ukraine
Posts: 3
|
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? |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
No, it's impossible in the scripting language. You would have to use the System.dll plug-in or write your own plug-in.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2004
Location: Ukraine
Posts: 3
|
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 |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2004
Location: Ukraine
Posts: 3
|
Ok. Thank you. I will tray
|
|
|
|
|
|
#6 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,896
|
Can be usefull if NSIS, as $\r, $\n, etc.., has $\0....
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|