×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    MHTTPFilter on the emulator

    Hello,

    There's an example of implementing HTTP filter plugin "DemoFilter": http://wiki.forum.nokia.com/index.ph..._filter_plugin
    How to make it work on 3rd edition FP2 1.1 SDK emulator?

    When I start the browser (browserng.exe or "Web" from menu) after I click on bookmark it gives "Feature not supported (-5)", when I click again, it dies with "KERN-EXEC 3".
    Without the plugin there are no problems.

    According to the EPOCWIND.OUT it doesn't go into the ImplementationGroupProxy function, dying before running any plugin code.

    Could anyone approve that the example is working on that emulator, or maybe try to suppose what's wrong?

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    Re: MHTTPFilter on the emulator

    i've simplified the code to the minimum, but the error still occures
    cpp's are compiled to the \epoc32\release\winscw\udeb\DemoFilter.dll
    and rss is compiled to the \epoc32\release\winscw\udeb\z\resource\plugins\DemoFilter.r01

    DemoFilter.cpp:
    Code:
    #include <e32base.h>
    #include <ecom/implementationproxy.h>
    #include <http/cecomfilter.h>
    #include <http/mhttpfilter.h>
    #include <e32debug.h>
    
    class CDemoFilter : public CEComFilter, public MHTTPFilter {
    public:
    	static CEComFilter* CreateFilterL(TAny* aHttpSession);
    };
    	
    CEComFilter* CDemoFilter::CreateFilterL(TAny* aHttpSession) {
    	return new (ELeave) CDemoFilter;
    }
    	
    const TImplementationProxy KImplementationTable[] = {
    	IMPLEMENTATION_PROXY_ENTRY(0xed4300f2, CDemoFilter::CreateFilterL)
    };
    
    EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) {
    	RDebug::Print(_L("Demo Filter: ImplementationGroupProxy"));
    	aTableCount = sizeof(KImplementationTable) / sizeof(TImplementationProxy);
    	return KImplementationTable;
    }
    DemoFilter.uid.cpp:
    Code:
    #include <e32cmn.h>
    #pragma data_seg(".SYMBIAN")
    __EMULATOR_IMAGE_HEADER2(0x10000079,0x10009d8d,0xed4300f1,EPriorityForeground,0x9F530u,0x00000000u,0xed4300f1,0,0,0)
    #pragma data_seg()
    DemoFilter.mmp:
    Code:
    TARGET                                  DemoFilter.dll 
    TARGETTYPE                              plugin 
    UID                                     0x10009d8d 0xed4300f1 
    capability                              LocalServices NetworkServices ReadUserData UserEnvironment WriteUserData ProtServ ReadDeviceData SWEvent WriteDeviceData NetworkControl 
    SOURCEPATH                              ..\data 
    START RESOURCE ed4300f1.rss 
      TARGET                                  DemoFilter 
      TARGETPATH                              \resource\plugins 
    END  
    
    SOURCEPATH                              ..\src 
    SOURCE                                  DemoFilter.cpp 
    
    SYSTEMINCLUDE                           \epoc32\include 
    USERINCLUDE                             ..\inc 
    LIBRARY                       euser.lib 
    LIBRARY                                 http.lib 
    LIBRARY                                 ecom.lib
    ed4300f1.rss:
    Code:
    #include <ecom/RegistryInfo.rh>
    RESOURCE REGISTRY_INFO theInfo {
    	dll_uid = 0xed4300f1;
    	interfaces = {
    		INTERFACE_INFO {
    			interface_uid = 0x101F446D;
    			implementations = {
    				IMPLEMENTATION_INFO {
    					implementation_uid = 0xed4300f2;
    					version_no = 1;
    					display_name = "DemoFilter";
    					default_data = "HTTP/+DEMOFILTER";
    					opaque_data = "";
    				}
    			};
    		}
    	};
    }

Similar Threads

  1. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Bluetooth Technology
    Replies: 9
    Last Post: 2009-07-17, 02:33
  2. Replies: 21
    Last Post: 2008-06-25, 20:21
  3. Carbide.vs emulator hangs when debugging
    By jyrkiettila in forum Symbian Tools & SDKs
    Replies: 14
    Last Post: 2008-02-26, 17:22
  4. Emulator to Emulator Bluetooth routing using NCF
    By letronje in forum Symbian Tools & SDKs
    Replies: 11
    Last Post: 2007-04-18, 13:41
  5. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-07-25, 00:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×