Forum rules

2017-01-26 Thread AironGregatti
I am new to the forum, like all forums, there are a set of rules that should be 
followed, I wanted to know what they are for this forum.


Re: How to open new console window and File, FileInfo, FileHandle

2017-01-24 Thread AironGregatti
If I understand what you need, to convert a "string" to "WideCString", you can 
do the following:


# Convert a "string" to "WideCString".
proc toWideCString(str: string): WideCString =
  var
i   : int = 0
ret : WideCString
  
  new(ret)
  
  while i < str.len():
ret[i] = Utf16Char(str[i])
i = i + 1
  
  return ret


# Example:

var str : WideCString

str = toWideCString("Nim language")

echo str