Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding text in another application Pin
Joaquín M López Muñoz1-Aug-02 8:50
Joaquín M López Muñoz1-Aug-02 8:50 
GeneralRe: Adding text in another application Pin
Baatezu1-Aug-02 8:56
Baatezu1-Aug-02 8:56 
GeneralRe: Adding text in another application Pin
includeh101-Aug-02 9:13
includeh101-Aug-02 9:13 
GeneralRe: Adding text in another application Pin
Baatezu1-Aug-02 9:20
Baatezu1-Aug-02 9:20 
GeneralRe: Adding text in another application Pin
includeh101-Aug-02 9:55
includeh101-Aug-02 9:55 
GeneralRe: Adding text in another application Pin
Joaquín M López Muñoz1-Aug-02 9:13
Joaquín M López Muñoz1-Aug-02 9:13 
GeneralRe: Adding text in another application Pin
Baatezu1-Aug-02 9:23
Baatezu1-Aug-02 9:23 
GeneralAsynchronous CInternetSession object Pin
LukeyBoy1-Aug-02 8:23
LukeyBoy1-Aug-02 8:23 
Hey everyone. I'm trying to get the CInternetSession class do asynchronous fetching of web pages and I'm having some troubles. I have my class derived from CInternetSession (cleverly named "IgnorantInetSession" since it should essentially ignore results) and I keep getting assertion errors when the object is initialized. The class declaration is:

class CIgnorantInetSession : public CInternetSession
{
public:
    CIgnorantInetSession(LPCTSTR pstrAgent = NULL,
        DWORD dwContext = 1,
        DWORD dwAccessType = PRE_CONFIG_INTERNET_ACCESS,
        LPCTSTR pstrProxyName = NULL,
        LPCTSTR pstrProxyBypass = NULL,
        DWORD dwFlags = 0);
    virtual ~CIgnorantInetSession();
    void CIgnorantInetSession::OnStatusCallback(DWORD_PTR dwContext,
        DWORD dwInternetStatus, LPVOID lpvStatusInformation,
        DWORD dwStatusInformationLength);
};


In the constructor, I call EnableStatusCallback(TRUE); - this throws the asssertion problem. The function implementing the callback looks like so:

void CIgnorantInetSession::OnStatusCallback(DWORD_PTR dwContext,
    DWORD dwInternetStatus, LPVOID lpvStatusInformation,
    DWORD dwStatusInformationLength)
{
    CInternetSession::OnStatusCallback(dwContext, dwInternetStatus,
        lpvStatusInformation, dwStatusInformationLength);

}


Does anyone know what's going on here? Thanks!




Luke Reeves (LukeyBoy)
luke@oceanlake.com
GeneralRe: Asynchronous CInternetSession object Pin
Ravi Bhavnani1-Aug-02 10:04
professionalRavi Bhavnani1-Aug-02 10:04 
GeneralRe: Asynchronous CInternetSession object Pin
LukeyBoy1-Aug-02 10:21
LukeyBoy1-Aug-02 10:21 
GeneralRe: Asynchronous CInternetSession object Pin
Ravi Bhavnani1-Aug-02 10:25
professionalRavi Bhavnani1-Aug-02 10:25 
GeneralRe: Asynchronous CInternetSession object Pin
LukeyBoy1-Aug-02 10:27
LukeyBoy1-Aug-02 10:27 
GeneralRe: Asynchronous CInternetSession object Pin
Ravi Bhavnani1-Aug-02 10:33
professionalRavi Bhavnani1-Aug-02 10:33 
GeneralRe: Asynchronous CInternetSession object Pin
LukeyBoy1-Aug-02 10:36
LukeyBoy1-Aug-02 10:36 
GeneralRe: Asynchronous CInternetSession object Pin
Ravi Bhavnani1-Aug-02 10:41
professionalRavi Bhavnani1-Aug-02 10:41 
GeneralRe: Asynchronous CInternetSession object Pin
Ravi Bhavnani1-Aug-02 10:56
professionalRavi Bhavnani1-Aug-02 10:56 
GeneralRe: Asynchronous CInternetSession object Pin
Ravi Bhavnani1-Aug-02 10:58
professionalRavi Bhavnani1-Aug-02 10:58 
GeneralRe: Asynchronous CInternetSession object Pin
LukeyBoy1-Aug-02 11:07
LukeyBoy1-Aug-02 11:07 
GeneralRe: Asynchronous CInternetSession object Pin
Ravi Bhavnani1-Aug-02 11:11
professionalRavi Bhavnani1-Aug-02 11:11 
GeneralAlternate approach Pin
Ravi Bhavnani1-Aug-02 11:13
professionalRavi Bhavnani1-Aug-02 11:13 
GeneralAsynch not supported in MFC >= 4.22 Pin
Ravi Bhavnani1-Aug-02 11:16
professionalRavi Bhavnani1-Aug-02 11:16 
GeneralOne more... Pin
Ravi Bhavnani1-Aug-02 11:22
professionalRavi Bhavnani1-Aug-02 11:22 
GeneralWorks! Pin
Ravi Bhavnani1-Aug-02 11:23
professionalRavi Bhavnani1-Aug-02 11:23 
GeneralRe: One more... Pin
LukeyBoy1-Aug-02 12:19
LukeyBoy1-Aug-02 12:19 
GeneralRe: One more... Pin
Ravi Bhavnani1-Aug-02 12:38
professionalRavi Bhavnani1-Aug-02 12:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.