Add a PhAB context so you can use a PhAB application as a DLL
#include <Ap.h> int ApAddContext( ApContext_t *context, const char *exe_path );
Ap
This function adds a PhAB context so you can use a PhAB application as a DLL.
0 on success, or -1 if there wasn't enough memory or ApAddClass() failed.
Don't call any Ap* functions if ApAddContext() fails. |
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
ApAddClass(), ApRemoveContext()
“Making a DLL out of a PhAB application” in the Generating, Compiling, and Running Code chapter of the Photon Programmer's Guide