Search found 1450 matches

by caseih
Jul 12, 2015 1:31
Forum: Beginners
Topic: Converting old code
Replies: 18
Views: 2116

Re: Converting old code

You're going to have to provide more details. Otherwise we're only guessing. For example, what commands don't work as documented? Are you talking about built-in functions like mids$, etc, or something else? What doesn't work about '-g'? How did you use it? What happened? What was the expected outcom...
by caseih
Jul 11, 2015 20:28
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5092

Re: C code generation

Emil_halim wrote:
marcov wrote:Only if FB a maps to C a.


sorry i did not got it , can you please explain it.


Like Marcov said, I see that your code refers to no FB variables. So in this limited case maybe it would work.
by caseih
Jul 10, 2015 14:06
Forum: Libraries
Topic: Squirrel V3.0 for FreeBASIC (32/64-bit Windows and Linux)
Replies: 20
Views: 9342

Re: Squirrel V3.0 for FreeBASIC (windows and linux)

So.... what's next, D.J.: python, php, ruby? Translating the libpython header files into FB would be excellent as I think FB is a good language for extending Python. The cool thing about using libpython is that whether you're extending Python (making a new module) or embedding Python to be a script...
by caseih
Jul 10, 2015 13:50
Forum: General
Topic: Search binary bytes in the Big arrays
Replies: 18
Views: 1306

Re: Search binary bytes in the Big arrays

Interesting example. But the ubyte cannot be set to -1! Sure it can. 255 and -1 are the same value. In fact setting unsigned values to -1 is a great way to set them to their max value without having to explicitly deal with the size of the type. -1 works for 8, 16, 32, or 64 bits. That's the beauty ...
by caseih
Jul 10, 2015 4:32
Forum: General
Topic: Search binary bytes in the Big arrays
Replies: 18
Views: 1306

Re: Search binary bytes in the Big arrays

No trying to be pedantic here, but it appears that your code snippet leaks the new tstrDescr object that's assigned to dummyStringPtr. Am I correct in this? EDIT. No it appears I'm not correct. The syntax of the New() line threw me off. Here's an attempt at making this hack more self-contained and m...
by caseih
Jul 09, 2015 4:49
Forum: General
Topic: Search binary bytes in the Big arrays
Replies: 18
Views: 1306

Re: Search binary bytes in the Big arrays

Very cool hack. Does the fact that you're overwriting the string's descriptor information cause any leaks? Will the runtime library attempt to free the ub memory inappropriately when the dummyString goes out of scope? Maybe it would be a good idea to save the string descriptor information and then r...
by caseih
Jul 08, 2015 21:40
Forum: DOS
Topic: can I make a TSR that would communicate with my DOS program?
Replies: 8
Views: 1998

Re: can I make a TSR that would communicate with my DOS prog

If you open the file in ascii read mode, the only characters to avoid are the CR and LF together, which signifies a DOS end of line character which FB will parse out. But everything else is fair game. You certainly could have a real CHR(27) in the text file. The question is, how will you edit the te...
by caseih
Jul 08, 2015 19:25
Forum: DOS
Topic: can I make a TSR that would communicate with my DOS program?
Replies: 8
Views: 1998

Re: can I make a TSR that would communicate with my DOS prog

Yes PS is a good option for many things. Given that his printers are generally connected via serial port, I expect they are specialized like bar code printers, label printers, or line printers. PS is probably not the best option for dealing with them. The OP hasn't described what kinds of print layo...
by caseih
Jul 08, 2015 16:20
Forum: Windows
Topic: linux on windows
Replies: 22
Views: 3318

Re: linux on windows

What distribution are you using? Apparently you have no C compiler installed. If you can find your distros software center search for compiler and make sure GCC gets installed. EDIT: From the snippets I see here are you using Puppy Linux? Puppy is not a mainstream distro, so things like the compiler...
by caseih
Jul 08, 2015 16:14
Forum: DOS
Topic: can I make a TSR that would communicate with my DOS program?
Replies: 8
Views: 1998

Re: can I make a TSR that would communicate with my DOS prog

The TSR solution would never work on Windows or Linux anyway, so I wonder if it's best to proceed in a different way. What are the commonalities between all the printers you will want to support? Are they all RS232? Maybe your best bet is to have a text file that describes the commands to do differe...
by caseih
Jul 07, 2015 21:01
Forum: General
Topic: Illegal mov in Assembler to UDT
Replies: 12
Views: 1010

Re: Illegal mov in Assembler to UDT

Just curious, but what operations will require assembler to implement?
by caseih
Jul 07, 2015 3:02
Forum: Beginners
Topic: No more than 8 dimensions in Array! :-(
Replies: 31
Views: 2051

Re: No more than 8 dimensions in Array! :-(

Luis Babboni wrote:Mine is A(9,3,3,3,2,9,3,3,3,2)* as integer that have, if i´m right, 9^2*3^6*2*2 bytes = 236,196 bytes = 230KB


Close. I think it would be 236196 * sizeof(integer). So 1 or 2 MB depending on 32 or 64-bit.
by caseih
Jul 06, 2015 21:59
Forum: General
Topic: Freebasic to everything
Replies: 8
Views: 1361

Re: Freebasic to everything

I started a thread in the community forum on Unicode support. I agree having unicode dynamic strings would be ideal. Unicode is complex, though. Not quite as simple as one code point per character. But it's not insurmountable, and it's necessary for the future. Unicode is both a runtime library issu...
by caseih
Jul 05, 2015 17:13
Forum: Community Discussion
Topic: C code generation
Replies: 43
Views: 5092

Re: C code generation

Maybe there could be implemented a kind of '#includeC' - statement for C - sources. But that wold be a challenge for the linker. It would be a challenge for the compiler to interpret C symbols in a FB compatible way, but not for the linker. In fact from a linker perspective nothing would change ove...
by caseih
Jul 04, 2015 23:52
Forum: DOS
Topic: Known Issues with DOSBox?
Replies: 12
Views: 3200

Re: Known Issues with DOSBox?

screen 12 seems to work fine in DOSBox.

Go to advanced search