Hello
I am confused about my VC++ Programm.
I have a Crystal-Viewer program
When I open a Report and set the parameters in the Logon-Dialog
then the program will preview the report
thats works correctly.
But the Logon-Information in the Dialog is the same logon-Information from the report.
for example in the dialog: user: me passw: "" server: test
and the information in the Report is also user: me passw: "" server: test
BUT
when i don't use the information from the report.
when i fill the dialog for example with. user: me passw: **** server: create
then i get a failure-message in my program
"Server hast not been opened"
BUUUUT when i look in a tool which connects are on server: create. I see that this program is connected to the server, but my program show a failure-message.
when I debug the code I get the error-message @ c:\...\mfc\src\thrdcore.cpp
************************************************************
// main running routine until thread exits
int CWinThread::Run()
{
ASSERT_VALID(this);
// for tracking the idle time state
BOOL bIdle = TRUE;
LONG lIdleCount = 0;
// acquire and dispatch messages until a WM_QUIT message is received.
for (;
{
// phase1: check to see if we can do idle work
while (bIdle && !:
eekMessage(&m_msgCur, NULL, NULL, NULL, PM_NOREMOVE))
{
// call OnIdle while in bIdle state
if (!OnIdle(lIdleCount++))
bIdle = FALSE; // assume "no idle" state
}
// phase2: pump messages while available
do
{
// pump message, but quit on WM_QUIT
if (!PumpMessage())
return ExitInstance();
// reset "no idle" state after pumping "normal" message
if (IsIdleMessage(&m_msgCur))
{
bIdle = TRUE;
lIdleCount = 0;
}
} while
eekMessage(&m_msgCur, NULL, NULL, NULL, PM_NOREMOVE));
}
ASSERT(FALSE); // not reachable
}
************************************************************
what must I do?
have anybody an idea?
I am confused about my VC++ Programm.
I have a Crystal-Viewer program
When I open a Report and set the parameters in the Logon-Dialog
then the program will preview the report
thats works correctly.
But the Logon-Information in the Dialog is the same logon-Information from the report.
for example in the dialog: user: me passw: "" server: test
and the information in the Report is also user: me passw: "" server: test
BUT
when i don't use the information from the report.
when i fill the dialog for example with. user: me passw: **** server: create
then i get a failure-message in my program
"Server hast not been opened"
BUUUUT when i look in a tool which connects are on server: create. I see that this program is connected to the server, but my program show a failure-message.
when I debug the code I get the error-message @ c:\...\mfc\src\thrdcore.cpp
************************************************************
// main running routine until thread exits
int CWinThread::Run()
{
ASSERT_VALID(this);
// for tracking the idle time state
BOOL bIdle = TRUE;
LONG lIdleCount = 0;
// acquire and dispatch messages until a WM_QUIT message is received.
for (;
{
// phase1: check to see if we can do idle work
while (bIdle && !:
{
// call OnIdle while in bIdle state
if (!OnIdle(lIdleCount++))
bIdle = FALSE; // assume "no idle" state
}
// phase2: pump messages while available
do
{
// pump message, but quit on WM_QUIT
if (!PumpMessage())
return ExitInstance();
// reset "no idle" state after pumping "normal" message
if (IsIdleMessage(&m_msgCur))
{
bIdle = TRUE;
lIdleCount = 0;
}
} while
}
ASSERT(FALSE); // not reachable
}
************************************************************
what must I do?
have anybody an idea?