x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

First steps with Embedded Visual C++

Shiunbird Page Icon Posted 2020-11-29 2:06 PM
#
Avatar image of Shiunbird
Subscribers
H/PC Newbie

Posts:
19
Location:
Czech Republic
Status:
Hello everyone,

I've just started to figure out how this works and I'm trying to build a Hello World, but not as a GUI application (the built-in hello world naturally works), but by just trying a classic C hello world:

#include <stdio.h>
#include <stdlib.h>

int main()
{
printf("Hello\n";
return 0;
}

When I try to build I get the following:
C:\Windows CE Tools\wce300\hpc2000\include\stdlib.h(914) : error C2065: '_JBLEN' : undeclared identifier
C:\Windows CE Tools\wce300\hpc2000\include\stdlib.h(914) : error C2057: expected constant expression
C:\Windows CE Tools\wce300\hpc2000\include\stdlib.h(914) : error C2466: cannot allocate an array of constant size 0

I was hoping that at least the included libraries would work fine out of the box.
Any suggestions?

(I am focusing now on text-only apps)

Thanks, as always. =)
 Top of the page
Shiunbird Page Icon Posted 2020-11-29 2:57 PM
#
Avatar image of Shiunbird
Subscribers
H/PC Newbie

Posts:
19
Location:
Czech Republic
Status:
Well... nothing like going through the documentation:

I added stdio.h and stdlib.h to StdAfx.h and that was it. =)
 Top of the page
Karpour Page Icon Posted 2020-11-29 3:19 PM
#
Avatar image of Karpour
Subscribers
H/PC Philosopher

Posts:
310
Location:
Austria
Status:
I'm reading the book "Sams Teach yourself Windows CE Programming in 24 hours"! Despite the cheesy title, a nice resource. It assumes you already know about Windows API programming (which I have almost 0 experience with), but the rest I can just find elsewhere
 Top of the page
hpc:factor« View previous thread · Developers Arena · View next thread »
Jump to forum:
Seconds to generate: 0.082 - Cached queries : 59 - Executed queries : 9
Server Time now is: Tuesday, 20 April 2021 - 14:41