| | |
| | | public: |
| | | xstring ProcessDevCmd(xstring cmd, xstring ext) |
| | | { |
| | | //trace(ext); |
| | | int nlen = 0; |
| | | BYTE* pdata; |
| | | xaserver::ProcessCmd(GetServerUrl(), (L"uri.hxsoft.com/xaserver/developer " + cmd).c_str(), ext, pdata, nlen); |
| | | if (nlen > 0) |
| | | { |
| | | xstring str = ((wchar_t*)pdata); |
| | | return str.mid(1, 9999999); |
| | | } |
| | | else |
| | | return L""; |
| | | return xaserver::ProcessCmd(GetServerUrl(), (L"uri.hxsoft.com/xaserver/developer " + cmd).c_str(), ext); |
| | | } |
| | | |
| | | HTREEITEM GetProjectItem(xtreeview tv_folder, HTREEITEM hItem ) |
| | |
| | | e.appendChild(e1); |
| | | int himage = xstring(e1.getAttribute(L"image")).toInt(); |
| | | HTREEITEM hNewItem = tv_folder.InsertChildItem(hItem, arg.GetArgString(L"name"), e1, himage); |
| | | |
| | | /* |
| | | int GENERIC_READ = 0x80000000; |
| | | int GENERIC_WRITE = 0x40000000; |
| | | int FILE_SHARE_READ = 0x00000001; |
| | | int FILE_SHARE_WRITE = 0x00000002; |
| | | int OPEN_EXISTING = 3; |
| | | int FILE_ATTRIBUTE_ARCHIVE = 0x00000020; |
| | | HANDLE hFile = xfile::CreateFile(L"D:\\jrjhome\\developer-yh\\projects\\mherp.com.cn\\前端策略\works\\供应链\\" + sTemplName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0); |
| | | if (hFile > 0) |
| | | { |
| | | //int GMEM_MOVEABLE=0x0002; |
| | | //int GMEM_ZEROINIT=0x0040; |
| | | //int MEMSIZE; |
| | | //int hMemory = GlobalAlloc(GMEM_MOVEABLE|GMEM_ZEROINIT,MEMSIZE); |
| | | //int pMemory = GlobalLock(hMemory); |
| | | //int SizeReadWrite; |
| | | //xwin::ReadFile(hFile,pMemory,MEMSIZE - 1,SizeReadWrite,0); |
| | | DWORD FileSizeHigh = 0; |
| | | int filesize = xfile::GetFileSize(hFile,FileSizeHigh); |
| | | char * buffer = new char[filesize+2]; |
| | | DWORD readsize; |
| | | xfile:ReadFile(hFile, buffer, filesize, &readsize, 0); |
| | | xfile::CloseHandle(hFile); |
| | | }*/ |
| | | |
| | | |
| | | int lens; |