Calling dylib functions in Office for Mac VBA

后端 未结 2 1048
天命终不由人
天命终不由人 2021-01-25 23:54

I am attempting to call a simple function that is stored in a simple dylib file, from a simple Word for Mac macro,

I\'m creating the .dylib with Xcode5 on OS-X Mountain

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-26 00:35

    Rather than looking up the mangled name, I suspect the easiest way is to wrap your function declarations:

    extern "C" {
    bool testFunc();
    }
    

提交回复
热议问题