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

error in "CreateEx" VC++ 5.0

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hey
Is there anybody know ?
I received these faults when compiling in VC++ 5.0:
-DEBUG:
MainFrm.cpp(78) : error C2065: 'CBRS_GRIPPER' : undeclared identifier
MainFrm.cpp(78) : error C2661: 'CreateEx' : no overloaded function takes 3
parameters

-and here is the CODE:
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE |
CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
I don't know why ?

 
Well, here's a semi answer to your question. Hope it helps some. The function CreateEx() doesn't take 3 parameters and yet you have it loaded with 3. Also, just like the debugger states, your program isn't recognizing CBRS_GRIPPER. Do you have all your #include files? What are you trying to accomplish?

HTH

Nyjil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top