How do you run the demos on the PocketPC? When I go into the editor and select Open, I only see the 4 .ppl files that are in the root directory where ppl was installed. In addition, I can only browse the top level directories of my CF card. Please help!
Running The Demos
Demos? I didn't know there were any demos with the beta. What are they?
There is a directory underneath the base install called either Demo or Demos which has four samples. They are basically the same examples that are on the web site, minus the game API one. They show how to do things like using strings and linked lists and stuff.
Hi,
Yes indeed the GetOpenFileName function doesn't see the \Demos\ directory. I will install the demo files in the \My Documents\ folder in the next build, since WindowsCE doesn't allow to see files outside \My Documents\ and only supports one subdirectory.
From MSDN:
You can move the Demos\ files to \My Documents in the meantime.
Sorry for the inconvenience,
Regards,
Kornalius
Yes indeed the GetOpenFileName function doesn't see the \Demos\ directory. I will install the demo files in the \My Documents\ folder in the next build, since WindowsCE doesn't allow to see files outside \My Documents\ and only supports one subdirectory.
From MSDN:
You can have multiple subdirectories for your applications; many directory structures require subdirectories, such as links in the Communications directory at \Windows\Start Menu\Programs\Communications. However, a user does not have access to these folders. Windows CE Services exposes the file system, and by using Windows CE Services through a desktop computer, a user can create a multilevel directory on Pocket PC. However, a Pocket PC user can see that directory only if it begins in the My Documents folder, and the user cannot access more than one level of subdirectories. The shell ignores any subdirectories beyond the first.
You can move the Demos\ files to \My Documents in the meantime.
Sorry for the inconvenience,
Regards,
Kornalius
That's okay. I always wondered what the deal with the whole subdirectory thing was. Thank you for pointing out that MSDN article. If you ask me, that's pretty lame 
You could use this
http://tillanosoft.com/ce/tgetfile.html
to bypass the folder problems.
I don't quite understand their liscensing (free, but you can't distribute the dll), but PocketTV uses it.
http://tillanosoft.com/ce/tgetfile.html
to bypass the folder problems.
I don't quite understand their liscensing (free, but you can't distribute the dll), but PocketTV uses it.
I think what happens is you add tGetFile support to your project, but in order to access it, the user has to go to the tGetFile web site and download it from there. if you look on the PocketTV web site under the FAQ section, they direct you to the tGetFile web site.
Thanx fast_rx for pointing that out to me, but I don't feel like adding .dll's to the PPL core. I will look into it to add support for it in the main.ppl program. I am also going to look into adding TinySQL or something like that as a database solution for PPL. These .DLL's won't be a integral part of PPL per say.
Regards,
Kornalius
Regards,
Kornalius
For the tGetFile functionality, you could add an option like PocketTV does to say wether you want to use the standard dialog or the tGetFile dialog. In general, though, we should be able to just define .PPL files that mimic the include files for a particular DLL in order to use that functionality, right?
Yes, #declare and #declareapi are the compiler directive that should be added to the main.ppl to import functions from the tgetfile .dll.
ex: #declareapi GetOpenFileName "tgetfile.dll" GetOpenFileNameW 2 1
2 and 1 at the end defines the number of input parameters and the number of output parameters for the function GetOpenFileNameW.
Regards,
Kornalius
ex: #declareapi GetOpenFileName "tgetfile.dll" GetOpenFileNameW 2 1
2 and 1 at the end defines the number of input parameters and the number of output parameters for the function GetOpenFileNameW.
Regards,
Kornalius