i trying to find the simpliest examples of source codes for PocketPC
i'm new in programing but "Hello World " aplication in SDK was kinda
complicated for me

Re: simpliest program on PocketPC by Gernot

Gernot
Thu Jul 29 06:52:50 CDT 2004


"haf" <token@net.hr> schrieb im Newsbeitrag
news:ceabik$6i3$1@gaudi2.UGent.be...
> i trying to find the simpliest examples of source codes for PocketPC
> i'm new in programing but "Hello World " aplication in SDK was kinda
> complicated for me
>
>

#include <windows.h>
int WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, int)
{
MessageBox(NULL, "Test", "Hello World", MB_OK );
return 0;
}



--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com



Re: simpliest program on PocketPC by haf

haf
Thu Jul 29 07:00:27 CDT 2004

i'm getting error
fatal error C1010: unexpected end of file while looking for precompiled
header directive


> #include <windows.h>
> int WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, int)
> {
> MessageBox(NULL, "Test", "Hello World", MB_OK );
> return 0;
> }



Re: simpliest program on PocketPC by Gernot

Gernot
Thu Jul 29 08:54:57 CDT 2004


"haf" <token@net.hr> schrieb im Newsbeitrag
news:ceamf1$ae9$1@gaudi2.UGent.be...
> i'm getting error
> fatal error C1010: unexpected end of file while looking for
precompiled
> header directive

New to Visual Studio, huh?

Easy way:
#include "stdafx.h"

Advanced way:
Project Options/C,C++/Precompiled Headers ...

-Gernot



Re: simpliest program on PocketPC by haf

haf
Thu Jul 29 09:04:11 CDT 2004

hehe yaha.. beginner

so can you help me with writing application....
how could i start Media Player from an application...
i have to make application that reads XML file and gets a path and filename
form one of the attributes and i have to start media player playing avi
movie

can you help me with this media player part?

"Gernot Frisch" <Me@Privacy.net> wrote in message
news:2msdriFq6s89U1@uni-berlin.de...
>
> "haf" <token@net.hr> schrieb im Newsbeitrag
> news:ceamf1$ae9$1@gaudi2.UGent.be...
> > i'm getting error
> > fatal error C1010: unexpected end of file while looking for
> precompiled
> > header directive
>
> New to Visual Studio, huh?
>
> Easy way:
> #include "stdafx.h"
>
> Advanced way:
> Project Options/C,C++/Precompiled Headers ...
>
> -Gernot
>
>



Re: simpliest program on PocketPC by Gernot

Gernot
Thu Jul 29 10:17:43 CDT 2004


"haf" <token@net.hr> schrieb im Newsbeitrag
news:ceatn9$ct9$1@gaudi2.UGent.be...
> hehe yaha.. beginner
>
> so can you help me with writing application....
> how could i start Media Player from an application...
> i have to make application that reads XML file and gets a path and
filename
> form one of the attributes and i have to start media player playing
avi
> movie
>
> can you help me with this media player part?

How about:

ShellExecute(hwnd /*=NULL*/, L("open"), szMediaFilePath,
L"Pamraters??", NULL, SW_MAXIMIZED);
Honestly, I don't know if it works, but it's worth a try.
It's the same as double-cliking the file...


-Gernot




Re: simpliest program on PocketPC by Bruce

Bruce
Thu Jul 29 13:02:39 CDT 2004

Jumping with both feet huh?

You should pick up a Windows programming book, just about any will do. I
would recomend though that you pick up a Windows CE programming book -
Douglas Boling's "Programming Windows CE, Third Edition" would certainly get
you started.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"haf" <token@net.hr> wrote in message news:ceatn9$ct9$1@gaudi2.UGent.be...
> hehe yaha.. beginner
>
> so can you help me with writing application....
> how could i start Media Player from an application...
> i have to make application that reads XML file and gets a path and
filename
> form one of the attributes and i have to start media player playing avi
> movie
>
> can you help me with this media player part?
>
> "Gernot Frisch" <Me@Privacy.net> wrote in message
> news:2msdriFq6s89U1@uni-berlin.de...
> >
> > "haf" <token@net.hr> schrieb im Newsbeitrag
> > news:ceamf1$ae9$1@gaudi2.UGent.be...
> > > i'm getting error
> > > fatal error C1010: unexpected end of file while looking for
> > precompiled
> > > header directive
> >
> > New to Visual Studio, huh?
> >
> > Easy way:
> > #include "stdafx.h"
> >
> > Advanced way:
> > Project Options/C,C++/Precompiled Headers ...
> >
> > -Gernot
> >
> >
>
>



Re: simpliest program on PocketPC by haf

haf
Fri Jul 30 06:29:22 CDT 2004

Oh....
I used CreateProcess
it works..
now just have to figure out the XML part

> How about:
>
> ShellExecute(hwnd /*=NULL*/, L("open"), szMediaFilePath,
> L"Pamraters??", NULL, SW_MAXIMIZED);
> Honestly, I don't know if it works, but it's worth a try.
> It's the same as double-cliking the file...
>
>
> -Gernot
>
>
>



Re: simpliest program on PocketPC by haf

haf
Fri Jul 30 06:30:13 CDT 2004

Yeah i don't know much of Windows programming but i downloaded the book and
will read it probably
thanks

"Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
message news:u5CO$YZdEHA.212@TK2MSFTNGP12.phx.gbl...
> Jumping with both feet huh?
>
> You should pick up a Windows programming book, just about any will do. I
> would recomend though that you pick up a Windows CE programming book -
> Douglas Boling's "Programming Windows CE, Third Edition" would certainly
get
> you started.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
> "haf" <token@net.hr> wrote in message news:ceatn9$ct9$1@gaudi2.UGent.be...
> > hehe yaha.. beginner
> >
> > so can you help me with writing application....
> > how could i start Media Player from an application...
> > i have to make application that reads XML file and gets a path and
> filename
> > form one of the attributes and i have to start media player playing avi
> > movie
> >
> > can you help me with this media player part?
> >
> > "Gernot Frisch" <Me@Privacy.net> wrote in message
> > news:2msdriFq6s89U1@uni-berlin.de...
> > >
> > > "haf" <token@net.hr> schrieb im Newsbeitrag
> > > news:ceamf1$ae9$1@gaudi2.UGent.be...
> > > > i'm getting error
> > > > fatal error C1010: unexpected end of file while looking for
> > > precompiled
> > > > header directive
> > >
> > > New to Visual Studio, huh?
> > >
> > > Easy way:
> > > #include "stdafx.h"
> > >
> > > Advanced way:
> > > Project Options/C,C++/Precompiled Headers ...
> > >
> > > -Gernot
> > >
> > >
> >
> >
>
>



Re: simpliest program on PocketPC by Vige1000

Vige1000
Fri Jul 30 07:19:02 CDT 2004

hello haf,

maybe you can post a link to the book, or where did you get it?

thy

"haf" wrote:

> Yeah i don't know much of Windows programming but i downloaded the book and
> will read it probably
> thanks
>
> "Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
> message news:u5CO$YZdEHA.212@TK2MSFTNGP12.phx.gbl...
> > Jumping with both feet huh?
> >
> > You should pick up a Windows programming book, just about any will do. I
> > would recomend though that you pick up a Windows CE programming book -
> > Douglas Boling's "Programming Windows CE, Third Edition" would certainly
> get
> > you started.
> >
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > beitman AT applieddata DOT net
> >
> > Applied Data Systems
> > www.applieddata.net
> > An ISO 9001:2000 Registered Company
> > Microsoft WEP Gold-level Member
> >
> >
> > "haf" <token@net.hr> wrote in message news:ceatn9$ct9$1@gaudi2.UGent.be...
> > > hehe yaha.. beginner
> > >
> > > so can you help me with writing application....
> > > how could i start Media Player from an application...
> > > i have to make application that reads XML file and gets a path and
> > filename
> > > form one of the attributes and i have to start media player playing avi
> > > movie
> > >
> > > can you help me with this media player part?
> > >
> > > "Gernot Frisch" <Me@Privacy.net> wrote in message
> > > news:2msdriFq6s89U1@uni-berlin.de...
> > > >
> > > > "haf" <token@net.hr> schrieb im Newsbeitrag
> > > > news:ceamf1$ae9$1@gaudi2.UGent.be...
> > > > > i'm getting error
> > > > > fatal error C1010: unexpected end of file while looking for
> > > > precompiled
> > > > > header directive
> > > >
> > > > New to Visual Studio, huh?
> > > >
> > > > Easy way:
> > > > #include "stdafx.h"
> > > >
> > > > Advanced way:
> > > > Project Options/C,C++/Precompiled Headers ...
> > > >
> > > > -Gernot
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>

Re: simpliest program on PocketPC by haf

haf
Fri Jul 30 07:32:07 CDT 2004

> hello haf,
>
> maybe you can post a link to the book, or where did you get it?
>
> thy
here is the link;
http://www.itebooks.net/freebooks/download/Programming%20Windows%20CE.chm



Re: simpliest program on PocketPC by Chris

Chris
Fri Jul 30 11:16:48 CDT 2004

So you have difficulties with Hello World and you want to do a Multimedia
and XML app? You might consider taking small steps rather than saving the
world on the first go....

-Chris


"haf" <token@net.hr> wrote in message news:ceatn9$ct9$1@gaudi2.UGent.be...
> hehe yaha.. beginner
>
> so can you help me with writing application....
> how could i start Media Player from an application...
> i have to make application that reads XML file and gets a path and
filename
> form one of the attributes and i have to start media player playing avi
> movie
>
> can you help me with this media player part?
>
> "Gernot Frisch" <Me@Privacy.net> wrote in message
> news:2msdriFq6s89U1@uni-berlin.de...
> >
> > "haf" <token@net.hr> schrieb im Newsbeitrag
> > news:ceamf1$ae9$1@gaudi2.UGent.be...
> > > i'm getting error
> > > fatal error C1010: unexpected end of file while looking for
> > precompiled
> > > header directive
> >
> > New to Visual Studio, huh?
> >
> > Easy way:
> > #include "stdafx.h"
> >
> > Advanced way:
> > Project Options/C,C++/Precompiled Headers ...
> >
> > -Gernot
> >
> >
>
>



Re: simpliest program on PocketPC by antispam

antispam
Fri Jul 30 17:19:44 CDT 2004

On 7/30/2004 2:32 PM, haf wrote:
> here is the link;
> http://www.itebooks.net/freebooks/download/Programming%20Windows%20CE.chm

If it is the First Edition I don't recommend it.
It is too old ;-) I recommend to use the latest second edition
(black cover).

Greets

--

Mateusz £oskot
mateusz at loskot dot net

Re: simpliest program on PocketPC by Bruce

Bruce
Fri Jul 30 19:13:13 CDT 2004

Latest is Third Edition.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups




Re: simpliest program on PocketPC by antispam

antispam
Fri Jul 30 19:19:03 CDT 2004

On 7/31/2004 2:13 AM, Bruce Eitman (eMVP) wrote:
> Latest is Third Edition.
>

Sorry, my mistake. I mean latest without any .NET,
latest concerned on C Programming in Windows CE API:

http://www.pocketpcdn.com/books/index.html#0735614431

Greets

--

Mateusz £oskot
mateusz at loskot dot net