//declarations at the top
#include <map>
#include <string>
using namespace std;
typedef map<string, string> TestMap;
//export function..
extern "C" int WINAPI Test(HWND, HWND, char *data, char *parms, BOOL, BOOL) {
TestMap["#Channel"] = "Mark";
_fstrcpy(data, TestMap.find("#Channel"));
return3;
}