boo-lang / boo

The Boo Programming Language.
BSD 3-Clause "New" or "Revised" License
874 stars 148 forks source link

How to cal win32 API functions from Boo ? #175

Closed kcvinker closed 6 years ago

kcvinker commented 7 years ago

Hi, I like Boo. It's a nice language. But i am trying to call some win 32 api functions (like ShowWindow, FindWindow, SendMessage, etc etc...) from my Boo class. How can i do it. Any tutorials ?.

masonwheeler commented 7 years ago

Here's an example.

It's essentially done the same way as in C#, except that there's no need for an extern keyword because the compiler automagically recognizes the DllImport attribute.

kcvinker commented 7 years ago

Hi masonwheeler, Thanks a lot. Let me try it. I would like to learn more about Boo. Is there any forum for Boo programmers ?

masonwheeler commented 7 years ago

The official discussion forum for the language is at https://groups.google.com/forum/#!forum/boolang

coremanster commented 6 years ago

this website is good help for c#, and presumably boo, for calling win32 functions https://pinvoke.net/