I've been working on porting code over from C++, I ported most of the code but I can't seem to manage to get part of it done.
Any help would be appreciated, the line if I can't port is: m_TCM = (MMFTextControlMapping*)m_MapAddress;.Code:IntPtr m_MapFile; IntPtr m_MapAddress; MMFTextControlMapping m_TCM; Queue<MMFTextCommand> m_QueuedCommands; public CTextHelper(string name) { m_MapFile = OpenFileMapping(FILE_MAP_ALL_ACCESS, true, name); if (m_MapFile == null) { return; } m_MapAddress = MapViewOfFile(m_MapFile, // handle to mapping object FILE_MAP_ALL_ACCESS, // read/write permission 0, // max. object size 0, // size of hFile 0); // map entire file if (m_MapAddress == null) { return; } m_TCM = (MMFTextControlMapping*)m_MapAddress; // this is the part of the code I can't figure out how to port }




Reply With Quote