My PR was accepted, so now you can take a look at the fruits of my labor in the Factor repo on Github. Here's my minimal comdlg32 that is to be extended with new structs and functions:
 
https://github.com/factor/factor/blob/master/extra/windows/comdlg32/comdlg32.factor
 
Here's how it is used (see save-file-dialog method):
 
https://github.com/factor/factor/blob/master/extra/file-picker/windows/windows.factor
 
(Maybe the open-file-dialog needs to be rewritten using comdlg32. Plus, there is a TODO-comment in the save-file-dialog implementation. Feel free to contribute to the works!)
 
And here's an example of how the save-file-dialog itself is used:
 
https://github.com/factor/factor/blob/master/extra/file-picker/operations/operations.factor
 
02.06.2017, 06:51, "fede s" <elfeder...@yahoo.com.ar>:
Hi Alexander:
I took a look at making comdlg32.dll bindings some time ago, but I don't know much about calling conventions or how the Factor FFI stuff works, so it was a struggle. I just gave up shortly after.
Is there somewhere to look at how you did it?
 
If I can help with something please let me know!
 
---=====---
Александр
 
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to