Todo List

* V3 Desktop:
Mouse wheel support, 
right click for copy paste,
auto download pcshell.exe,

* V3 Device: simple goal: release it.
* V3 runtime: compile for desktop to allow PocketC applet to run on the desktop.

Ready to go list:

added atexit function
reduced  compile pass back to 1 for performance
reduced the speed.app benchmark from 500 to 200 on v3 runtime.

Jan 14 2001

Published a way to create win32 dll to extend PocketC feature.

Dec 3 2000 

1. Fixed a function define bug which caused some of the old code failed to compile.
2. Compile the code written with device editor code directly.

Sept 15 2000 

fixed a nest strright()t bug.

Sept 14 2000 

Fixed polygon and polyline bug.  The problem was caused due to runtime is trying to support two different set of programs, v3 and v2.  When you passed in the pointer, the function needs to look at the correct memory to get the information.  I forgot to update these two functions.

Sept 12 2000 

Users can specify the download directory
About box shows the build number
resource id for console is set back to 40003
applet icon is set back to 112
V3 applet format modification - speed up loading process slightly. Require V3 users to recompile their applet.

August 24 2000 
take .pc off the final applet name, 
added build version in about box.
fixed __FILE__ error
fixed expression x=1- etc errors.

August 23 2000 

* V3 runtime:
Fixed fileread bug, menuoff bug, shift << and >> swap, 
Performance: virtual memory access speed up, optimized a few more instruction.
Overall speed improvement ~300%.

August 22 2000 

* Desktop edition released
* Global variable initialization routines are optimzed to reduce the lag when your program has big global variables.  This change requires you download the updated pcshell.exe to your device.
* Optimized a few inst to make the runtime slightly faster. (more optimization will be down following up)
* During compile a large program, the status will show both pass function names.

June 18 2000 
o [shell/compiler] release pocketpc version of the editor and runtime.  MenuBar show appears just like before on the top for backward compatibility issues.  It is 26 pixel lower due to the default WindowsCE bar is on the top.
o [shell] Fixed the custom icon problem by using bmp file instead of ico file.  ExtracIconEx function on CE doesnot work with ICO files directly.  If you get it working, please show me the code.
o [editor] Fixed a Palmsize PC and PocketPC only bug involves with File Dialog where files are saved with wrong extensions.  

Jan 6-May 25 2000 
o [shell/compiler] developing PocketC 3.0 runtime, desktop editor, and debugger.

Jan 6 2000 
o [shell/compiler] added drawimage function that supports jpeg,gif and bmp.  
Dec 18  1999 
o [shell] I messed up the pcshell pretty bad by forgot break statements.  Added them.

Dec 14 1999 
o [shell] Fixed COMMEVENT 12 bug.  It was mistakenly send as MemoryShort.
o [shell] Fixed commwait non-block usage and posted a sample on serial IO

Dec 09 1999 
o [shell] Added :polyline function.  check doc for detail.

Dec 06 1999 
o [shell] Added :polygon function.  check doc for detail.
o [shell] drawbitblt: added extra flags.

Dec 05 1999 
o [shell] Fixed a bug : memory is not released when free() function is called
o [shell] Fixed a bug : local string array should work properly now.
o [shell] Fixed a bug : malloc() will return 0 when you allocate a huge chunk of memory that exceed your device's memory limitation.

Nov 21 1999 
o [editor] Fixed a bug : open .pc .h file will not quit pceditor.exe on HPC Pro machines. (wierd bug that took forever to resolve.  I still don't understand how it is fixed.)
o [pcshell] Fixed a bug : regwstr() function will write the last character of your string now.
o [editor] Ln:xxx tracks of line numbers even when you move cursors.
o [editor] Fixed a bug that could lockup pceditor.exe sometime.
*Note: Certain bugs took longer to fix than the others, please keep bugging me about them.  I will do my best.  The Editor quits bug is a strange one.  It happens only to HPC Pro release version.  The debug version works fine.  It takes 20 seconds to step one line of code with remote debugging through serial connection.  Maybe I need to buy an ethernet card for my devices.  WindowsCE emulation needs some serious improvements.  It is a pure hack with a lame design.

Nov 3 1999 
o [editor] Fixed a bug : open file filter for *.h file
o [editor] Fixed a bug : error message box was blocked by the wait cursor.  The  wait cursor should disappear before the error message box appears.
o [editor] Fixed a bug : Exporting ascii files with correct extension .txt.  Now you can view it with notetaker.
o [editor] Fixed a bug : Possible fix for the line error bug for multifile build.  Need more testing and verify.

Nov 2 1999 
o [editor] Fixed a bug with define character
o [editor] Fixed a bug with regwstr's return value.  The string is correctly written but the return value is incorrect.

Nov 1 1999 
o [editor] On PPC, file extension is properly added by default.  

Oct 29 1999 
o [editor] Hopefully fixed the open file bug.  Editor quits after loading source file on certain devices.  I cannot repro on the HPC velo500.  Let me know if it is still broken.
o [shell] serial io should be half working.  I was able to send with this program.  This should keep some people busy until I can get data receive working.  My hard drive died couple days ago, and after reinstall everything, I am having a hard time to get VCCE to debug on device.  

main()
{
int i,hdl;
string buffer;
hdl = seropen(9600,"8N1C",5000);
for (i=0;i<5;i++) 
{
writebyte(hdl, 'A'); // Write byte to serial device
}
fileclose(hdl);

}

Oct 20 1999 

Oct 18 1999 
o [editor] Fixed a series of memory related bug which caused memory leaking.
o [editor] Added a status bar for line number and function prototype helper.
o [editor] When you select a Built-in function name, a button F() on the toolbar will be enabled.  Click on the F() button, function help will appear..
o [editor] Added a small manual in the Help file.  It will help first time users.
o [editor] Fixed a memory leaking bug Quick function jump.  Click On File->Status, and it will show u a list of functions in the current view.  Click on the function name, the cursor will jump to that function. 

Oct 14 1999 
o [editor] Fixed a bug which prevent 32bit number to be compiled correctly

Oct 12 1999 
o [editor] Fixed help button bug for HPC users.  Help will launch much faster now.
o [editor] rebuild and appears fixed open old file bug. 

Oct 11 1999 
o [shell] Fixed a stack reference out of range bug (keep backward compatibility)
o [editor] Online/Phone/Post Mail Sales for PocketC is ready
o [editor] Upgrade for PocketC2.0 is ready

 

Oct 10 1999 
o [editor] All-in-one installer!
o [editor] help file! Thanks for Guy's help.

Oct 8 1999 
o [shell] All-in-one installer!

Oct 6 1999 
o [editor] Fixed Auto-Save before build bug.

Oct 5 1999 
o [editor] Added a simple auto function prototype feature. Simply type the function name and ( character.  The function prototype will appear on the bottom of the screen.
o [editor] Found a bug in MFC parse command line routine.  It prevents PCeditor to be launched with file path with space.  I did a walk around fix for this bug.
o [editor] Compile will detect duplicated global, local variables.  Generate warning for duplicate defines.  
o [editor] Compile process is indicated by the current compiling function name on the status bar. 

Oct 4 1999 
o [editor] Correct a place in macro processor where causes memory leak.
o [editor] Correct a bug in switch statement handling process  where causes crashes.
o [editor] Make CAB format, and includes all help files.  You can even move help files around after installation.  Just make sure update the help path in the Preference
o [shell] Fixed some events problem to keep backward compatible.

Oct 1 1999 
o [editor] Compiler now can catch more errors.  A small editor bug prevents the compiler report errors.
o [editor] Better user interface handling for Palm-size users. The editor window will readjust its size after the tiny keyboard brings up.  The preference dialog size has also been reduced to fit on the screen.
o [shell] fileread error is finally resolved.  Thanks Guy and Ian's help.
o [editor] The editor is getting pretty smart on determine unicode and ascii files.  It checks the first couple bytes to decide if it is an unicode.  

sample code for write unicode properly:

test_writeunicode(string data)
{
int handle; 
char byte1;
char byte2;
byte1 = 0xFF;
byte2 = 0xFE;
handle = fileopen("unicode.txt",1,FILE_CREATE|FILE_READWRITE);
writebyte(handle,byte1);
writebyte(handle,byte2);
filewrite(handle,data,strlen(data)*2);
fileclose(handle);
}

Have fun!


Sept 29 1999 
o [editor] Compiler now can catch missing ; ) ] : characters in the statement. 

Sept 28 1999 
o [shell] Fixed a bug with malloc function. 

Sept 27 1999 
o [shell] cab file format which allows adding link to the start menu 
o [shell] launch by double click on the application icon

Sept 24 1999 
o [editor] Fixed a crash error when launch from command line  
o [editor] Added readbyte, writebyte etc functions.  
o [shell] Improved load application speed.  
o [shell] Fixed guigetfocus function.
o [shell] Fixed a bug in delete window.  


Sept 21 1999 
o [editor] Handles an error when you put () behind a non-int variable name.  
o [editor] Editor should not given file access errors.  
o [shell] Fixed up quit() function.
o [shell] Adjust fileread() function's length parameter to make sure it doesn't exceed the remain file length.
*Note: Installer is coming soon.

Sept 14 1999 
o [editor] improve the memory management
o [shell] Fixed rand() function
o [shell] Fixed CopyFile function to keep backward compatibility
o [shell] Added fileenum function to browse files in a folder
o [shell] Added filecopy function to replace old CopyFile.
o [shell] Added Icon support in pcshell. Now you can add an icon as the resource.
#resource 1 "fullpath.ico"  // 1 is the resource ID.  Icon file path must be full path.
o [shell] standalone application. Simply run pcshell.exe as the PocketC application browser.
o [doc] add filecopy fileenum functions

Sept 02 1999 
o [editor] Fixed float value bug.
o [editor] Fixed a compiler bug which cause some program failed to run correctly..      
o [shell] Fixed registry write integer bug

Aug 31 1999 
o [editor] Fixed sendmsg bug.
o [editor] Removed Build Fail message box since it is redundant.      
o [shell] screen refresh bug

Aug 30 1999 
o Released PCeditor II.  The program will run until 10/1/99.  screen capture 
o [shell] database and serial IO functions. Serial IO documentation is coming.  

Aug 26 1999
o [shell] One more Fixed for UI PM_CHAR message bug.
o [shell] File handles  are returned from fileopen()....
o [editor] Added more file access functions for byte, char, int datatype.
o [shell] Better/Faster Window ID management 
o [doc] Fixed some doc errors etc.

Aug 24 1999
o [shell] Fixed a UI PM_CHAR message bug. Thanks to Guy and Pascal.
o [shell] Added a new set of serial io functions
o [shell] Fixed some doc errors etc.

Aug 21 1999
o [shell] Added additional error messages than Runtime Error(). 
o [shell] UI failed to respond to users' typing due to the poor design of old guisetfocus()
o [shell] Only PocketC message events are returned from event()
o [shell] Improved guisetfocus() function.  It returns the previous control guiid.  
o [shell] Menu About should contain the build date.  The date is set  manually set, which need to be automated.

Aug 20 1999
o [shell] Large Global Array  Bug Fixed .
o [shell] event(1), getc() and waitp() don't drain batter power any more. Could someone verify it for me? I replaced the old tight loop with an elegant solution that put thread to sleep while waiting
o [shell] createctrl now actually pass exstyle into WinAPI.

Aug 19 1999
o [shell] Short Global Array Bug Fixed.
o [shell]  lbfndstr cbfndstr doc was incorrect, fixed. (doc is online).
o [shell] Single Global Variable Bug Fixed.
o [shell] editget function doesn't lose the last character any more.
o [shell] filewrite for ASCII code works.  It was writing unicode

Aug 18 1999
o [shell] String are not shrunken to half their original length any more.

Thanks for everyone's help! Keep the bugs report coming!
Thank you, Christian Ghisler and Guy Sprackland.  For your detailed bug report which made bug fix much quicker and easier.