CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old August 3rd, 2005, 03:46 AM
    codegurugeek codegurugeek is offline
    Member
     
    Join Date: Feb 2005
    Posts: 64
    codegurugeek is an unknown quantity at this point (<10)
    Object reference not set to an instance of an object ??

    I keep on getting the error above, "

    Quote:
    HRESULT QueryMyFilter(LPCWSTR filelocation)
    {
    > hr = filefilter->QueryInterface(IID_IFileSinkFilter,(void**)&fsinkfilter);
    fsinkfilter->SetFileName(fileloc,NULL);
    }
    The debugger point at the ">" location ....

    Please Advise
    Reply With Quote
      #2    
    Old August 4th, 2005, 12:52 AM
    codegurugeek codegurugeek is offline
    Member
     
    Join Date: Feb 2005
    Posts: 64
    codegurugeek is an unknown quantity at this point (<10)
    Unhappy Re: Object reference not set to an instance of an object ??

    Quote:
    declaration ::

    IBaseFilter filefilter = NULL;
    IFileSinkFilter fsinkfilter=NULL;
    ..
    ..



    HRESULT QueryMyFilter(LPCWSTR filelocation)
    {
    > hr = filefilter->QueryInterface(IID_IFileSinkFilter,(void**)&fsinkfilter);
    fsinkfilter->SetFileName(fileloc,NULL);
    }

    i am really out of clue, when i check the msdn, i found out that
    IBaseFilter dont have the "QueryInterface" method in it.
    and when i use the filefilter like the following :

    filefilter->QueryInterface <---- it shows that it is from "Unknwn.h"


    Please advise thank you
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:04 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009