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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runningtroubles 1

Status
Not open for further replies.

lordhaenchen

Programmer
Apr 25, 2001
6
0
0
CH
When I`m runing my prog there comes always "Gebug Library Wiindow, and the marks me always the folloing PORBLEM. What can I do?
HWND CDataExchange::prepareCtrl(int nIDC)
{
ASSERT(nIDC != 0);
ASSERT(nIDC != -1); // not allowed
HWND hWndCtrl;
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);
if (hWndCtrl == NULL)
{
TRACE1("Error: no data exchange control with ID 0x%04X.\n", nIDC);
Debugermark-> ASSERT(FALSE);
AfxThrowNotSupportedException();
}
m_hWndLastControl = hWndCtrl;
m_bEditLastControl = FALSE; // not an edit item by default
ASSERT(hWndCtrl != NULL); // never return NULL handle
return hWndCtrl;
}
 
This message infers that you haven't defined any class member variables that have been allocated or defined the available DDX (DynamicDataExchange) capabilities to. If you added a class variable via the CLASS WIZARD this is automatically done. However if a variable is added manually you need to add this function call yourself.

I suggest that you look at the class wizard, add a variable to the class and either copy the syntax or look in the online help for the explanation and syntax for the dynamic data exchange functions within visual c++.
 
I have the same problem. I do have the necessary class member variables
declared. Did you manage to solve your problem?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top