是什么赋予了? cstring模板问题 [英] what gives? cstring template issues
问题描述
在VS 2003中,我尝试创建一个新的VC7 MFC dll。在添加任何代码之前接受所有默认值,
,我得到编译器错误,因为这个CString模板必须使用
。我遇到了同样的问题在
移植一些代码并使用/ clr开关进行编译我通过修改一段代码生成的代码来解决这个问题。 />
a字节到一个字符串(大约半天后找出正确的
编译器选项,然后意识到我需要更改它们每一个
项目中的单一来源文件,我设法完成了
在记事本中查找/替换,但只有在通过篮球跳舞后才能完成。但我的
当前错误必须在默认的项目设置中,或者在某个地方
?? !!因为我还没有写过一行资料。
IJW我的AS $!
TIA
!
TIA
< blockquote>我刚刚向VS2003解决方案添加了一个新的MFC dll项目,接受了
默认值(没有自动化,没有套接字,在共享dll中使用MFC)。
所有内容构建没有问题。
没有CString错误或任何东西。
你修改了你的环境或项目设置,还是其他任何东西?
你得到的编译错误是什么?
亲切的问候,
布鲁诺。
" dotnetchic" <做******** @ gmail.com>在消息中写道
news:11 ********************* @ z14g2000cwz.googlegro ups.com ...
在VS 2003中,我尝试创建一个新的VC7 MFC dll。接受所有默认值,
在添加任何代码之前,我得到编译器错误,因为wazoo必须使用此CString模板。我在移植一些代码并使用/ clr开关进行编译时遇到了同样的问题,我通过修改一段代码来解决这个问题,这段代码将一个字节转换为字符串(大约半天后找出正确的编译器选项,然后意识到我需要为项目中的每个单一源文件更改它们,我设法用
查找/替换在记事本中,但仅在通过篮球跳舞后)。但是我的
当前错误必须在默认的项目设置中,或者某个地方
?? !!因为我还没有写过一行资料。
IJW我的AS
!
TIA
In VS 2003, I try creating a new VC7 MFC dll. Accepting all defaults,
before adding ANY code, I get compiler errors out the wazoo having to
do with this CString template. I ran across the same problem in
porting some code over and compiling with the /clr switch and I
resolved that issue by modifying a section of code that was typecasting
a byte to a string (AFTER about a half-day of figuring out the right
compiler options, and then realizing I needed to change them for EVERY
SINGLE SOURCE FILE in the project, which I managed to accomplish with
find/replace in notepad, but only AFTER dancing through hoops). But my
current errors must be in the default project settings, or somewhere
??!! Because I haven''t written a single line of source yet.
IJW my AS$ !
TIA
!
TIA
I just added a new MFC dll project to a VS2003 solution, accepted the
defaults (no automation, no sockets, using MFC in a shared dll).
everything builds without a problem.
No CString errors or anything.
did you modify your environment or project settings, or anything else?
what are the compiler errors you get?
kind regards,
Bruno.
"dotnetchic" <do********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...In VS 2003, I try creating a new VC7 MFC dll. Accepting all defaults,
before adding ANY code, I get compiler errors out the wazoo having to
do with this CString template. I ran across the same problem in
porting some code over and compiling with the /clr switch and I
resolved that issue by modifying a section of code that was typecasting
a byte to a string (AFTER about a half-day of figuring out the right
compiler options, and then realizing I needed to change them for EVERY
SINGLE SOURCE FILE in the project, which I managed to accomplish with
find/replace in notepad, but only AFTER dancing through hoops). But my
current errors must be in the default project settings, or somewhere
??!! Because I haven''t written a single line of source yet.
IJW my AS
!
TIA
这篇关于是什么赋予了? cstring模板问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!