diff options
Diffstat (limited to 'Bus/IvyProbe')
-rw-r--r-- | Bus/IvyProbe/IvyProbeDlg.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Bus/IvyProbe/IvyProbeDlg.cpp b/Bus/IvyProbe/IvyProbeDlg.cpp index f504a1c..96bb3a2 100644 --- a/Bus/IvyProbe/IvyProbeDlg.cpp +++ b/Bus/IvyProbe/IvyProbeDlg.cpp @@ -132,7 +132,7 @@ BOOL CTestDlg::OnInitDialog() SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
-#ifndef UNDER_CE
+#ifdef USE_ETS
// define the Layout
CreateRoot( VERTICAL )
<< ( pane( HORIZONTAL, ABSOLUTE_VERT )
@@ -174,7 +174,7 @@ BOOL CTestDlg::OnInitDialog() // Set Argument from Command Line
m_busnumber = cmd.m_busNumber;
- bus = new Ivy( "TEST NT","TEST NT READY",this,FALSE);
+ bus = new Ivy( "IvyProbe Windows","IvyProbe Windows Ready",this,FALSE);
// bus->BindMsg("(.*)", BUS_CALLBACK_OF(CTestDlg, IvyCallback ));
@@ -354,37 +354,41 @@ void CTestDlg::OnClockRate() void CTestDlg::OnLoad()
{
+#ifndef UNDER_CE
+ // TODO ReadString doesn't existe
CString message;
- CFileDialog dialog( TRUE, "txt", NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "Ivy Messages Files (*.txt)");
+ CFileDialog dialog( TRUE, TEXT("txt"), NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, TEXT("Ivy Messages Files (*.txt)"));
if ( dialog.DoModal() == IDOK )
{
CStdioFile file( dialog.GetPathName(), CFile::modeRead | CFile::typeText );
m_msg.ResetContent();
- while ( file.ReadString(message) )
+ while ( file.ReadString( message ))
{
m_msg.AddString( message );
}
file.Close();
}
-
+#endif
}
void CTestDlg::OnSave()
{
+#ifndef UNDER_CE
+ // TODO WriteString doesn't existe
CString message;
- CFileDialog dialog( FALSE, "txt" , NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "Ivy Messages Files (*.txt)");
+ CFileDialog dialog( FALSE, TEXT("txt") , NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, TEXT("Ivy Messages Files (*.txt)"));
if ( dialog.DoModal() == IDOK )
{
CStdioFile file( dialog.GetPathName(), CFile::modeCreate | CFile::modeWrite | CFile::typeText );
for (int i=0;i < m_msg.GetCount();i++)
{
m_msg.GetLBText( i, message );
- file.WriteString(message + "\n");
+ file.WriteString(message + TEXT("\n"));
}
file.Close();
}
-
+#endif
}
|