Search found 254 matches

by codeFoil
Jan 17, 2012 1:29
Forum: DOS
Topic: Clock not correct when run in DOS
Replies: 35
Views: 4642

Re: Clock not correct when run in DOS

Have you tested this on different hardware?
by codeFoil
Jan 17, 2012 0:41
Forum: General
Topic: problem with setting the palette (solved)
Replies: 15
Views: 895

Re: problem with setting the palette

It looks like the graphics routine is emulating the color space of the VGA, which was the most advanced graphics adapter supported by Quick Basic. The VGA only supported 6 bits per color plane, so valid value for R, G, and B were from 0 to 63, and the hardware would shift that value 2 bits to the le...
by codeFoil
Jan 11, 2012 21:52
Forum: Tips and Tricks
Topic: Floyd Steinberg dithering
Replies: 12
Views: 4633

Re: Floyd Steinberg dithering

Hah! I haven't seen Lena in years.
by codeFoil
Jan 11, 2012 0:25
Forum: Documentation
Topic: CptAscii codepage correctness?
Replies: 3
Views: 1056

Re: CptAscii codepage correctness?

It might be wise to break that statement up to differentiate between console output and the graphics run time, since you are right. Character display is entirely system dependent. It might be possible to force the console into CP437 on Windows and Linux, but I imagine it would take totally different...
by codeFoil
Jan 10, 2012 2:19
Forum: Beginners
Topic: set tab character width
Replies: 6
Views: 581

Re: set tab character width

Using fxm's macro: Update: Fixed possible division by zero. REM Usage: PrintwithSoftTabs inText, [tabWidth] /' Outputs the string inText, using TAB control character to align output at tabWidth separated columns. Does not start new line. inText - String tabWidth - unsigned Integer (optional) Returns...
by codeFoil
Jan 10, 2012 1:16
Forum: Beginners
Topic: set tab character width
Replies: 6
Views: 581

Re: set tab character width

fxm, Nice soft tabs enhancement, but it has no effect on the tab character. #Define TabChr(wide) Tab(-Int(-(Pos - 1) / (wide)) * (wide) + 1) Print "1234567890123456789012345678901234567890123456789012345678901234567890123456789" Dim as String testString ="This string has a" &...
by codeFoil
Jan 08, 2012 21:17
Forum: Beginners
Topic: set tab character width
Replies: 6
Views: 581

Re: set tab character width

Is it possible to set/change the width of the tab character in graphics mode. Currently a tab character produces 5 spaces when I display it. I have looked in the various SCREENxxxx commands but don't see any parameter. Here is a kludge. REM Usage: EscapeTabs(inText, [tabWidth] ) /' Replaces TAB cha...
by codeFoil
Jan 07, 2012 0:28
Forum: Windows
Topic: How to get and display registry entries
Replies: 38
Views: 6178

Re: How to get and display registry entries

well that new piece of code (thanks codefoil) seems to have returned the following values: 234, followed by 2048 and then reg_Key_invalid and i can verify the type and value of the regkey by running regedit, amongst other programs... the key is valid and the type is reg_sz. so based on the code tha...
by codeFoil
Jan 04, 2012 1:19
Forum: Windows
Topic: How to get and display registry entries
Replies: 38
Views: 6178

Re: How to get and display registry entries

the path HKCU\Software\SPAR\Return1 does exist in the registry (i can get to the value with other methods) but when i run the new program, then i get the following error: REG_KEY_INVALID The reg key value type is REG_SZ and as you can see, it is just a standard string. what changes do i have to mak...
by codeFoil
Jan 03, 2012 21:49
Forum: Windows
Topic: How to get and display registry entries
Replies: 38
Views: 6178

Re: How to get and display registry entries

Hey Cherry, Many thanks. but im getting error's when i do the quick compile as well as the command line compile i cheked this path and the library exists there: C:\Program Files\FreeBASIC\inc\win\winreg.bi any thoughts? winreg.bi depends on type definitions declared in windef.bi . Change " win...
by codeFoil
Jan 01, 2012 4:30
Forum: General
Topic: Advice on the following code
Replies: 5
Views: 351

Re: Advice on the following code

Unless SalescreenDraw is a preprocesser macro, I also do not see how the loop inside DisplayRefusalList ever ends. If SalescreenDraw is a subroutine, and it calls DisplayRefusalList, then you are recursively reentering each routine, and never actually returning. The local context of each routine nev...
by codeFoil
Jan 01, 2012 3:54
Forum: General
Topic: help me to resolve undefined symbols
Replies: 8
Views: 590

Re: help me to resolve undefined symbols

When symbols are enclosed in a namespace, by default, the compiler alters the symbol names in the emitted assembly language file. Otherwise, the linker would not be able to differentiate between two symbols in two different name spaces. I've had this trouble when trying to encapsulate routines decla...
by codeFoil
Dec 27, 2011 1:35
Forum: Windows
Topic: How to get and display registry entries
Replies: 38
Views: 6178

the problem with the shell commmand is fixed, it appears that the comspec ev was set to: c:\windows\system32\cmd.exe /f:on /e:on so i reverted it to: c:\windows\system32\cmd.exe with no parameters, rebooted and now its working on my windows xp box. That makes sense now. The entire value of the envi...
by codeFoil
Dec 26, 2011 5:49
Forum: Windows
Topic: How to get and display registry entries
Replies: 38
Views: 6178

But perhaps you are using two different PC! ah yes, i finally got a chance to test my home pc and in windows 7, its working fine (shell "dir") works as expected. so now to find out why the work pc which is win xp, does not work. i will troubleshoot and fix. It looks like the shell routine in the Fr...

Go to advanced search