Data Transformation Engine Platform API Reference Guide
Chapter 2 - Using the Platform API Using Maps in Memory
Platform API Reference Guide
RunMap
lpv LPVOID
/* declare a new local variable: */
LPVOID lpv;
/* to initialize, do these two steps */
/* this gets a pointer to a map instance: */
lpv = InitializeRunMapInstance(“sdq.mmc”);
/* this assigns the map instance to the ep structure: */
RunMapUsesInstance(&ep, lpv, TRUE);
/* now do the normal init stuff (setting up lpDataToApp) */
ep.lpDataToApp = “sdq.mmc –ae”;
/* and call RunMap */
RunMap(&ep);
/* and to clear the maps in memory, these two steps: */
/* this frees the memory associated with the map instance: */
FreeRunMapInstance(lpv);
/* this clears the ep structure from knowledge of the map instance: */
RunMapUsesInstance(&ep, NULL, FALSE);
RunMap
EXITPARAM
RunMapUsesInstance
RunMap
InitializeRunMap