Search found 4925 matches

by dodicat
Jul 21, 2018 10:25
Forum: Beginners
Topic: beginner's questions
Replies: 24
Views: 2529

Re: beginner's questions

Perhaps ron did a sancho2
by dodicat
Jul 20, 2018 20:45
Forum: Windows
Topic: How to determine is string is UTF-8 encoded
Replies: 13
Views: 239

Re: How to determine is string is UTF-8 encoded

Maybe look into the world of C code. There are plenty of discussions out there. After about five minutes I got hold of: function isutf8( byval _string as zstring ptr ) as boolean if _string = 0 then return 0 if left(*_string,2)= wchr(&hFF,&hFE) or left(*_string,2)=wchr(&hFE,&hFF) the...
by dodicat
Jul 20, 2018 17:55
Forum: Game Dev
Topic: Speed
Replies: 19
Views: 362

Re: Speed

badidea You cannot put screensync along with regulate in my above code. It renders regulate useless, you may as well omit regulate. Google speed can be maintained offline with declare function settimer alias "timeBeginPeriod"(as Ulong=1) as long declare function freetimer alias "timeE...
by dodicat
Jul 20, 2018 12:04
Forum: Game Dev
Topic: Speed
Replies: 19
Views: 362

Re: Speed

You should test your framerate offline. Google chrome is another to make sleep 1 = 1 ms Some computers are limited to about 60 fps offline (This one included) This code gives me the requested 300 fps online, but about 60 fps offline. Function Regulate(Byval MyFps As long,Byref fps As long) As long S...
by dodicat
Jul 19, 2018 17:33
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

If anyone has tested the GDI library I linked above. For #lang "fblite" I had to include byval on all the parameters. So, I suppose I should have used byval anyway for lang fb Here are the declarations suitable for fb and fblite (I also tweaked the sub truck to suit fblite #inclib "im...
by dodicat
Jul 18, 2018 21:35
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

Here is gdi code plus library file.
Thanks to member UEZ for much of the gdi work.
Compiled here with -gen gas.
(The only sure way)
http://www.mediafire.com/file/88h09094uew4yz2/images.zip

Windows only.
Should handle 8 bit png/jpeg/bmp ... also.
by dodicat
Jul 18, 2018 18:26
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

Is it car.png ?? No, the file is OK, it displays fine with another library. In case you got it running: Can you post the exe somewhere? I'd like to see how it works in the debugger. So far I have not seen a successful one, even your latest code passes Init and Load but then throws an exception. Fru...
by dodicat
Jul 18, 2018 15:56
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

Try this section. Got rid of fblite. Is it car.png ?? I have used car.png anyway, you might want to change it. #ifndef __png_library__ #define __png_library__ #inclib "pnglib2" type PNGINFO field=1 iWidth as integer ' Width of image iHeight as integer ' Height of image dwLastError as integ...
by dodicat
Jul 18, 2018 1:59
Forum: Community Discussion
Topic: Compiled reality
Replies: 20
Views: 572

Re: Compiled reality

It's the gcc team reporting a compiler error in the c code. But there is no easy clue as to what the error is in the freebasic code. To fix it as long x,y goes to the top in type udt. casieh set has it's parameter=new udt, so you don't have to pass a parameter. deltarho[] Are you using Poseidon ide ...
by dodicat
Jul 17, 2018 20:06
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

Here are .png file load/save using GDI. Mainly coded by UEZ originally. i cannot get it to work in 64 bits. But the 32 bit compiler works OK. If you have problems try pset on line 28 and point on line 55 by uncommenting #if sizeof(integer)=8 #include "windows.bi" ''declare sub CLSIDFromStr...
by dodicat
Jul 17, 2018 18:22
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 26
Views: 442

Re: Undefined reference to `PNG_LoadFile@16'

Get rid of the byvals in the include file by

#undef byval
#define byval
at the top of showpng3.bas above #lang "fblite"

But it runs with -gen gcc without changing anything.
by dodicat
Jul 17, 2018 16:36
Forum: Community Discussion
Topic: Compiled reality
Replies: 20
Views: 572

Re: Compiled reality

So compiler optimisations are to be avoided? 95 percent of the usefulness of -gcc is obliterated in a sentence by Pritchard. (For mission critical anyway) I am not disagreeing. I am a 32 bit gas fan. Anyways the gcc team are not too helpful when it comes to compiling, even bare bones. 'compile -gen ...
by dodicat
Jul 17, 2018 11:30
Forum: General
Topic: Squares
Replies: 5920
Views: 328906

Re: Squares

Thanks Albert. About one second difference foe 100000 digits. Regarding your rectangle, If a shape was drawn on the rectangle and the rectangle was re-shaped as you have described, keeping it's area the same, would the area of the shape remain the same? Within the limits of integer pixels: 'resize a...
by dodicat
Jul 14, 2018 21:52
Forum: Beginners
Topic: Does FBIDE compile differently to other IDEs ?[solved]
Replies: 11
Views: 358

Re: Does FBIDE compile differently to other IDEs ?

Thanks deltarho{} Mine is almost identical (same update I suppose). I found the fault, I had black text and black background, and have had for a few months. I changed it to a kinda aquamarine now, so every time I see it, from now on,I am reminded of what sort of twit I am. Anyway the fault with the ...
by dodicat
Jul 14, 2018 13:25
Forum: Tips and Tricks
Topic: History (a MRU type)
Replies: 6
Views: 356

Re: History (a MRU type)

There are about as many histories as rainy days in Summer. (but not this Summer so far) edit: tried using memcpy instead of looping. dim as string s(490)= _ {"__DATE__","__DATE_ISO__","__FB_64BIT__","__FB_ARGC__","__FB_ARGV__", _ "__FB_ARM__&quo...

Go to advanced search