Eppley Institute for Cancer Research

University of Nebraska Medical Center

Home - Introduction - Common Tasks - Index - About

Detector API

Each detector module will occupy its own dll.  The functions must be named as indicated and compiled with the standard "C" calling convention and exported.  The DLL should look in directory labeled XML where the exe is located to load default values.  If none exists it should create one there.  If the user passes an XML with defaults it should use those instead.  __declspec(dllexport) is how borland builder determines if a function is exported by a DLL file.


extern "C" __declspec(dllexport) int initdetector(int*Start,int*Stop,HANDLE StartMutex,HANDLE StopMutex,AnsiString* pExternalHeaderInfo,jl_xml_element * xmlsettings);
extern "C" __declspec(dllexport) jl_xml_element* settings(void);
extern "C" __declspec(dllexport) char* getxmltype(void);
extern "C" __declspec(dllexport) int stopdetector(void);
extern "C" __declspec(dllexport) int showdetectorstatus(void);
extern "C" __declspec(dllexport) char* aquireimage(char* AnImageName);
extern "C" __declspec(dllexport) char* menustring(void);
extern "C" __declspec(dllexport) char* dlldescription(void);
extern "C" __declspec(dllexport) jl_xml_element* getdetectorxmlsettings();
extern "C" __declspec(dllexport) jl_xml_element* setdetectorxmlsettings(jl_xml_element* NewSettings);
extern "C" __declspec(dllexport) AnsiString& constantheaderinfo();