How to resolve this error in WinCE 06 Application?

  • Follow


Hi to my Bosses,

i created WinCE 06 sample SDK using VS2005. then i installed into my
computer.

then i created a MFC smart device application. in that i selected my
own Sample SDK, what i created before.

at that time of running the application, i am getting 4 errors.

the Errors are,

1.Error    1    error C2143: syntax error : missing ',' before '*'
C:\Program Files\Windows CE Tools\wce600\Sample_PC_WinCE06_SDK\include
\x86\malloc.h    45

1st error line is:

 (_CRTIMP _CRTNOALIAS _CRTRESTRICT __checkReturn __bcount_opt
(_Size*_Count) void * __cdecl _recalloc(__in_opt void * _Memory, __in
size_t _Count, __in size_t _Size);)


2.Error    2    error C3861: 'wcsftime': identifier not found    C:
\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include
\atltime.h    402

2nd error line is:

if (err != 0 || !_tcsftime(szBuffer, maxTimeBufferSize, pFormat,
&ptmTemp))
    {
        szBuffer[0] = '\0';
    }

3.Error    3    error C3861: 'wcsftime': identifier not found    C:
\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include
\atltime.h    429

3rd error line is:

same like 2nd .

4.Error    4    error C3861: 'wcsftime': identifier not found    C:
\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include
\atlcomtime.h    367

4th Error line is;

_tcsftime(lpszTemp, strDate.GetLength(), pFormat, &tmTemp);


please give some quick response...
mainly, i am in beginner level.

Thanks in Advance.
0
Reply eswarapandi (3) 6/23/2009 2:46:12 PM

On Tue, 23 Jun 2009 07:46:12 -0700 (PDT), pandeeswaran
<eswarapandi@gmail.com> wrote:

>Hi to my Bosses,
>
>i created WinCE 06 sample SDK using VS2005. then i installed into my
>computer.
>
>then i created a MFC smart device application. in that i selected my
>own Sample SDK, what i created before.
>
>at that time of running the application, i am getting 4 errors.

I'm pretty sure you saw these errors while compiling, not running,
your program.


>
>the Errors are,
>
>1.Error    1    error C2143: syntax error : missing ',' before '*'
>C:\Program Files\Windows CE Tools\wce600\Sample_PC_WinCE06_SDK\include
>\x86\malloc.h    45

This message points to a syntax error in your source code. More
specifically, the compiler found an asterisk (*) when expecting a
comma (,) while reading line 45 of the malloc.h file. So _you_ will
need to read your source code very carefully to find the error. Note
that the actual error may well be in a line read _before_ the line
flagged in the error message. This is especially likely for header
(.h) files that have been around and _used_ for a while (and thus not
likely to have bugs).


>
>1st error line is:
>
> (_CRTIMP _CRTNOALIAS _CRTRESTRICT __checkReturn __bcount_opt
>(_Size*_Count) void * __cdecl _recalloc(__in_opt void * _Memory, __in
>size_t _Count, __in size_t _Size);)

Not enough info for me to make sense.


>
>
>2.Error    2    error C3861: 'wcsftime': identifier not found    C:
>\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include
>\atltime.h    402

Most likely cause is that you did not include the header (.h) file
that declares wcsftime. Check the function documentation for info
about the required header file.


clipped similar samples.

>
>
>please give some quick response...
>mainly, i am in beginner level.

Compiler error message can be difficult. But if you read them
carefully and logically, you will usually be able to understand them.
You may need to take breaks to calm down and "clear your head"
(definitely an idiom, but I can't think of a good translation). And
you need to know that compiler error messages are symptoms that
sometimes show off far from the actual problem. For example, a
mismatched #ifdef/#endif may show up in a header included in a header
included in a source file, even though the actual bug is in the source
file.

>
>Thanks in Advance.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com
Useful reading (be sure to read its disclaimer first):
   http://catb.org/~esr/faqs/smart-questions.html
0
Reply r_z_aret 6/23/2009 8:20:05 PM


Thank u MR.Robert.

i got answer...

yes, we have to install VS2005 service pack1. in that these 4 errors
are cleared.

because that four are bug in VS2005 using MFC and Win32. In ATL, its
working Fine.
0
Reply pandeeswaran 6/25/2009 9:25:05 AM

2 Replies
513 Views

(page loaded in 0.051 seconds)

Similiar Articles:













7/26/2012 1:47:04 PM


Reply: