Re: [MSEide-MSEgui-talk] utf8string: which type is it mapped to ?

2011-12-12 Thread Martin Schreiber
On 12/12/2011 04:40 PM, IvankoB wrote:
 Looks most appropriate amongst others for crypting both single-   
 multibyte data.
 
I don't understand.

Martin

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] utf8string: which type is it mapped to ?

2011-12-12 Thread Martin Schreiber
On 12/13/2011 06:10 AM, IvankoB wrote:
 Looks most appropriate amongst others for crypting both single- 
 multibyte data.

 I don't understand.

 
 PChar or AnsiString ?
 
In which context?

Martin

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] utf8string: which type is it mapped to ?

2011-12-12 Thread IvankoB
 PChar or AnsiString ?

 In which context?


Per char access plus string length.


--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] utf8string: which type is it mapped to ?

2011-12-12 Thread IvankoB
 Per char access plus string length.

 I still don't get the question. Please explain.


How to pass it to C function expecting unsigned char* ?
PChar(utf8_string)  len=strlen(utf8_string) or @utf8_string[1]   
len=length(utf8_string)?
BTW, the utf8_string is produced by stringtoutf8(msestring) since  
taken from widgets.

Simply saying, how to pass UCS2=UTF8=(unsigned char*) correctly?


--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] utf8string: which type is it mapped to ?

2011-12-12 Thread Martin Schreiber
On 12/13/2011 08:31 AM, IvankoB wrote:
 Per char access plus string length.

 I still don't get the question. Please explain.

 
 How to pass it to C function expecting unsigned char* ?
 PChar(utf8_string)  len=strlen(utf8_string) 

This returns a pointer to #0 in case utf8_string = ''.

or @utf8_string[1] 
 len=length(utf8_string)?

This returns NIL in case utf8_string = ''.

I normally use

 c_function(pointer(utf8_string),length(utf8_string));

Martin

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk