Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   MSSQL_OLEDB can't pass Chinese word (http://forums.winamp.com/showthread.php?t=276277)

baby_moon 22nd August 2007 02:46

MSSQL_OLEDB can't pass Chinese word
 
The problem should be in file MSSQL_OLEDB.cpp, line 338, function sprintf_s, this function should be changed to sprintf_w, in order to process Chinses word.

sgiusto 25th August 2007 22:08

I will try to convert that function to support widechar, or I will create a new function (Executew or similar)
stay tuned

Afrow UK 26th August 2007 00:12

It would probably be wise to have Execute being wide as you cannot always know whether your query string will contain wide characters or not.

Stu

baby_moon 31st August 2007 15:36

I'm trying to compile the source code, but VC6 + XP SP2 SDK with C2065 error
 
There is no fprintf_s definition. Can you please tell me what environment you used for compile the dll? Thank you.

sgiusto 31st August 2007 19:37

Visual Studio 2005 SP1. I'm working on wide version. I'll post during the week end.

baby_moon 1st September 2007 01:11

I'm very glade to heard that
 
:)

sgiusto 4th September 2007 22:21

1 Attachment(s)
I managed to make MSSQL_OLEDB::SQL_ExecuteScript be aware of Unicode sql scripts.
I attach the plugin dll. try it. I will produce a new version of plugin and documentation in the next few days.
Keep in mind that NSIS is full ANSI, so you cannot use Unicode strings in any NSIS script.
In other words you cannot call MSSQL_OLEDB::SQL_Execute passing Unicode strings
regards
stefano

baby_moon 10th September 2007 08:08

It's worked, thank you very much!

sgiusto 11th September 2007 07:05

Glad to know that,
I'll soon release a new official version of the plugin supporting unicode scripts

xbarns 14th August 2008 10:10

Any way this (very nice) plugin will work with the unicode version of NSIS?

I already tried and when trying to logon i get some strange text back and login fails. (Logon works fine with the "normal" NSIS)

sgiusto 15th August 2008 10:02

off for summer holidays.
will take a look at NSIS unicode when back in early september
stay tuned
Stefano

xbarns 15th August 2008 12:08

Quote:

off for summer holidays.
enjoy!

xbarns 11th September 2008 16:20

:) did you have time to look at the NSIS Unicode yet?

Will MSSQL_OLEDB be able to handle scripts larger than the reported 60000 bytes anytime in the future?

xbarns 4th December 2008 11:39

*bump*

Any news on this?


All times are GMT. The time now is 04:42.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.