00001 #include "Main.h" 00002 00003 extern "C" 00004 bool __declspec(dllexport) 00005 __stdcall GetAdapter (IdcAdapter** pp_adapter, 00006 const char* name, bool (*pGetParam)(const char*, char*, int)) 00007 { 00008 *pp_adapter = new BnSerialPort (name, pGetParam); 00009 if (pp_adapter == NULL) 00010 return false; 00011 return true; 00012 } 00013