Search found 1329 matches

by caseih
Feb 05, 2019 1:02
Forum: DOS
Topic: Shell command
Replies: 2
Views: 2250

Re: Shell command

I think you have to put the actual commands you want shell in a string, don't you? But yes that should work. And yes, shell will suspend your program's execution, run the commands you passed it, and then continue on in your program. I'm not sure how MS-DOS dealt with trying to change the very file y...
by caseih
Jan 26, 2019 4:01
Forum: General
Topic: @CODERS "Endian stuff"
Replies: 28
Views: 1485

Re: @CODERS "Endian stuff"

As I was thinking about it, I realized that there's not way to implement a pointer that can have an endian specified. Because a pointer simply points to the first byte. There's no way to make pointer arithmetic work otherwise. I believe that Albert is working on some kind of extended precision math ...
by caseih
Jan 23, 2019 7:04
Forum: General
Topic: @CODERS "Endian stuff"
Replies: 28
Views: 1485

Re: @CODERS "Endian stuff"

Your PC is probably little endian. The least significant *byte* (not digit) is stored first in memory. Now granted that's probably backwards to how most people think about numbers and how we write them. Intel must have had their reasons. I can think of maybe one or two. In short, you don't correct f...
by caseih
Jan 21, 2019 2:11
Forum: Beginners
Topic: FileExists() and FileCopy() supporting Unicode file names
Replies: 7
Views: 677

Re: FileExists() and FileCopy() supporting Unicode file names

Yes the *Microsoft* C runtime has many unicode functions out of necessity[1]. But they're definitely not part of the C standard runtime. Any function that begins with an underscore is a non-standard addition. So it works on Windows only, but it's definitely not portable to any other operating system...
by caseih
Jan 17, 2019 0:47
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 25
Views: 2306

Re: No german umlauts with libcurl

Definitely a bug in curl. The command-line curl also returns zero bytes. wget, on the other hand, retrieves the document just fine.
by caseih
Jan 11, 2019 1:05
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 2997

Re: Has anyone looked into Jai?

It is 100% too costly. Poor choice of words on my part. I'm not talking about allocating and releasing memory constantly. I'm talking about the populating of the table values. Memory could very well be statically allocated. Except for the setup time, everything else would be same performance-wise. ...
by caseih
Jan 10, 2019 5:21
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 2997

Re: Has anyone looked into Jai?

Yeah lookup tables are used a lot in game programming. Not just for jump tables. But for a lot of other things like colors, openGL triangle buffers, etc. If those are large tables they are often generated by other programs and placed in source code used in compilation. This is actually a fairly comm...
by caseih
Jan 10, 2019 1:50
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 2997

Re: Has anyone looked into Jai?

Near as I can tell Jai accomplishes very little in actual fact. It doesn't seem to really exist outside of Mr Blow's own personal computer. There's no public release of any kind as near as I can tell. If there is it isn't showing up as the first link on a google search. Unlike Go, Rust, etc. So what...
by caseih
Dec 27, 2018 15:52
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 974

Re: Select Case operating like the C 'switch'

I think GOTO would be much faster than abusing do/loop. And probably easier to read. Another idiom would be to break the case body code out into their own macros (or inline functions if FB supported that), and then just use a regular select/case and call the sequences of those macros or functions in...
by caseih
Dec 26, 2018 17:01
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 974

Re: Select Case operating like the C 'switch'

Yes the answer is, "not going to happen!" although that could be for reasons that aren't purely technical.
by caseih
Dec 26, 2018 16:54
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 974

Re: Select Case operating like the C 'switch'

The problem is you're proposing creating a new FB-like language. It certainly wouldn't be FB, and it wouldn't be able to compile FB code if select/case were changed to behave like the C switch statement. Possibly FB could add a switch statement separate from select, but this would simply add complex...
by caseih
Dec 22, 2018 1:28
Forum: Community Discussion
Topic: adding FreeBASIC to the TIOBE index
Replies: 36
Views: 2227

Re: adding FreeBASIC to the TIOBE index

Interesting, but not very plausible. Windows and MS Office are certainly not written in COBOL. Same for LibreOffice and many more popular applications. Where do you get that figure from? Windows may be wildly popular and highly visible in the PC space, but the areas where COBOL is heavily used are ...
by caseih
Dec 13, 2018 16:07
Forum: Linux
Topic: Can not find SDL, or any graphic libraries, when attempting to compile?
Replies: 9
Views: 3738

Re: Can not find SDL, or any graphic libraries, when attempting to compile?

+1 to Kuan Hsu's post. Dependent libraries are not included with the FB compiler on Linux because they are typically a standard part of the distribution and can be installed using the distro's package manager, as Kuan Hsu has so helpfully indicated. Note that if your distro is 64-bit, you'll need to...
by caseih
Nov 27, 2018 20:57
Forum: Beginners
Topic: why is val giving the wrong value?
Replies: 5
Views: 481

Re: why is val giving the wrong value?

I don't think there are any standards for encoding numbers as *text* in the real world databases and sources. Data interchange formats, or source code formats, define their own standards. So it all depends on what you're trying to read. CSS uses # as a designator for hex constants. #ab03ff for a col...
by caseih
Oct 28, 2018 1:39
Forum: General
Topic: Where have I gone wrong
Replies: 192
Views: 9468

Re: Where have I gone wrong

Just a small suggestion, grindstone. Even for trivial examples, never append user-supplied variables to a query string (internal program variables are usually fine since you the programmer can guarantee they will always contain valid data). Never ever do it. Even if you think it won't matter. Your q...

Go to advanced search