Windows CE 6.0的控制台hello world应用程序中的错误 [英] Error in console hello world app for Windows CE 6.0

查看:106
本文介绍了Windows CE 6.0的控制台hello world应用程序中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用iostreams(cout)的简单CE6控制台hello world应用程序

(使用VS2005 + CE6通过New Project-> Smart Device-> Win32 Smart Device Project创建)

I have a simple CE6 console hello world app that uses iostreams (cout)

(Created using VS2005 + CE6 , via New Project->Smart Device->Win32 Smart Device Project)

#include <iostream>

using namespace std;

bool _tmain(int argc, _TCHAR* argv[])
{
 printf("% s","hii");

return true;
}



----------编译错误输出---------
1> C:\ Program Files \ Windows CE Tools \ wce600 \ MCC-5042 \ include \ ARMV4I \ malloc.h(45):错误C2143:语法错误:在``*''之前缺少``,''

1> C:\ Program Files \ Microsoft Visual Studio 8 \ VC \ ce \ include \ cwchar(75):错误C2039:``wcsftime'':不是```全局名称空间''的成员''''

1> C:\ Program Files \ Microsoft Visual Studio 8 \ VC \ ce \ include \ cwchar(75):错误C2873:"wcsftime":符号不能在使用声明中使用



谁能帮我解决问题?

谢谢



---------- compile error output ---------
1>C:\Program Files\Windows CE Tools\wce600\MCC-5042\include\ARMV4I\malloc.h(45) : error C2143: syntax error : missing '','' before ''*''

1>C:\Program Files\Microsoft Visual Studio 8\VC\ce\include\cwchar(75) : error C2039: ''wcsftime'' : is not a member of ''`global namespace''''

1>C:\Program Files\Microsoft Visual Studio 8\VC\ce\include\cwchar(75) : error C2873: ''wcsftime'' : symbol cannot be used in a using-declaration



Can anyone help me to solve the problem?

Thanks

推荐答案

我从未为CE6编程,但我想问题可能是由于TCHAR引起的.

I have never programmed for CE6 but I guess problem might be because of TCHAR.

bool main(int argc, char* argv[])



b.t.w我从未把bool看作main的返回类型,这是不是专门针对CE6?

-Saurabh



b.t.w I have never seen bool as the return type of main, is this specific to CE6?

-Saurabh


我什至尝试
I even try
int main(int argc, char* argv[])



但同样会显示这些错误.我在互联网上搜索并被罚款,要在Win CE 6.0上对Win32控制台应用程序进行编程,我必须使用



but again those error are shown. I searched on internet and fined that for programming a win32 console App on win CE 6.0 , i must use

_tmain(int argc, _TCHAR* argv[])


这篇关于Windows CE 6.0的控制台hello world应用程序中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆