Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyneu committed Oct 5, 2017
1 parent 46036d2 commit 2aa0454
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Binary file modified Release/tool3.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions tool3.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Global
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7F36AAF4-D996-4FB8-A429-22DDD0F0633E}.Debug|Win32.ActiveCfg = Debug|Win32
{7F36AAF4-D996-4FB8-A429-22DDD0F0633E}.Debug|Win32.Build.0 = Debug|Win32
{7F36AAF4-D996-4FB8-A429-22DDD0F0633E}.Debug|Win32.ActiveCfg = Release|Win32
{7F36AAF4-D996-4FB8-A429-22DDD0F0633E}.Debug|Win32.Build.0 = Release|Win32
{7F36AAF4-D996-4FB8-A429-22DDD0F0633E}.Release|Win32.ActiveCfg = Release|Win32
{7F36AAF4-D996-4FB8-A429-22DDD0F0633E}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
Expand Down
Binary file modified tool3.suo
Binary file not shown.
8 changes: 5 additions & 3 deletions tool3/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class r:public CFolderPickerDialog
{
}
CString f;
void init() {f = m_szFileName; }
int last;
void init() {f = m_szFileName; last=wcslen(m_szFileName);}
};
r *t;
HWND hc,hz;
Expand Down Expand Up @@ -224,14 +225,15 @@ void CMainFrame::tr()
si.hStdInput = stdinRd;
static wchar_t remmi[218];
wchar_t w[140],ferrum[198];
ZeroMemory(ferrum,sizeof(ferrum));
std::wifstream f;

if(!t)
{
ExpandEnvironmentStrings(L"%USERPROFILE%\\Documents\\fold.",w,140);
f.open(w,std::ios_base::in|std::ios_base::binary);
t=new r();
f >> ferrum;
f.read(ferrum,197);
t->f= ferrum;
}
if(!trigger)
Expand Down Expand Up @@ -276,7 +278,7 @@ void CMainFrame::uw()
if(c==IDOK)
{
f.open(w,std::ios_base::out|std::ios_base::binary);
f<<(LPCWSTR)t->f;
f.write((LPCWSTR)t->f,t->last);
f.close();
f.flush();
bh->EnableWindow();
Expand Down

0 comments on commit 2aa0454

Please sign in to comment.