CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  网络编程

请问如何用VC++编译VipShell?

楼主einstein30000(黑客守卫者)2006-09-02 21:40:47 在 VC/MFC / 网络编程 提问

请问如何用VC++编译VipShell?      
     
  源码下载:      
  http://www.xfocus.net/tools/200608/1177.html      
     
  来自安全焦点,链接安全。      
     
     
  “编译前把工程设置成     Unicode     ”,这个是什么意思?应该如何修改VC的工程设置?      
     
  我在预处理添加了unicode和_unicode,仍不能通过编译····      
     
  需要详细的工程配置说明····谢谢了      
     
  Q:215197215,可以加我的Q说说~ 问题点数:100、回复次数:11Top

1 楼DentistryDoctor(不在无聊中无奈,就在沉默中变态)回复于 2006-09-02 21:42:31 得分 0

Unicode      
  _UNICODE?Top

2 楼einstein30000(黑客守卫者)回复于 2006-09-02 22:21:20 得分 0

“编译前把工程设置成     Unicode     ”,这个是什么意思?应该如何修改VC的工程设置?··  
   
  我快晕死了···Top

3 楼oyljerry(【勇敢的心】→ ㊣提拉米苏√㊣)回复于 2006-09-03 11:09:45 得分 0

propertise   ->   precompiled   _UNICODETop

4 楼loomman(一剑)回复于 2006-09-03 11:35:17 得分 0

将你的应用程序转换成符合U   n   i   c   o   d   e   的应用程序。下面是应该遵循的一些基本原则:  
   
  •   将文本串视为字符数组,而不是c   h   a   r   s   数组或字节数组。  
  •   将通用数据类型(如T   C   H   A   R   和P   T   S   T   R   )用于文本字符和字符串。  
  •   将显式数据类型(如B   Y   T   E   和P   B   Y   T   E   )用于字节、字节指针和数据缓存。  
  •   将T   E   X   T   宏用于原义字符和字符串。  
  •   执行全局性替换(例如用P   T   S   T   R   替换P   S   T   R   )。  
  •   修改字符串运算问题。例如函数通常希望你在字符中传递一个缓存的大小,而不是字节。  
   
  这意味着你不应该传递s   i   z   e   o   f   (   s   z   B   u   ff   e   r   )   ,而应该传递(s   i   z   e   o   f   (   s   z   B   u   ff   e   r   )   /   s   i   z   e   o   f   (   T   C   H   A   R   )。另外,如果需要为字符串分配一个内存块,并且拥有该字符串中的字符数目,那么请记住要按字节来分配内存。这就是说,应该调用malloc(nCharacters   *sizeof(TCHAR)),而不是调用m   a   l   l   o   c(   n   C   h   a   r   a   c   t   e   r   s   )。在上面所说的所有原则中,这是最难记住的一条原则,如果操作错误,编译器将不发出任何警告。  
   
  Top

5 楼KeSummer([IN]LPVOID YourLove,[OUT]LPVOID MyLove)回复于 2006-09-03 14:03:07 得分 0

我编译好了啊,用VS   2003打开VipShell.vcproj,再点生成解决方案,0   错误   0警告.LZ用什么编译呀?VC6?Top

6 楼einstein30000(黑客守卫者)回复于 2006-09-03 17:51:00 得分 0

嗯,没错,我是用VC6编译的···不过理论上这个编译器也能通过的啊···汗Top

7 楼KeSummer([IN]LPVOID YourLove,[OUT]LPVOID MyLove)回复于 2006-09-03 18:04:47 得分 0

是可以的,但VC6自身对   Unicode     的支持,必须设定才可以.Top

8 楼einstein30000(黑客守卫者)回复于 2006-09-03 19:53:12 得分 0

“是可以的,但VC6自身对   Unicode     的支持,必须设定才可以.”  
   
  我知道可以啊···问题是,在VC6下面怎么设置呢?Top

9 楼einstein30000(黑客守卫者)回复于 2006-09-03 19:54:19 得分 0

还是要先感谢你回复我的帖子···衷心的感谢  
   
  请问在VC6,该如何设置?我在预处理添加了unicode和_unicode,仍不能通过编译····Top

10 楼KeSummer([IN]LPVOID YourLove,[OUT]LPVOID MyLove)回复于 2006-09-03 20:11:14 得分 0

打开工程,菜单->工程->设置->c/c++->预处理程序定义;加上UNICODE   _UNICODE,  
  英文VC的话是:打开工程文件后,从主菜单中选择“Project   |   Settings”打开工程设置对话框   =>   然后选择“C/C++”标签   =>   在“Preprocessor   definitions”编辑框中添加   UNICODE   或者   _UNICODE   预处理宏指令。  
   
  参看:http://www.vckbase.com/document/viewdoc/?id=642Top

11 楼einstein30000(黑客守卫者)回复于 2006-09-03 21:37:35 得分 0

我在预处理添加了unicode和_unicode,仍不能通过编译····  
   
  --------------------Configuration:   VipClient   -   Win32   Release--------------------  
  Compiling...  
  VipClient.cpp  
  F:\src\VipshellSrc\VipClient\.\.\connectbase.h(68)   :   error   C2065:   'CA2W'   :   undeclared   identifier  
  VipClientDlg.cpp  
  F:\src\VipshellSrc\VipClient\.\.\connectbase.h(68)   :   error   C2065:   'CA2W'   :   undeclared   identifier  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(169)   :   error   C2664:   '__thiscall   CInputDlg::CInputDlg(class   CWnd    
   
  *,const   char   *,const   char   *)'   :   cannot   convert   parameter   2   from   'unsigned   short   [5]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(383)   :   error   C2664:   'void   __cdecl   CString::Format(const   char    
   
  *,...)'   :   cannot   convert   parameter   1   from   'unsigned   short   [15]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(471)   :   error   C2664:   'void   __cdecl   CString::Format(const   char    
   
  *,...)'   :   cannot   convert   parameter   1   from   'unsigned   short   [6]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(521)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(540)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(560)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(574)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(589)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(608)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(642)   :   error   C2664:   '__thiscall   CInputDlg::CInputDlg(class   CWnd    
   
  *,const   char   *,const   char   *)'   :   cannot   convert   parameter   2   from   'unsigned   short   [5]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(648)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(664)   :   error   C2664:   '__thiscall   CInputDlg::CInputDlg(class   CWnd    
   
  *,const   char   *,const   char   *)'   :   cannot   convert   parameter   2   from   'unsigned   short   [5]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(667)   :   error   C2664:   'int   __thiscall   CString::Replace(char,char)'   :    
   
  cannot   convert   parameter   1   from   'unsigned   short   [2]'   to   'char'  
                  This   conversion   requires   a   reinterpret_cast,   a   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(671)   :   error   C2664:   'MessageBoxA'   :   cannot   convert   parameter   1   from    
   
  'unsigned   short   [9]'   to   'const   char   *'  
                  Types   pointed   to   are   unrelated;   conversion   requires   reinterpret_cast,   C-style   cast   or   function-style   cast  
  F:\src\VipshellSrc\VipClient\VipClientDlg.cpp(756)   :   error   C2065:   'DWORD_PTR'   :   undeclared   identifier  
  Generating   Code...  
  Error   executing   cl.exe.  
   
  VipClient.exe   -   17   error(s),   0   warning(s)  
  Top

相关问题

关键词

得分解答快速导航

  • 帖主:einstein30000

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo