|
-
April 8th, 1999, 08:50 AM
#2
Re: CInternetSession OnStatusCallback, usage
Hi Vijay,
you don't need to call OnStatusCallback, the MFC framework calls *your* implementation of OnStatusCallback. You need to inherit your own class from CInternetSession and overwrite OnStatusCallback. For example:
class CMyInternetSession : public CInternetSession
{
public:
void OnStatusCallback( DWORD dwContext,
DWORD dwInternetStatus,
LPVOID lpvStatusInformation,
DWORD dwStatusInformationLength );
};
void CMyInternetSession::OnStatusCallback( DWORD dwContext,
DWORD dwInternetStatus,
LPVOID lpvStatusInformation,
DWORD dwStatusInformationLength )
{
if ( INTERNET_STATUS_CONNECTING_TO_SERVER == dwInternetStatus )
{
AfxMessageBox( "Connecting to server..." );
}
}
Martin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|