Click here to Skip to main content
15,881,690 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
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;
}


---------- 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
Posted
Updated 24-Apr-10 3:14am
v5

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

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


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

-Saurabh
 
Share this answer
 
I even try
int main(int argc, char* argv[])


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[])
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900