HISE Logo Forum
    • Categories
    • Register
    • Login

    Little C++ help required

    Scheduled Pinned Locked Moved C++ Development
    2 Posts 2 Posters 153 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.
    • d.healeyD
      d.healey
      last edited by

      I want to make a script wrapper for the importPresetFromClipboard function which is in the PresetHelpers struct. How can I access this function from ScriptExpansion.cpp? I tried PresetHelpers::importPresetFromClipboard but that of course fails.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @d.healey
        last edited by

        @d-healey I think because struct isn't inside a header file it can't be included in the ScriptExpansion.cpp class

        So maybe try moving the whole struct into PresetBrowser.h and include it in ScriptExpansion.cpp, but it might be a bit more subtle...
        Also have you tried

        struct PresetHelpers PresetHelpers::importPresetFromClipboard
        

        Since they are in the same namespace? But I bet you I'm saying non-sense 🙃

        Can't help pressing F5 in the forum...

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

        35

        Online

        1.7k

        Users

        11.7k

        Topics

        101.9k

        Posts