Search found 300 matches

by lassar
Jul 20, 2018 20:33
Forum: General
Topic: How do get libhqx-1.dll to work? (Solved)
Replies: 9
Views: 965

Re: How do get libhqx-1.dll to work?

Finally got the dll to work, but am a little disappointed with it. Doesn't seem to look as good as other hq2x programs that I have seen. #LANG "fblite" #include once "fbgfx.bi" 'DEFINT A-Z Declare function dylibsymbol ( byval libhandle as integer, symbol as string ) as any ptr DI...
by lassar
Jul 18, 2018 19:59
Forum: General
Topic: Dll compiled with language fb won't work in fblite
Replies: 2
Views: 345

Re: Dll compiled with language fb won't work in fblite

Never mind. Just figured it out.

I needed to change the declare in scale2xprogram.bas

From

Code: Select all

DECLARE SUB scale2x_32 LIB "scale2x.dll" (PTORG as any ptr, PTDST as any ptr)


TO

Code: Select all

DECLARE SUB scale2x_32 LIB "scale2x.dll" (byval PTORG as any ptr, byval PTDST as any ptr)
by lassar
Jul 18, 2018 19:47
Forum: General
Topic: Dll compiled with language fb won't work in fblite
Replies: 2
Views: 345

Dll compiled with language fb won't work in fblite

I got this code that is really bugging me. Found out the only way scale2x would work was to compile in dialect "fb". But I need to use it in dialect "fblite." So I made a dll of scale2x using dialect "fb". I can call scale2x from a program compiled using dialect "f...
by lassar
Jul 18, 2018 11:41
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Re: Undefined reference to `PNG_LoadFile@16'

The freebasic 1.05 compiler I am using is 32-bit. So the result from this code is 4? dim as integer ptr g print sizeof(g) It would probably help if you posted a complete, self-contained, compile-able example that illustrated this apparent bug. And a link to where the .bi and .a files are. Here's a ...
by lassar
Jul 18, 2018 4:00
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Re: Undefined reference to `PNG_LoadFile@16'

caseih wrote:Is the .a file and the compiler 32-bit? If the compiler was 64-bit that would make the pointers 8 bytes each.


The freebasic 1.05 compiler I am using is 32-bit.
by lassar
Jul 18, 2018 3:55
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Re: Undefined reference to `PNG_LoadFile@16'

Tried compiling one of my old programs using Pnglib on freebasic 20.0b It compiles okay, and works. Maybe I will make a dll of it. It's a shame that freebasic 1.05 is so buggy. For people that want a super fast png loader. Here is my source code. #lang "FBLITE" #include once "pnglib.b...
by lassar
Jul 18, 2018 0:58
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Bug in freebasic 1.05 compiler

There is a bug in the freebasic compiler. There are 9 declare functions in pblib2.bi And yet the compiler only complains about one of them. declare function PNG_LoadFile stdcall alias "PNG_LoadFile" (byval pPNGInfo as PNGINFO ptr, byval lpFileName as string) as integer The compiler says &q...
by lassar
Jul 17, 2018 22:53
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Re: Undefined reference to `PNG_LoadFile@16'

All I know is that older versions of freebasic could compile it.

And those compiled versions worked.
by lassar
Jul 17, 2018 20:02
Forum: Community Discussion
Topic: Fb Extended Library webpage not working.
Replies: 2
Views: 632

Fb Extended Library webpage not working.

When I go to the main Extended Library webpage, I get:

"The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression."

When do you think, we will be able to visit freebasic Extended Library webpage ?
by lassar
Jul 17, 2018 19:53
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Re: Undefined reference to `PNG_LoadFile@16'

please show code if possible or if it's an existing example then post the name of the example and where it can be found. do you have libpnglib2.a in your FreeBASIC lib folder? Yes I got static library libpnglib2.a in my freebasic/win32 folder. The code is in Pnglib.zip: Link to download This is abo...
by lassar
Jul 17, 2018 19:48
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Re: Undefined reference to `PNG_LoadFile@16'

Use D.J.Peter's, FBImage instead, its far more recent (2017). See in Libraries: FBImage static Win/Lin 32/64-bit Doing some searching on the forum, won't hurt (but prevents such useless posts). (this is the last anwer, you'll get from me ... for such simple stuff) Simple my foot. I did search forum...
by lassar
Jul 17, 2018 19:47
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Re: Undefined reference to `PNG_LoadFile@16'

dodicat wrote: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.


It compiled, but did not show the png
by lassar
Jul 17, 2018 17:16
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 2408

Undefined reference to `PNG_LoadFile@16'

I am trying to get PngLib to work. (it's done in assembly)

If I remember right, I got it to work with no problem, on older versions of freebasic.

How do I fix this problem?

Here's a link to PngLib.

Could it be, that this version of freebasic 1.05 does not like PngLib2.a?
by lassar
Jul 17, 2018 17:06
Forum: General
Topic: How do get libhqx-1.dll to work? (Solved)
Replies: 9
Views: 965

Re: How do get libhqx-1.dll to work?

I used DyLibLoad to load libhqx-1.dll , and change the parameters to by value.

Now it doesn't crash the program, but it still doesn't do anything.

For now I am giving up on this dll.

Maybe someone else can get it work.
by lassar
Jul 15, 2018 17:22
Forum: General
Topic: How do I convert TTF fonts to anti-aliased bitmap fonts?
Replies: 4
Views: 732

How do I convert TTF fonts to anti-aliased bitmap fonts?

How do I to convert TTF font to ASCII bitmap font. (16 pixels wide by 32 pixels high,
variable width, and anti-alias) ?

Does anyone know of any programs to do this?

Go to advanced search