References for FFI and calling C from V #16659
Replies: 3 comments
-
For now, you definitely need to know C to get this to work. Perhaps in the future, V will get a WinAPI wrapper layer to work with the system, and other wrapper layers for other useful Windows versions of C libraries. You can try running |
Beta Was this translation helpful? Give feedback.
-
Agree that the best case will likely be to translate C to V, else the person should be familiar with or studying some C too, to better understand what's possibly going wrong or needs changes. Depending on what a person is doing on Windows, if using the default TCC, you might need the full winapi. You can then do an alternative run/compile with the below (example). In regards to the V documentation, the example does kind of show how it's done, but is not a simple example for someone to start out with. I suppose a bit more or another example could be added to the documentation.
|
Beta Was this translation helpful? Give feedback.
-
Will be nice to have support for FFI and Win32 API, also COM access |
Beta Was this translation helpful? Give feedback.
-
Hey everyone I was trying to use C libraries in my V code, but I didnt manage to make it work on windows using the docs available(probably because I dont know C), someone has access to more detailed documentation on it?
Beta Was this translation helpful? Give feedback.
All reactions