Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 9th April 2004, 12:06   #1
OlegNat
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?
OlegNat is offline   Reply With Quote
Old 9th April 2004, 12:59   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 9th April 2004, 13:16   #3
OlegNat
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
OlegNat is offline   Reply With Quote
Old 9th April 2004, 13:24   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Example: http://forums.winamp.com/showthread....ht=system+null

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 9th April 2004, 13:37   #5
OlegNat
Junior Member
 
Join Date: Apr 2004
Location: Ukraine
Posts: 3
Ok. Thank you. I will tray
OlegNat is offline   Reply With Quote
Old 9th April 2004, 15:29   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
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.
Joel is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump