[Q] SNMP++V3.0.1 for WIN32

Hiro Watanabe hwatanabe____yahoo.co.nz
Mon Mar 5 12:33:50 CET 2001


Hi,

I have succeeded in compiling SNMP++V3.0.1 for WIN32 (actually I am using
Borland C++Builder). Now I am testing the compiled DLL using the examples
in the package.

While compiling "receive_trap.cpp", which is for receiving traps/informs,
I noticed the following things in the SNMP++V3.0.1. They used to be taken
 care of by WinSNMP.

- After registering a notification, we have to call SNMPProcessEvent() or
  SNMPProcessPendingEvent(). However, these functions are not "exported",
  ie., do not have a "DLLOPT" prefix.

- The above functions are declared in "eventlist.h". But in "snmp_pp.h",
  this "eventlist.h" is included only when "__unix" flag is defined.

- Likewise, DLLOPTs are missing in "notifyqueue.h". For example, the class
  "CEventNotifyQueue" is required but is not exported by DLLOPT.

I made my own corrections to the above problems, and then everything has
worked OK. Hence I suppose:

- Presumably SNMP++V3.0.1 is not tested well with -DWIN32 flag.
- Or, my usage is totally wrong. There should be a proper way to get
  it worked without any correction.

Anyone who have ever tested with -DWIN32 compilation, could you please
advise me whether I am going to the right direction or not.

Thank you,
Hiro


_____________________________________________________________________________
http://store.yahoo.com.au - Yahoo! Store
- The fastest, easiest way to open an online store.



More information about the AGENTPP mailing list