Search found 48 matches

by RyanKelly
Wed Mar 29, 2006 7:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Appending binary in QB
Replies: 5
Views: 4195

Re: combining bits

I wonder if this works in QB 4 or FreeBasic????? Nope. QB 4.5 has stronger type checking. However, you might be able to use an assembly routine in a library that treats its parameters differently than the declaration you use. In FB parameter type checking is used to facilitate function overloading.
by RyanKelly
Tue Mar 28, 2006 10:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Appending binary in QB
Replies: 5
Views: 4195

I assume you are working with little endian words and dwords. Here LowWord and HighWord are variables of the type integer. dim dwordResult as Long dim tL as Long dim tH as Long tL=LowWord tH=Highword dwordResult= (tH * 2^16) OR tL The problem here is dealing with the sign bit. This can be dealt with...
by RyanKelly
Wed Mar 22, 2006 6:51 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Wont DELETE!!!
Replies: 13
Views: 10127

I've never had this problem. Which version of windows are you running?
by RyanKelly
Sun Mar 19, 2006 7:09 am
Forum: QBASIC and QB64 Questions & Answers
Topic: CALL ABSOLUTE
Replies: 7
Views: 4196

btw... where is the bcl71efr.lib for? Stand alone run time library with error handling and floating point routines for real mode? Something like that. IF you look at a list of the run time libraries from 7.1 or VBDOS they start to make sense when you compare them to the compile options on the inter...
by RyanKelly
Sat Mar 18, 2006 8:44 pm
Forum: General Discussion
Topic: Hey, today is St. Patrick's Day
Replies: 12
Views: 7607

We're all the same color on the inside, and that's where the beer belongs.
by RyanKelly
Sat Mar 18, 2006 3:27 pm
Forum: General Discussion
Topic: 4D
Replies: 23
Views: 21244

Z!re wrote:
Nathan1993 wrote:lots of shit.
I'm just going to ignore that ignorant crap. And pretend you never said any of it nathan
You're a little cranky before mid-day. :)
by RyanKelly
Sat Mar 18, 2006 5:42 am
Forum: General Discussion
Topic: Hey, today is St. Patrick's Day
Replies: 12
Views: 7607

Tell your loved ones that green cookies are not a good thing. We can make the world a better place.
by RyanKelly
Sat Mar 18, 2006 5:39 am
Forum: QBASIC and QB64 Questions & Answers
Topic: CALL ABSOLUTE
Replies: 7
Views: 4196

Sorry... misunderstood your question the first time I read it and wasted a lot of time answering one you didn't ask... :)
by RyanKelly
Tue Mar 14, 2006 8:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: bit shifting
Replies: 11
Views: 8297

Seb, I have to apologize for an error of mine in my last response. I said that shifting over 15 bits would have the same result as shifting 0 bits, and that's really really wrong. Shifting by over fifteen bits should set the variable to 0, whereas shifting by no bits should leave the variable unchan...
by RyanKelly
Mon Mar 13, 2006 10:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: bit shifting
Replies: 11
Views: 8297

Seb, this function should work. You can drop the "%" suffix of the variable x if you've used the DEF INT statement at the module level. There might be a few ways you could speed this up, though. First, using QB's exponentiation operator "^" is pretty slow. Since this function only works for 16 bit p...
by RyanKelly
Fri Mar 10, 2006 10:01 am
Forum: General Discussion
Topic: Licenced under "my rules"
Replies: 30
Views: 21998

Nekrophidius wrote:
RyanKelly wrote:And Nek, don't tell me you've never heard of a bear bottle.
??? is a bear bottle? A bottle with a bear on it? Or in it, maybe? Do you need a blender to get the bear into the bottle?
Do you need a blender for a baby bottle?
by RyanKelly
Fri Mar 10, 2006 9:46 am
Forum: QBASIC and QB64 Questions & Answers
Topic: bit shifting
Replies: 11
Views: 8297

The important thing to remember is that shifting right by one bit position has the same effect as dividing an UNSIGNED integer by two. Shifting left one position has the same effect as multiplying an UNSIGNED integer by two. So, shifting right 4 positions can be done by dividing by 2*2*2*2= 2^4=16. ...
by RyanKelly
Thu Mar 09, 2006 12:13 am
Forum: General Discussion
Topic: Licenced under "my rules"
Replies: 30
Views: 21998

...a language never spoken by a single sole... Shoes talked back then? Damn, I missed out on all the fun... :lol: That's not exactly how I intended the pun, but at least you noticed something was out of place. Go talk to any native english kid in the age 8-20, how do they speak? They speak the way ...
by RyanKelly
Wed Mar 08, 2006 9:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: "too many files" runtime error
Replies: 2
Views: 2182

Have you tried the original program with the file handle limit set higher than 23? DOS itself keeps at least 4 file handles open at all times. I'm not sure if this is your problem, but it might be a good place to start.
by RyanKelly
Wed Mar 08, 2006 3:09 am
Forum: General Discussion
Topic: Licenced under "my rules"
Replies: 30
Views: 21998

Languages evolve. That's a curious expression. To say that a language, that is one particular language, has evolved implies that a language is itself a set of sub members, which might actually be a useful way to look at it. Historically, it is obvious that lexicons and word usage changes almost con...
by RyanKelly
Mon Mar 06, 2006 10:49 pm
Forum: General Discussion
Topic: Licenced under "my rules"
Replies: 30
Views: 21998

Z!re, I have nothing against the statistical analysis used in cryptography, but "common" and "conventional" do not amount to "proper". Not a single line of Finnegan's Wake is grammatically incorrect, but beyond single letter occurrences, it bucks every statistical average. I could believe that the a...
by RyanKelly
Mon Mar 06, 2006 10:19 pm
Forum: General Discussion
Topic: 4D
Replies: 23
Views: 21244

The notion of a "dimension" is not limited to a direction or space or any physical object. A dimension is not "real" in any conventional sense. It is a mathematical notion concerning well ordered sets. My favorite example is a bicycle, which can be considered a four dimensional object (angular posit...
by RyanKelly
Mon Mar 06, 2006 9:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: 'Fake' events
Replies: 3
Views: 2891

The "real" versus "fake" distinction in most programming areas usually breaks down along the software/hardware lines, and as operating systems have become more and more complicated, the entire issue becomes murky. Even in the case of a simple application running under DOS, however, the notion of an ...
by RyanKelly
Mon Mar 06, 2006 8:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: HOW TO READ FILE IN .DOC?
Replies: 6
Views: 4223

Horusmire, the above gaff amounts to this: Files with the extention .DOC are usually text documents save in the MS Word file format, which is proprietary. If you have documents that you would like to access that are saved in such a format, I suggest converting them to ASCII text, but you will lose m...
by RyanKelly
Sat Feb 25, 2006 6:54 pm
Forum: General Discussion
Topic: Licenced under "my rules"
Replies: 30
Views: 21998

Z!re wrote: Proper english has a sentence limit of 6 words, average word length being 4.x characters..
Was that a joke?