// dialog IPC(memory share)

mapHandle = OpenFileMapping(FILE_MAP_READ | FILE_MAP_WRITE, FALSE, "oitool");

if (!mapHandle)

{

log("IPC map OpenFileMapping failed.");

output("IPC map OpenFileMapping failed\n");

AfxMessageBox("Map initialize failed(OpenFileMapping)");

Exit();

return;

}

else

{

mapData = (CData*)MapViewOfFile(mapHandle, FILE_MAP_WRITE | FILE_MAP_READ, 0, 0, 0);

if (!mapData)

{

log("IPC map MapViewOfFile failed.");

output("IPC map MapViewOfFile error");

AfxMessageBox("Map initialize failed(MapViewOfFile)");

Exit();

return;

}

else

{

para = mapData->para;

lot_no = mapData->lotno;

ini_manager.SetPath(mapData->programPath);

}

}