我在一个工程文件里写了两个程序,一个客户端,一个服务器端,为什么编译客户端的时间,会连接到服务器端DLG.CPP的文件,而且还报了24个错
以前一直没出现过这样的问题,只是在今天早晨,我写了服务器端DLG.CPP中的几个代码,然后编译了客户端就提示如下的信息Deleting intermediate files and output files for project '客户端 - Win32 Debug'.
--------------------Configuration: 客户端 - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Instrumentation of G:\制作\\客户端\StdAfx.cpp starting...
Instrumentation of G:\\客户端\StdAfx.cpp done.
Compiling...
UserCPList.cpp
ZhuiHaoDLG.cpp
服务器端Dlg.cpp
g:\制作\服务器端\resource.h(26) : warning C4005: 'IDC_BUTTON1' : macro redefinition
g:\制作\客户端\resource.h(53) : see previous definition of 'IDC_BUTTON1'
g:\制作\服务器端\resource.h(35) : warning C4005: 'IDC_EDIT4' : macro redefinition
g:\制作\客户端\resource.h(113) : see previous definition of 'IDC_EDIT4'
g:\制作\服务器端\resource.h(36) : warning C4005: 'IDC_EDIT5' : macro redefinition
g:\制作\客户端\resource.h(110) : see previous definition of 'IDC_EDIT5'
g:\制作\服务器端dlg.h(27) : error C2061: syntax error : identifier 'server_dlinks_zpc'
g:\制作\服务器端dlg.h(29) : error C2061: syntax error : identifier 'server_dlinks_zpc'
g:\制作\服务器端dlg.h(40) : error C2146: syntax error : missing ';' before identifier 'm_pConn'
g:\制作\服务器端dlg.h(40) : error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
g:\制作\服务器端dlg.h(40) : error C2501: 'm_pConn' : missing storage-class or type specifiers
..................................双击错误信息,全是错在服务器端的文件里,而我的客户端,跟服务器端一点联系都没有.我REBIULD ALL也是一样的出错~~
以前一直没出现过这样的问题,只是在今天早晨,我写了服务器端DLG.CPP中的几个代码,然后编译了客户端就提示如下的信息Deleting intermediate files and output files for project '客户端 - Win32 Debug'.
--------------------Configuration: 客户端 - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Instrumentation of G:\制作\\客户端\StdAfx.cpp starting...
Instrumentation of G:\\客户端\StdAfx.cpp done.
Compiling...
UserCPList.cpp
ZhuiHaoDLG.cpp
服务器端Dlg.cpp
g:\制作\服务器端\resource.h(26) : warning C4005: 'IDC_BUTTON1' : macro redefinition
g:\制作\客户端\resource.h(53) : see previous definition of 'IDC_BUTTON1'
g:\制作\服务器端\resource.h(35) : warning C4005: 'IDC_EDIT4' : macro redefinition
g:\制作\客户端\resource.h(113) : see previous definition of 'IDC_EDIT4'
g:\制作\服务器端\resource.h(36) : warning C4005: 'IDC_EDIT5' : macro redefinition
g:\制作\客户端\resource.h(110) : see previous definition of 'IDC_EDIT5'
g:\制作\服务器端dlg.h(27) : error C2061: syntax error : identifier 'server_dlinks_zpc'
g:\制作\服务器端dlg.h(29) : error C2061: syntax error : identifier 'server_dlinks_zpc'
g:\制作\服务器端dlg.h(40) : error C2146: syntax error : missing ';' before identifier 'm_pConn'
g:\制作\服务器端dlg.h(40) : error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
g:\制作\服务器端dlg.h(40) : error C2501: 'm_pConn' : missing storage-class or type specifiers
..................................双击错误信息,全是错在服务器端的文件里,而我的客户端,跟服务器端一点联系都没有.我REBIULD ALL也是一样的出错~~
解决方案 »
- 请问各位大侠,C#做的界面,我VC可以拿来使用吗?
- exe和dll都是MFC程序,dll的导出函数不能为CString类型吗?
- vs2005新建对话框程序,但是运行时发现对话框是全屏的,如何设置大小
- 关于内核和用户程序使用共享内存的问题
- 用CEdit::ModifyStyle(0, ES_PASSWORD, 0)修改后怎么Edit还是跟没变风格前一样阿
- 百分相赠,简单问题,谢谢。
- 谁有知道电子地图的编写原理是什么|???????????????????????
- clistctrl问题
- 内存分页是由操作系统管理?还是CPU管理?
- mybole() !!!你是傻B还是怎么着?!
- 如何将双字节常量赋给单字节指针??
- CListCtrl某一项被修改之后响应事件
一个工程是指dsp,工作空间是dsw,一个工作空间里面加多个工程是没有问题的。我说的一个工程里面的文件一起编译是指一个dsp下面的。
把DEBUG(或者RELASE)下所有的文件删了再编译试试