如何在VC中用程序访问网上邻居中的计算机,其中访问2000时要输入用户名和密码,怎么在程序中输入 thanks 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我用了上面的函数具体程序: NETRESOURCE netr; TCHAR netBuf[50]={0}; memset(&netr,0,sizeof(NETRESOURCE)); wsprintf(netBuf,"\\\\192.168.1.166\\"); netr.dwScope = RESOURCE_GLOBALNET; netr.dwType = RESOURCETYPE_ANY; netr.lpLocalName = ""; netr.lpRemoteName = netBuf; netr.lpProvider = NULL; WNetAddConnection2(&netr, (LPSTR)"guest", (LPSTR)"guest", CONNECT_UPDATE_PROFILE);包含了头文件Winnetwk.h但是调试总是出错-------------------Configuration: netconnect - Win32 Debug--------------------Compiling...MainFrm.cppLinking...NetConnect1.obj : error LNK2001: unresolved external symbol _WNetAddConnection2A@16Debug/netconnect.exe : fatal error LNK1120: 1 unresolved externalsError executing link.exe.Creating browse info file...netconnect.exe - 2 error(s), 0 warning(s)谢谢 project--setting--link加上mpr.lib capCaptureSequence的简单问题 工具条按钮自己变长 这样会不会造成内存泄漏? 使用Drag and Drop实现拖拽功能,怎样显示跟随鼠标的图片? 一个初学者在VC下的DLL编程的问题? 又说Msdn 博大精深, 为什么我找来找去都找不到 Beep 在vc中的详细用法?是否我不会找呢? 设置ListView的背景图后,发现文字不是透明的 为何回车后就自动退出程序了? 怎样使ListBox显示tips @_@...幫我想想用什麽函數..@_@ 请不吝赐教!!! 请教一个序列化问题
具体程序:
NETRESOURCE netr;
TCHAR netBuf[50]={0};
memset(&netr,0,sizeof(NETRESOURCE));
wsprintf(netBuf,"\\\\192.168.1.166\\");
netr.dwScope = RESOURCE_GLOBALNET;
netr.dwType = RESOURCETYPE_ANY;
netr.lpLocalName = "";
netr.lpRemoteName = netBuf;
netr.lpProvider = NULL;
WNetAddConnection2(&netr,
(LPSTR)"guest",
(LPSTR)"guest",
CONNECT_UPDATE_PROFILE);包含了头文件Winnetwk.h
但是调试总是出错
-------------------Configuration: netconnect - Win32 Debug--------------------
Compiling...
MainFrm.cpp
Linking...
NetConnect1.obj : error LNK2001: unresolved external symbol _WNetAddConnection2A@16
Debug/netconnect.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...netconnect.exe - 2 error(s), 0 warning(s)谢谢
加上mpr.lib