|
zhgwbzhd
高级用户
   
积分 506
发帖 187
注册 2005-12-4
状态 离线
|
『第 76 楼』:
使用 LLM 解释/回答一下
还是报错。不过这次倒是没有崩溃。
还是谢谢郭恒。
Still getting an error. But this time it didn't crash. Still thanks to Guo Heng.
|
|
2005-12-20 19:50 |
|
|
LiveOnLove
中级用户
  
积分 493
发帖 161
注册 2002-10-29 来自 ZHCN
状态 离线
|
|
2005-12-20 22:40 |
|
|
lyq
初级用户
 
积分 44
发帖 14
注册 2006-1-4
状态 离线
|
『第 78 楼』:
使用 LLM 解释/回答一下
郭大侠!你好好牛,美死我了!!!,我狠狠地KISS YOU
Guo Daxia! You're really awesome, it makes me so happy!!!, I'm kissing you hard
|
|
2006-1-9 10:19 |
|
|
GONGXP
初级用户
 
积分 184
发帖 31
注册 2005-3-13
状态 离线
|
『第 79 楼』:
winsail编译程序死机
使用 LLM 解释/回答一下
winsail太伟大了,但是编译的程序在那里运行,不动鼠标键盘,久了死机。是不是一定要带:
//Register Callback Function for Window
pDialog->SetTimeFc(NULL);//注册定时器回调函数
pDialog->SetDrawFc(NULL);//注册画图回调函数
pDialog->SetHelpFc(NULL);//注册帮助回调函数
pDialog->SetKeyboardFc(NULL);//注册虚拟键盘回调函数
Winsail is really great, but where does the compiled program run? If the mouse and keyboard are not moved, it freezes after a while. Does it have to bring:
//Register Callback Function for Window
pDialog->SetTimeFc(NULL);//Register timer callback function
pDialog->SetDrawFc(NULL);//Register drawing callback function
pDialog->SetHelpFc(NULL);//Register help callback function
pDialog->SetKeyboardFc(NULL);//Register virtual keyboard callback function
|
|
2006-1-21 21:15 |
|
|
coolboy163
初级用户
 
积分 176
发帖 74
注册 2005-11-7
状态 离线
|
『第 80 楼』:
使用 LLM 解释/回答一下
厉害,这个强,
不过,看不懂,嘿嘿
Wow, this is powerful,
But, I don't understand, heh heh
|
|
2006-2-16 14:45 |
|
|
firstsail
高级用户
   
积分 668
发帖 295
注册 2005-7-26 来自 广东深圳
状态 离线
|
『第 81 楼』:
使用XMS内存
使用 LLM 解释/回答一下
#include <string.h>
#include <Symbol.h>
#include <Memory.h>
extern unsigned _stklen = 50L * 1024L;
int main()
{
//建立一个默认页框为256字节
CXmsMemory mXmsMemory;
//分配一新的内存块作为新页框。页框越大,访问XMS的速度越快
BYTE* pNewBlock = new BYTE[2048];
//用户的默认页框为256字节,改变页框为2048字节
BYTE* pOldBlock = mXmsMemory.ChangeFrame(pNewBlock, 2048);
//删除老的页框
delete pOldBlock;
//分配200K字节的XMS内存
mXmsMemory.SetSize(200L, 1024L);
//增加100K的XMS内存(300 = 200 + 100)
mXmsMemory.SetSizeEx(300L, 1024L);
//将字符串“My name is LiPing!”写入以字节为单位的索引“120030L”的位置
char buf[100] = "My Name is LiPing!";
mXmsMemory.SetByteData(120030L, (BYTE *)buf, _fstrlen(buf) + 1);
//将字符串“My name is LiPing!”从以字节为单位的索引“120030L”的位置读出来
_fmemset((BYTE *)buf, 0, 100);
mXmsMemory.GetByteData(120030L, (BYTE *)buf, 100);
printf("\n S = \"%s\"", buf);
getch();
//释放已经分配的XMS内存块
mXmsMemory.FreeXms();
return(0);
}
```c
#include <string.h>
#include <Symbol.h>
#include <Memory.h>
extern unsigned _stklen = 50L * 1024L;
int main()
{
// Create a default page frame of 256 bytes
CXmsMemory mXmsMemory;
// Allocate a new memory block as a new page frame. The larger the page frame, the faster the access to XMS
BYTE* pNewBlock = new BYTE;
// The user's default page frame is 256 bytes, change the page frame to 2048 bytes
BYTE* pOldBlock = mXmsMemory.ChangeFrame(pNewBlock, 2048);
// Delete the old page frame
delete pOldBlock;
// Allocate 200K bytes of XMS memory
mXmsMemory.SetSize(200L, 1024L);
// Increase 100K of XMS memory (300 = 200 + 100)
mXmsMemory.SetSizeEx(300L, 1024L);
// Write the string "My name is LiPing!" to the position with byte - unit index "120030L"
char buf = "My Name is LiPing!";
mXmsMemory.SetByteData(120030L, (BYTE *)buf, _fstrlen(buf) + 1);
// Read the string "My name is LiPing!" from the position with byte - unit index "120030L"
_fmemset((BYTE *)buf, 0, 100);
mXmsMemory.GetByteData(120030L, (BYTE *)buf, 100);
printf("\n S = \"%s\"", buf);
getch();
// Release the allocated XMS memory block
mXmsMemory.FreeXms();
return(0);
}
```
|
|
2006-4-17 11:10 |
|
|
jawbin
高级用户
   
积分 994
发帖 444
注册 2005-1-29
状态 离线
|
『第 82 楼』:
使用 LLM 解释/回答一下
在 pcm3486 上如何使用呢

How to use it on pcm3486? ;)
|
|
2006-4-24 09:57 |
|
|
firstsail
高级用户
   
积分 668
发帖 295
注册 2005-7-26 来自 广东深圳
状态 离线
|
『第 83 楼』:
使用 LLM 解释/回答一下
在XMS模块中,全程变量int nAfxXmsStyle是控制默认分配XMS内存模式的变量。
nAfxXmsStyle = XMSMEMORY_STYLE_MORAL (=0)表示默认XMS
In the XMS module, the global variable int nAfxXmsStyle is the variable that controls the default XMS memory allocation mode.
nAfxXmsStyle = XMSMEMORY_STYLE_MORAL (=0) means the default XMS
|
|
2006-4-24 12:46 |
|
|
firstsail
高级用户
   
积分 668
发帖 295
注册 2005-7-26 来自 广东深圳
状态 离线
|
『第 84 楼』:
使用XMS内存
使用 LLM 解释/回答一下
在XMS模块中,全程变量int nAfxXmsStyle是控制默认分配XMS内存模式的变量。
nAfxXmsStyle = 0 (=XMSMEMORY_STYLE_MORAL)表示默认XMS
nAfxXmsStyle = 1 (=XMSMEMORY_STYLE_DISK)表示磁盘XMS
nAfxXmsStyle = 2 (=XMSMEMORY_STYLE_EMSCARD)表示PCM3486的扩充内存卡
如果您调用了"InitSystem()"函数,则它会分析“Config.Sys”文件的"Boot"段的“XmsStyle”键。
其实,可以调用CXmsMemory::SetXmsStyle()来改变XMS性质,必须在下面函数之前调用:
CXmsMemory::SetSize()
CXmsMemory::SetSizeEx()
CXmsMemory::MallocXms()函数
//---------------------------------------------
#include <string.h>
#include <Symbol.h>
#include <Memory.h>
extern unsigned _stklen = 50L * 1024L;
extern int nAfxXmsStyle;
int main()
{
nAfxXmsStyle = XMSMEMORY_STYLE_DISK; //用磁盘访真XMS内存
//建立一个默认页框为256字节
CXmsMemory mXmsMemory;
//分配一新的内存块作为新页框。页框越大,访问XMS的速度越快
BYTE* pNewBlock = new BYTE[2048];
//用户的默认页框为256字节,改变页框为2048字节
BYTE* pOldBlock = mXmsMemory.ChangeFrame(pNewBlock, 2048);
//删除老的页框
delete pOldBlock;
//分配200K字节的XMS内存
mXmsMemory.SetSize(200L, 1024L);
//增加100K的XMS内存(300 = 200 + 100)
mXmsMemory.SetSizeEx(300L, 1024L);
//将字符串“My name is LiPing1!”写入以字节为单位的索引“120030L”的位置
char buf[100] = "My Name is LiPing1!";
mXmsMemory.SetByteData(120030L, (BYTE *)buf, _fstrlen(buf) + 1);
//将字符串“My name is LiPing1!”从以字节为单位的索引“120030L”的位置读出来
_fmemset((BYTE *)buf, 0, 100);
mXmsMemory.GetByteData(120030L, (BYTE *)buf, 100);
printf("\n S = \"%s\"", buf);
//如果在普通PC上运行的话,可以将内存改为XMS
mXmsMemroy.FreeXms();
mXmsMemory.SetXmsStyle(XMSMEMORY_STYLE_NORMAL);//如果是PCM3486改为XMSMEMORY_STYLE_EMSCARD
mXmsMemory.SetSize(300L, 1024L);
//将字符串“My name is LiPing2!”写入以字节为单位的索引“120030L”的位置
_fmemcpy(buf, "My Name is LiPing2!");
mXmsMemory.SetByteData(120030L, (BYTE *)buf, _fstrlen(buf) + 1);
//将字符串“My name is LiPing2!”从以字节为单位的索引“120030L”的位置读出来
_fmemset((BYTE *)buf, 0, 100);
mXmsMemory.GetByteData(120030L, (BYTE *)buf, 100);
printf("\n S = \"%s\"", buf);
getch();
//释放已经分配的XMS内存块
mXmsMemory.FreeXms();
return(0);
}
In the XMS module, the global variable int nAfxXmsStyle is the variable that controls the default XMS memory allocation mode.
nAfxXmsStyle = 0 (=XMSMEMORY_STYLE_MORAL) means default XMS
nAfxXmsStyle = 1 (=XMSMEMORY_STYLE_DISK) means disk XMS
nAfxXmsStyle = 2 (=XMSMEMORY_STYLE_EMSCARD) means the extended memory card of PCM3486
If you call the "InitSystem()" function, it will analyze the "XmsStyle" key in the "Boot" section of the "Config.Sys" file.
Actually, you can call CXmsMemory::SetXmsStyle() to change the XMS property, and it must be called before the following functions:
CXmsMemory::SetSize()
CXmsMemory::SetSizeEx()
CXmsMemory::MallocXms() function
//---------------------------------------------
#include <string.h>
#include <Symbol.h>
#include <Memory.h>
extern unsigned _stklen = 50L * 1024L;
extern int nAfxXmsStyle;
int main()
{
nAfxXmsStyle = XMSMEMORY_STYLE_DISK; // Use disk emulated XMS memory
// Create a default frame with 256 bytes
CXmsMemory mXmsMemory;
// Allocate a new memory block as a new frame. The larger the frame, the faster the access to XMS
BYTE* pNewBlock = new BYTE;
// The user's default frame is 256 bytes, change the frame to 2048 bytes
BYTE* pOldBlock = mXmsMemory.ChangeFrame(pNewBlock, 2048);
// Delete the old frame
delete pOldBlock;
// Allocate 200K bytes of XMS memory
mXmsMemory.SetSize(200L, 1024L);
// Increase 100K of XMS memory (300 = 200 + 100)
mXmsMemory.SetSizeEx(300L, 1024L);
// Write the string "My name is LiPing1!" to the position with byte-based index "120030L"
char buf = "My Name is LiPing1!";
mXmsMemory.SetByteData(120030L, (BYTE *)buf, _fstrlen(buf) + 1);
// Read the string "My name is LiPing1!" from the position with byte-based index "120030L"
_fmemset((BYTE *)buf, 0, 100);
mXmsMemory.GetByteData(120030L, (BYTE *)buf, 100);
printf("\n S = \"%s\"", buf);
// If running on an ordinary PC, you can change the memory to XMS
mXmsMemroy.FreeXms();
mXmsMemory.SetXmsStyle(XMSMEMORY_STYLE_NORMAL); // If it is PCM3486, change to XMSMEMORY_STYLE_EMSCARD
mXmsMemory.SetSize(300L, 1024L);
// Write the string "My name is LiPing2!" to the position with byte-based index "120030L"
_fmemcpy(buf, "My Name is LiPing2!");
mXmsMemory.SetByteData(120030L, (BYTE *)buf, _fstrlen(buf) + 1);
// Read the string "My name is LiPing2!" from the position with byte-based index "120030L"
_fmemset((BYTE *)buf, 0, 100);
mXmsMemory.GetByteData(120030L, (BYTE *)buf, 100);
printf("\n S = \"%s\"", buf);
getch();
// Release the allocated XMS memory block
mXmsMemory.FreeXms();
return(0);
}
|
|
2006-4-24 12:58 |
|
|
LLing
新手上路

积分 2
发帖 1
注册 2006-6-3 来自 广东深圳
状态 离线
|
『第 85 楼』:
使用 LLM 解释/回答一下
好东西呀!
踏破铁鞋无觅处,得来全不费功夫!
多谢楼主的无私奉献!
What a great thing!
Having searched far and wide without finding it, now I get it without any effort!
Thanks a lot to the LZ for selfless dedication!
|
|
2006-6-3 13:25 |
|
|
firstsail
高级用户
   
积分 668
发帖 295
注册 2005-7-26 来自 广东深圳
状态 离线
|
『第 86 楼』:
使用 LLM 解释/回答一下
请问版主,如何在贴子里面插入图片?
Excuse me, moderator, how to insert pictures in the post?
|
|
2006-7-17 18:33 |
|
|
profree
中级用户
  
积分 478
发帖 132
注册 2003-7-2
状态 离线
|
『第 87 楼』:
使用 LLM 解释/回答一下
to firstsail:强烈建议你搞一个集成开发环境,就比如boywindows和qbwin之类的一样,这样就更方便了,虽然用你的程序转vc++生成的代码,可我看应该说不错, 但并不是非常好,所以如果有时间的话,强烈的建议!!!!!
to firstsail: It is strongly suggested that you create an integrated development environment, just like boywindows and qbwin, etc. This would be more convenient. Although the code generated by converting with your program to VC++, I think it is not bad, but not very good. So if you have time, a strong suggestion!!!!!
|
|
2006-7-17 22:08 |
|
|
johnsonlam
银牌会员
     阿林
积分 1410
发帖 497
注册 2004-6-28 来自 九龍,香港
状态 离线
|
『第 88 楼』:
使用 LLM 解释/回答一下
Originally posted by profree at 2006-7-17 10:08 PM:
to firstsail:强烈建议你搞一个集成开发环境,就比如boywindows和qbwin之类的一样,这样就更方便了,虽然用你的程序转vc++生成的代码,可我看应该说不� ...
Firstsail 的 介 面 真 的 棒 , 但 愿 国 内 这 些 高 手 可 以 参 与 世 界 性 的 计 划 例 如 ReactOS ... 一 方 面 不 样 微 软 剥 削 , 二 来 又 为 中 国 人 民 争 光 !
Firstsail's interface is really great. It is hoped that these domestic experts can participate in world - class projects like ReactOS... On one hand, it won't be exploited by Microsoft, and on the other hand, it will also bring honor to the Chinese people!
|

我 的 網 站 - http://optimizr.dyndns.org
|
|
2006-7-22 11:49 |
|
|
LLM545
新手上路

积分 2
发帖 1
注册 2006-7-23
状态 离线
|
『第 89 楼』:
我怎么下载不下来?请问如何下载
使用 LLM 解释/回答一下
Please provide the Chinese text that needs to be translated.
|
|
2006-7-24 09:09 |
|
|
profree
中级用户
  
积分 478
发帖 132
注册 2003-7-2
状态 离线
|
|
2006-7-25 00:44 |
|