China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-26 03:20
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » 100KB DOS Graphics Interface Development (Borland/DJGPP Library) DigestI View 41,854 Replies 111
Floor 31 Posted 2007-05-24 21:45 ·  中国 江苏 苏州 中移铁通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
Regarding the creation of the Borland C development library, I would like to consult ecurb,

I made a function to display Chinese characters and generated the library .h and the reference as follows:

#ifndef __TCCH_H__
#define __TCCH_H__

int FontColor; // Font color

int FontLocaX; // X-axis coordinate
int FontLocaY; // Y-axis coordinate

int PrintHZ(char *p);

#endif

In another .CPP, this is referenced

PrintHZ("Chinese people");

, during compilation, the following error occurs as shown in the following figure: (Note: If the file name is changed to .C, it can be compiled successfully, but it does not display. But if the function is directly copied to .cpp or .c, it is all okay)

欢迎光临happyBASIC小站:http://yxbasic.51.net
Floor 32 Posted 2007-05-24 21:45 ·  中国 江苏 苏州 中移铁通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
Regarding the creation of the Borland C development library, I would like to consult ecurb.

I made a function to display Chinese characters and generated the library.h and the reference as follows:

#ifndef __TCCH_H__
#define __TCCH_H__

int FontColor; // Font color

int FontLocaX; // X-axis coordinate
int FontLocaY; // Y-axis coordinate

int PrintHZ(char *p);

#endif

In another .CPP, this is referenced:

PrintHZ("中国人");

, during compilation, the following error occurs as shown in the picture: (Note: If the file name is changed to .C, it can be compiled successfully, but it does not display. But if the function is directly copied to .cpp or .c, it is all okay)

欢迎光临happyBASIC小站:http://yxbasic.51.net
Floor 33 Posted 2007-05-31 19:32 ·  中国 江苏 苏州 中移铁通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
Haven't updated for a long time, push it up to take a look~
欢迎光临happyBASIC小站:http://yxbasic.51.net
Floor 34 Posted 2007-06-01 18:42 ·  中国 辽宁 大连 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Due to personal hobbies, I like to use the command-line compiler instead of the development environment.
Here, a simple example is used to illustrate, hoping to be helpful for happybasic (I've been a bit busy these days, sorry)
1. First, compile the function library.
File a.c
int fun(void)
{return 0;}
File a.h
int fun(void);

bcc -c a.c
2. Create the binary library
tlib a.lib +a.obj
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 35 Posted 2007-06-04 20:59 ·  中国 海南 联通
中级用户
★★
Credits 215
Posts 105
Joined 2007-06-02 22:33
19-year member
UID 90083
Gender Male
Status Offline
Great, let's take a look below. Thanks to the楼主.
Floor 36 Posted 2007-06-08 10:43 ·  中国 河南 洛阳 教育网
初级用户
Credits 21
Posts 11
Joined 2007-06-08 09:52
19-year member
UID 90642
Gender Male
Status Offline
Thanks
Floor 37 Posted 2007-06-08 23:58 ·  中国 重庆 南岸区 电信
新手上路
Credits 16
Posts 8
Joined 2007-06-08 20:57
19-year member
UID 90716
Gender Male
Status Offline
Thanks for sharing
Floor 38 Posted 2007-06-18 07:12 ·  中国 江苏 苏州 中移铁通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
Push it up, I wonder if ecurb2006 has any latest progress?
欢迎光临happyBASIC小站:http://yxbasic.51.net
Floor 39 Posted 2007-06-23 13:29 ·  中国 辽宁 大连 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Added quit function on 2007-6-23.

void QuitWindow(HAND hd); /* hd is the HAND handle of the current window */
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 40 Posted 2007-07-07 09:20 ·  中国 山东 泰安 联通
初级用户
Credits 32
Posts 14
Joined 2007-06-14 08:57
19-year member
UID 91259
Gender Male
Status Offline
It seems that the content of the development manual is not very comprehensive. How should we use it?
Floor 41 Posted 2007-07-30 12:52 ·  中国 辽宁 大连 甘井子区 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
DOS Graphical Notepad, named X-Editor, is currently in version 0.0.1.

Based on the micro embedded GUI (http://www.ecurb2006.com).

Running Screenshots




Currently, it can implement editing in Simplified Chinese (GB2312) and English. Input method is not yet available. It will be provided in the next version.

Notepad source code, executable file, design document are packaged

Download: xedit.zip
http://www.ecurb2006.com/blog/upload/xedit.zip

Micro Embedded GUI - green - DOS 16bit version



Download: 
Local Download 1 
http://www.ecurb2006.com/blog/upload/sdk-green-4dos.zip
Local Download 2 (with a few examples)
http://www.ecurb2006.com/blog/upload/sdk-green-4dos2.zip

You can also download the Micro Embedded GUI - DOS Development Kit - Compiler - Example Code - Combination.
http://www.ecurb2006.com/blog/post/49.html
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 42 Posted 2007-07-30 12:56 ·  中国 辽宁 大连 甘井子区 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Join the application development QQ group 17440530
If you have any questions, you can email me at ecurb2006 # gmail.com
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 43 Posted 2007-07-30 12:59 ·  中国 辽宁 大连 甘井子区 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Correct CheckBox and Tab support



Make CheckBox accept keyboard operations (space) and focus response
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 44 Posted 2007-08-08 19:11 ·  中国 辽宁 大连 甘井子区 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Screen resolution: 640*480
Color: 256 colors
(ps: Some video cards may be incompatible)

The API is compatible with the 16-bit version.
Micro embedded GUI application development QQ group 17440530

For any suggestions or ideas, please send an email to ecurb2006#gmail.com
MSN: ecurb2006#hotmail.com
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 45 Posted 2007-08-11 22:38 ·  中国 辽宁 大连 沙河口区 联通
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Forum Jump: