How to call NSBeep from Delphi

你离开我真会死。 提交于 2019-12-30 08:00:14

问题


I'm looking for a MessageBeep replacement on the OS X. It seems that the proper function to call would be NSBeep but it is not supported by XE2 RTL.

How do I call NSBeep from Delphi application?


回答1:


It's just a plain C function:

procedure NSBeep; cdecl;
  external '/System/Library/Frameworks/AppKit.framework/AppKit' name '_NSBeep';


来源:https://stackoverflow.com/questions/10287149/how-to-call-nsbeep-from-delphi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!