none
WinCE 6.0 snmapi.lib in a SDK? RRS feed

  • Question

  • Hi,

    I'm trying to develop an snmp extension (dll). But, I can't figure out how to include snmpapi.lib and snmp.h in my platform SDK... The only way I see is to add the public\common\oak\...\armv4i\retail directory to my sdk, which doesn't make sense to me.

    Any idea?

    Thanks

    Friday, April 22, 2011 5:33 PM

All replies

  • The only other way would be to copy the needed files to your SDK folder prior to rolling the SDK.

    See http://geekswithblogs.net/BruceEitman/archive/2008/05/08/windows-ce-platform-builder--automatically-putting-files-in-the.aspx for a way to automate the copy.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Friday, April 22, 2011 5:59 PM
    Moderator
  • Thanks, it works fine!

    Other question: I'm trying to make my snmp agent dll to start but it doesn't... Here is my config:

    Project.bib:

    snmpsmf.dll $(_PROJECTROOT)\snmpsmf.dll NK SHK
    

    Project.reg:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents]
    
    "3" = "SOFTWARE\\Cybectec\\ExtensionAgent\\CurrentVersion"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Cybectec\ExtensionAgent\CurrentVersion]
    
    "Pathname" = "snmpsmf.dll"
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\RFC1156Agent]
    
    "sysContact" = ""
    
    "sysLocation" = ""
    

    SNMP is working but my agent doesn't seems to be loaded. Is there anything else to do to have my agent dll to load?

    Thanks

    David

     

     

     

    Monday, May 16, 2011 8:55 PM
  • David:

    I think that you need to remove the K flag from the bib file:

    snmpsmf.dll $(_PROJECTROOT)\snmpsmf.dll NK SH


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Monday, May 16, 2011 9:48 PM
    Moderator
  • Thanks Bruce, but unfortunately, it is still not loading.

    Note that the dll is working when I load it manually with LoadLibrary.

    Here is the content of my def file:

    LIBRARY SNMPSMF
    
    ; DESCRIPTION 'SNMP Extension Agent for Smf Application'
    
    EXPORTS
     SnmpExtensionInit
     SnmpExtensionTrap
     SnmpExtensionQuery

    Is there any way to get retailmsg from the snmp dll (snmp.dll)? I think this is this dll which is responsible to load the extensio, right?

     

    Tuesday, May 17, 2011 12:44 AM
  • After a rebuild, the dll is loading...

    Still having other problems but at least it loads.

    Thanks for the help.

    Thursday, May 19, 2011 7:52 PM