Search found 6 matches

by thinkSJ
Wed Jan 12, 2011 1:24 am
Forum: QBASIC and QB64 Questions & Answers
Topic: About Array SHARED
Replies: 4
Views: 10585

Hi Ted: Thanks~Problem is resolved. CHAIN can share an array's buffer In Qbasic, an array include a buffer for storage data and a mangement struct to manage this buffer~ eg: ManStruct dd pDataBuf dw ... dw ... db 1 db ... dw Offset pDataBuf dw 2 dw 4 dw 0 ......... pDataBuf db 8 dup(0) That link's m...
by thinkSJ
Tue Jan 11, 2011 2:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: About Array SHARED
Replies: 4
Views: 10585

Hi Ted: Thanks for reply~! The project include 30 BAS files. My IDE is Qbasic7.1. BRUN45.EXE is not exist in that folder. I still dont know what shoud i do~ would you mail me a test project? http://www.eng.umd.edu/~nsw/ench250/qbasic.htm Here has a method to share an array, but not consort for me~ e...
by thinkSJ
Tue Jan 11, 2011 10:43 am
Forum: QBASIC and QB64 Questions & Answers
Topic: About Array SHARED
Replies: 4
Views: 10585

About Array SHARED

Hi, all :D
There is a new problem in my project:
How to access an array in other BAS file?
eg: In a.bas has following code

Code: Select all

      DIM SHARED test(10)    AS LONG
And i want to access this array in b.bas, How to do that?

Thanks for your helping~
by thinkSJ
Tue Jan 11, 2011 10:16 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic reverse Need help
Replies: 3
Views: 9649

:D
Problem was resloved~ Its a UserType-Array-Var,

Code: Select all

TYPE UserType
    a1    AS  INTEGER
    a2    AS  LONG
    a3    AS  SINGLE
END TYPE

TYPE UserArr
    pData(1)   AS UserType
END TYPE

DIM SHARED aUserData   AS UserArr

aUserData.pData(1).a1 = 1
' Now,BC does not generate B$HARY 
by thinkSJ
Thu Dec 30, 2010 3:37 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic reverse Need help
Replies: 3
Views: 9649

Hi Ted: Your link is so cool, but can not resolve my problem. I want to convert the AsmCode to relevant QBasic code. In problem1, The AsmCode written a memory address [si + 54B4h] and "si" is 5fch, in problem2 "si" is zero. If "54b4h" is a global var's address, what is ...
by thinkSJ
Tue Dec 28, 2010 11:56 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic reverse Need help
Replies: 3
Views: 9649

QBasic reverse Need help

First, sorry for my bad endlish. If you know what i say,please help me~ Thanks~ :D Here is a program maked with QBasic7.1, I reverse it by IDA Pro5.6 and found following SUB: SEG01sub11728 proc far ; CODE XREF: SEG27sub5741D+19A4P var_16 = word ptr -16h var_14 = word ptr -14h mov cx, 4 mov bx, 0 cal...