Word 2016 vba add-in for Mac -
i have created add-in word communicates third party cmd-program via api have written in c# using visual studio. communication takes place using stdin , stdout. program works word 2007, 2010, 2013, 2016 windows.
i have ported word 2011 mac. api here written in c using xcode, still using stdin , stdout. api on mac dylib, can reference in visual basic editor. i'm having trouble replicating on 2016 version of office mac. i'm suspecting might not possible, due new security restrictions. when try reference file can choose .tlb files (type libraries). have created tlb files using visual studio on windows , have no idea how might on mac.
can answer if i'm trying possible on 2016 version of office mac, , might find documentation on how create files can referenced?
fyi: add-in called wordmat: www.eduap.com
additional info following information @erik below i'm having trouble declaring functions in lib. here declare statement: declare ptrsafe function vbstrlen lib "/library/application support/microsoft/office365/user content.localized/add-ins.localized/libmaximaconnection.dylib" (byval s string) longptr
the function simple test function returns length of string. declare function works expected in word 2011 using above path.
the error reported error 53 file cannot located
the dylib 32-bit compiled, hence not expect work since 64-bit upgrade of office 2016, expect error 453 dll cannot located word 2011 report.
office 2016 sandboxed, limited entitlements read files live in specific places. wrote document on installing user content mac office 2016 can start with: http://macadmins.software/docs/usercontentin2016.pdf
specifically, dylibs must located in ~/library/group containers/ubf8t346g9.office/user content.localized/add-ins.localized/ if installed each specific user, or in /library/application support/microsoft/office365/user content.localized/add-ins.localized/ if installed once on machine users share.
office 2016 apps cannot read arbitrary file locations anymore.
separately, inability choose non-typelib file when try add file references may bug. i'll have take look.
schwieb (principal software engineer, apple platform experiences group, microsoft corporation)
Comments
Post a Comment