class CTIUSMO_RWDlg : public CDialog { // Construction public: CTIUSMO_RWDlg(CWnd* pParent = NULL); // standard constructor FILE * pFile; }
// In Dlg.cpp LPCTSTR ReadValue; /* I'm not adding whole code here......Actually ReadValue is a pointer for shared memory , and It's getting data */ ReadValue = (LPTSTR) MapViewOfFile(hMapFile2, // handle to map object FILE_MAP_ALL_ACCESS, // read/write permission 0, 0, BUF_SIZE); /* Here in array a[i} , Im getting all the values..., But when I do the fprint I'ts printing only first digit( say for ex.25565 means , it's printing only 2) */ CString a[100]; for ( int i=0;i<100;i++) { a[i] = ReadValue; ReadValue=ReadValue+4; fprintf(pFile,"%s\n",a[i]); } fclose(pFile);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)