[Factor-talk] Factor C Interface

2017-05-24 Thread Alexander Ilin
Hello! I need some help figuring out how to receive a string from a WinAPI call. I must allocate a buffer for the string, and pass a pointer to it into the function (along with the buffer size, in characters). I want the buffer to contain zeroes at the beginning so that the function I'm

[Factor-talk] Placement Question

2017-05-24 Thread Alexander Ilin
Hello! I found the following little feature quite useful. For instance, when I found some PDFs on a gopher: site that were downloaded and presented as byte-arrays. ``` :: save-as ( data -- ) "" save-file-dialog [ binary [ data write ] with-file-writer ] when* ; [ byte-array? ] \ save-as