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

2017-01-25 Thread mashingan
@mmierzwa, for third question you can override compiler to vcc with option --cc:vcc when compiling. Or you can put it in cfg file beside your nim file, put it cc = vcc. For detailed config, check the default config file in $NIM/config/nim.cfg

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

2017-01-25 Thread Araq
> Why is this so? Moderation? Yes.

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

2017-01-25 Thread mmierzwa
When I am in forum view I see there are 4 answers in this thread and I see also AironGregatti. However when I enter I see only 3 posts without that from Airon. Why is this so? Moderation?

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

2017-01-24 Thread Araq
[http://nim-lang.org/docs/osproc.html#execProcess,string,openArray[string],StringTableRef,set[ProcessOption]](http://forum.nim-lang.org/postActivity.xml#http-nim-lang-org-docs-osproc-html-execprocess-string-openarray-string-stringtableref-set-processoption)

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)

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

2017-01-24 Thread Libman
Here's an incomplete idea that may or may not be helpful... There might be some fancy Windows API tricks for interacting with other console windows, but then your code would be more difficult to port. I would first consider the simplest solution: startProcess start / cmd with [the needed

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

2017-01-24 Thread mmierzwa
Hi I am trying to open new console window and be able to write to it. My attempts failed. How to do that? (currently using MinGW) During my attempts I tried to create process using startProcess I noticed that I can get then FileHandle for process. However I do not know how obtain File to