Page 1 of 1

PostPosted: Wed Jun 04, 2003 9:13 am
by Hark0

I have finished my game (topic post in Made with PocketC)...

You can view and download demo version at:
Totally writted in my iPaq (more than 30 DIN A-4 pages). [:p]

Well, I distribute my game with the files:

-APP and all files necessary for the game

AND (this is the question):


My idea is follows:

I renamed the applet (APP) to KLNX: (klonycs.klnx)
I added to CAB file (for registry PDA) the follow lines:

HKCR,"klnx_applet","Default",0x00000000,"Klonycs App"
HKCR,"klnx_applet\Shell\Open\Command","Default",0x00000000,"""%%InstallDir%%\pcshell.exe"" %%1"

I think this is the best method for install PocketC software's. For 3 reasons:

1.- You don't need to install PocketC runtimes.... Are in the Install.
2.- If you already have PocketC, my EXE's don't REPLACE your files.
3.- When uninstall, only delete MY files.


What are the minimum files are necesaries for RUN applets???


I think only pcshell.exe (200 kb)


Thanks in advance, Hark0

PostPosted: Fri Jun 06, 2003 12:19 pm
by guy
To run a PocketC V3 applet you need pcshell.exe. If you are using IR then you need pcknet.dll.

Easiest is to install the runtime files with the share flag set, so they are only deleted when all applications that installed them are uninstalled:

copyfiles section for INF:


addreg section:

HKCR, ".app", "Default", 0x00000000, pktc_appfile
HKCR, "pktc_appfile", "Default", 0x00000000, pcapp
HKCR, "pktc_appfile\DefaultIcon", "Default", 0x00000000, "%CE2%\pcshell.exe,-112"
HKCR, "pktc_appfile\Shell\Open\Command", "Default", 0x00000000, """%CE2%\pcshell.exe"" %%1"

PocketC CE API interface:
PCForm and CE API forum:

PostPosted: Fri Jun 06, 2003 12:25 pm
by guy
You also have to be aware that the compiler installation puts the runtime in the compiler directory whereas the runtime installation puts the runtime in the windows directory.

If you want to support multiple platforms then I recommend you download the CEAPI kit builder distribution (link below) which has all of the runtimes for all platforms and versions of CE and has an INF file ready set up to plug an application in.

The version on the web has a problem with the ceplatform section in that it doesn't correctly distinguish between PocketPC and PocketPC2002, but this is easy to fix.

PocketC CE API interface:
PCForm and CE API forum:

PostPosted: Tue Jun 10, 2003 6:39 pm
by Hark0
Ok Guy, thanks for you info....

But... Only PCSHELL.EXE???

PCSHELLV2.EXE its no necessary?

Thanks in advance for you help.


PostPosted: Fri Jun 13, 2003 8:06 pm
by shandar
just wondering.. where did you get the pkcnet dll?

PostPosted: Mon Jun 23, 2003 7:12 am
by guy
It's in only one of the compiler or runtime download. I can't remember which.

You only need pcshellv2.exe to support applications compiled with the PocketC V2 compiler.

PocketC CE API interface:
PCForm and CE API forum: