Forum
    • Categories
    • Register
    • Login

    How to add a custom C++ method to Engine scripting API?

    Scheduled Pinned Locked Moved General Questions
    1 Posts 1 Posters 24 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pcs800P
      pcs800
      last edited by

      I'm building a compiled VST3 plugin with HISE and need to call a Windows API function (CreateMutexA) from HiseScript to detect whether a specific host DAW is running. I'm building HISE from source in Visual Studio 2022.
      I tried adding the method to ScriptingApi.cpp and ScriptingApi.h following the existing getName() pattern, but including windows.h at the top of ScriptingApi.cpp causes a Rectangle macro conflict that breaks compilation.
      What is the correct way to either (1) include windows.h safely in ScriptingApi.cpp, or (2) add a custom Engine method that calls a Windows API function?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      21

      Online

      2.2k

      Users

      13.6k

      Topics

      118.0k

      Posts