How to call Win32API?

I wrote the code just like .NET, but I get a build error.
Implementing the Beep method will not result in an error, but Win32 API will not be called.

I understood that Win32 API is likely to be solved by using rtl.fx.
However, I will continue to wait for a reply to use a third party dll.

don’t import it. just call it.

that said, when you do use DllImport, you need to mark mentions with ‘external’.

Oops! I’m sorry, I forgot ‘external’.
I will try it in a few hours …

1 Like

Building after adding ‘external’ to class method, internal error occurred…

Can you give us the code that triggers it? I’ll try to fix it monday

This project.
ConsoleApplication1.zip (7.4 KB)

Elements 9.0.97.2071

Thanks, logged as bugs://76927

bugs://76927 got closed with status fixed.

Logged as bugs://i64712.

bugs://i64712 was closed as fixed.