Search found 239 matches

by SebMcClouth
Wed Aug 10, 2005 5:58 am
Forum: Pete's QB Site News
Topic: QB Express Article Requests
Replies: 140
Views: 731284

So you ppl want a new article on Qbinux? Just say the word and I'll starting writing tonight!

grtz
Seb
by SebMcClouth
Wed Aug 10, 2005 2:50 am
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

What I mean is, that if I parse tmtime (not with Sec, and Min etc) to the function MkTime, can I parse it as function MkTime (tmtime)? The function is not a C-code function. DIM Months(12) AS INTEGER DIM mYear AS INTEGER DIM res AS LONG Minute = 60 Hour = 60 * Minute Day = 24 * Hour Year = 365 * Day...
by SebMcClouth
Wed Aug 10, 2005 2:34 am
Forum: News and Announcements
Topic: CHALLENGE: Timezone calculator.
Replies: 50
Views: 77083

Okay, so once again, back to the drawing table!

grtz
Seb
by SebMcClouth
Tue Aug 09, 2005 3:49 am
Forum: General Discussion
Topic: strange error
Replies: 11
Views: 14658

should I then try to LH QB/L????

grtz
Seb
by SebMcClouth
Tue Aug 09, 2005 3:40 am
Forum: General Discussion
Topic: strange error
Replies: 11
Views: 14658

After running it for 3 or 4 times, qb crashes, and dos states that EMM386 found an error... great...

grtz
Seb
by SebMcClouth
Tue Aug 09, 2005 3:21 am
Forum: General Discussion
Topic: strange error
Replies: 11
Views: 14658

strange error

After a tiny mistake: replacing sub sumfin as function sumfin, I got the message: duplicate label. Then I renamed function sumfin back to sub sumfin. Everything fine and all... NOT! I can run the program without any problem the first time. When I want to start again it states: duplicate label on eve...
by SebMcClouth
Tue Aug 09, 2005 2:23 am
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

I've tested it, and it works. Another linux mystery solved. Okay. Now I'm gonna present ya some where it has to work with and the problem I have afterwards (not with the code you supplied). Remember it's C-converted-to-QB so most of it might be wrong but I'm not a C-programmer, I can just read it a ...
by SebMcClouth
Tue Aug 09, 2005 1:36 am
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

I'm gonna keep bitleft and right in the core... you never know where it might be good for... ofcourse I'll give ya credit.

grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 4:11 pm
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

Will test is later... I copied it in the file which I'm going to test with... btw I changed BCD_TO_BIN in BCD2BIN, since qb 4.5 doesn't coop with _.

grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 4:01 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: some more questions!
Replies: 12
Views: 12401

YEah I've noticed... it stack all my memory... so I had to remove some unnecessary things... but it worked.

grtz
by SebMcClouth
Mon Aug 08, 2005 4:00 pm
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

Okay I still need some help but this is how far we got: DECLARE FUNCTION BitRight! (value!, tm) DECLARE FUNCTION BitLeft! (value!, tm) DECLARE FUNCTION BCD2BIN (val) FUNCTION BCD2BIN (VAL) '((val)=((val)&15) + ((val)>>4)*10) BCD2BIN=(val... END Function FUNCTION BitLeft (value!, tm) DIM Newval!,...
by SebMcClouth
Mon Aug 08, 2005 3:15 pm
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

You have to bring e.g 8 back to
1000 and then according to val>>4 it would 0001 or 1?

correct?

grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 3:06 pm
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

What's bit shifting?

grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 3:02 pm
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

So... what would this code be in qb?

grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 2:47 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: some more questions!
Replies: 12
Views: 12401

no solution for that? I was thinking in Linux ways: ramdrive (if you have enough mem) and hope for the best...

grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 2:33 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Real time clock access
Replies: 22
Views: 23096

Actually I already found what I needed, it's the same way linux calls it.

but thx

grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 2:28 pm
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

Okay, and what if the code is like this:

Code: Select all

#define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10)
grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 2:20 pm
Forum: General Discussion
Topic: some c code
Replies: 45
Views: 63570

some c code

Who knows some C?? I need to know what this does:

Code: Select all

((val)=((val)&15) + ((val)>>4)*10)
grtz

Seb
by SebMcClouth
Mon Aug 08, 2005 1:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Real time clock access
Replies: 22
Views: 23096

I have another question. I can get the time but how can I get the date through this:

Code: Select all

CLS
OUT &H70, 0
SEC = INP(&H71)
OUT &H70, 2
MIN = INP(&H71)
OUT &H70, 4
HOUR = INP(&H71)
PRINT HEX$(HOUR); ":";HEX$(MIN); ":";HEX$(SEC)
grtz
Seb
by SebMcClouth
Mon Aug 08, 2005 1:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Real time clock access
Replies: 22
Views: 23096

GRTZ = short for greets, an expression for a salution...

so...

Grtz
Seb