So I’m trying to write my own custom dll for the first time and can’t figure out why this doesn’t work:
[VarSet, myCustomDll, "C:\Program Files\Maxon ZBrush 2023\ZStartup\ZPlugs64\TrigonToolbox\test.dll"]
[VarDef, result, 0]
[RoutineDef, CallAddNumbers,
[If, [FileExists, #myCustomDll],
[VarSet, result, [FileExecute, #myCustomDll, "AddNumbers", 4, 4]]
[If, result,
[Note, [StrMerge, "The result is: ", result]],
[Note, "Call to AddNumbers failed"]
],
[Note, "DLL not found"]
]
]
[IButton, "Test DLL", "Calls the AddNumbers function in the DLL",
[RoutineCall, CallAddNumbers]
]
it notes that call to add numbers failed. When I try to run the the same dll through python it works fine (AddNumbers uses integers)