|
-
July 9th, 1999, 01:42 PM
#1
Confusued
CThreadsView::CThreadsView()
{
// TODO: add construction code here
CFileDialog _FileBox(TRUE,"*.mdb");
ThreadOnOff = FALSE;
_ST = NULL;
GetKeyDBFileValues("KanComm\\DISPLAY",&MyDataName);
MessageBox("Point -1 " + MyDataName);
if ( MyDataName == "" )
{
//if no database open file find
MessageBox(MyDataName);
_FileBox.DoModal();
MyDataName = _FileBox.GetPathName();
}
if ( MyDataName == "" )
{
MessageBox("Cannot create window without a database connection");
return;
}
_PortSettings = "COM2 baud=19200 parity=N data=8";
MyData.Open(MyDataName);
if (!MyData.IsOpen() )
MessageBox("DataBase is not open");
}
I have a question. When I run this code in debug mode it runs right; but when I run it in release mode the MyDataName is set to the proper string, but the condition of [MyDataName ==%2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|