I use VC++ 6.0

WinSNMP Programming
I have problem with WINSNMP.
I use function
smiUINT32 dwMajor, dwMinor, nLevel, nTranslate, nRetransmit;
SnmpStartup(&dwMajor, &dwMinor, &nLevel, &nTranslate, &nRetransmit);
and during linking it shows errors :

AlaDlg.obj : error LNK2001: unresolved external symbol _SnmpRegister@24
AlaDlg.obj : error LNK2001: unresolved external symbol _SnmpStartup@20
Debug/Ala.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
what it means this? What do I have to make?

Can you me write as I have correctly to use SNMPSTARTUP()?

Rafał Kwieciński


Did you link with wsnmp32.lib?

I thank. This helped me.

Glad to be of assistance. If you have any other problems, just remember that you're inconveniencing me.

Yes, I'm joking. ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.