954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Winsnm Programming

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 :

Linking...
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

[email]rafalkw@siodemka.p.lodz.pl[/email]

rafalkw
Newbie Poster
2 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

Did you link with wsnmp32.lib?

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

I thank. This helped me.

rafalkw
Newbie Poster
2 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

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

Yes, I'm joking. ;)

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You