Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection is ok BUT

Status
Not open for further replies.

Bodrum81

Programmer
Nov 5, 2003
29
DE
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 && !::peekMessage(&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 :):peekMessage(&m_msgCur, NULL, NULL, NULL, PM_NOREMOVE));
}
ASSERT(FALSE); // not reachable
}
************************************************************

what must I do?
have anybody an idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top