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

AfxConnectionAdvise

Status
Not open for further replies.

mangocinn

Programmer
Jul 26, 2001
66
US
When I use AfxConnectionAdvise, I receive the error 'undeclared identifier' when compiling. I have included afxwin.h in my file... Does any one know what else I need?

Here is the piece of code.

classB* sinkPtr;
LPUNKNOWN unkSinkPtr;
DWORD dwCookie;

sinkPtr = new classB();
if (sinkPtr)
{
unkSinkPtr = sinkPtr->GetIDispatch(FALSE);
AfxConnectionAdvise(m_ApiPtr, DIID__IApiEvents, unkSinkPtr, FALSE, &dwCookie);
unkSinkPtr->Release;
}
 
Nevermind...

I figured out that I needed afxctl.h

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top