请各位赐教 局域网问题 送上100分 各位高手 帮兄弟一把 谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 void createfold(LPCTSTR shostip,LPCTSTR disk){ WSADATA wsadata; #define winsock_version 0x0101 if(WSAStartup(winsock_version,&wsadata)) AfxMessageBox("WSAStartup error"); LPHOSTENT lphostent; unsigned long uladdr=inet_addr(shostip); lphostent=gethostbyaddr((const char*)&uladdr,4,AF_INET); AfxMessageBox(lphostent->h_name); CString filepath; filepath.Format("\\\\%s\\%s\\test.txt",lphostent->h_name,disk); CFile file; file.Open(filepath,CFile::modeCreate); file.Close(); WSACleanup( );}void CC22Dlg::OnOK() { //create a file at \\192.168.0.1\f\text.txt createfold("192.168.0.1","f");} 重复定义的问题 ****200分+有偿求个能播放网络real等格式媒体流的代码***** 关于操作单据号顺序添加(我用的是VC) 问题 用哪个api可以得到窗体的类名 请教为什么我在CStatic的派生类中定义的OnCtlColor消息相应函数不被执行??? 在disable的按钮上应用CButtonST,非常难看,求高手给解决方法! 在combobox文字项前面加入icon应该是可以的吧? 请WIN98恢复注册表的命令在DOS 下,急谢谢 如何在9x下列举所有的进程(id,应用程序名) ATL中的超大BUG还是我使用错误? 如果我编专业软件,选择C++还是C#?
{
WSADATA wsadata;
#define winsock_version 0x0101
if(WSAStartup(winsock_version,&wsadata))
AfxMessageBox("WSAStartup error");
LPHOSTENT lphostent;
unsigned long uladdr=inet_addr(shostip);
lphostent=gethostbyaddr((const char*)&uladdr,4,AF_INET);
AfxMessageBox(lphostent->h_name);
CString filepath;
filepath.Format("\\\\%s\\%s\\test.txt",lphostent->h_name,disk);
CFile file;
file.Open(filepath,CFile::modeCreate);
file.Close();
WSACleanup( );}
void CC22Dlg::OnOK()
{
//create a file at \\192.168.0.1\f\text.txt
createfold("192.168.0.1","f");
}