Fadshop.net
A website for better software and better life in Internet!
   MY WEB

   Chinese URLs

   Greeting Creator

   Input Tips Everyday

   Source Code
Java Applet Games
Visit webpage in VC
M3U Music List Editor
Input Tips everyday
Combox in HTML
Self-made Screen Saver
Model of Neural Network
Display Chinese Characters
Mouse in Maze, a classic game in math
Serial Port Communication

Source Code: Display Chinese Characters in English Operation System.
 

Let's made a Small CCML for our applications


Last Pages

Here I take out matrix data of several dozens Chinese Character and save it in a new small library. It't will save space of harddrive and speed up software, because you don't have to search matrix data from the big library again.

/*MAKE Small CCML MAKE*/

main()
{FILE *zkfp, *zk1fp;
 unsigned char *s[S_NUMBER];
 int len[S_NUMBER], i, j, m;
 int qu, wei, l;
 long offset;
 int a[ZISHU], number = 0, xn;

 zk1fp = fopen("c:\xzku.dat", "wb");
 zkfp = fopen("c:\hzk16", "rb");
 if (zkfp == NULL) {printf("Can't open the cclib");
		  exit(0);
		  }
 for(i = 0; i < s_number; i++)
	{while(*s[i])
		{
		qu = *(s[i]++)-0xa0; 
		wei = *(s[i]++)-0xa0; 
		l = qu*94+wei; 
		for(j = 0; j < number&&a[j] != l; j++); 
		if(j!=number) 
			continue; 
		a[number++] = l; 
		offset = (94l*(qu-1)+(wei-1))*32l;
		fseek(zkfp, offset, SEEK_SET); 
		for(m = 0;m <32;m++) 
			putc(getc(zkfp), zk1fp);  
		}
	}
 fclose(zkfp); 
 fclose(zk1fp); 
 printf("\nOK!\n");
 }  
This is the source code to make Small Library. you can display Chinese Character using this Small Library now.
Classic Method to display Chinese Characters Visit Display Buffer to display Chinese Characters (faster) Setup a little Chinese Characters Matrix Library

   Contact Info
  User Support Sales Question Webmaster

Copyright 1998-2002 Fadshop.net, Inc. All rights reserved.