You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In c# to use functions from native dll you need to create new function in c# and mark it with dllimport attribute.
It would be nice to be able to use native functions without any of this code.
Because Fresh supports free functions, this should be much more doable than in c# where you need class for everything.
Edit:
(I am editing this long time after I created this issue and we have now much better idea how the language should look)
This could probably be done using macros, syntax could be import_native!("user32.dll") and the signature information would be read from the .h file
The text was updated successfully, but these errors were encountered:
In c# to use functions from native dll you need to create new function in c# and mark it with
dllimport
attribute.It would be nice to be able to use native functions without any of this code.
Because Fresh supports free functions, this should be much more doable than in c# where you need class for everything.
Edit:
(I am editing this long time after I created this issue and we have now much better idea how the language should look)
This could probably be done using macros, syntax could be
import_native!("user32.dll")
and the signature information would be read from the .h fileThe text was updated successfully, but these errors were encountered: