Search found 2305 matches

by srvaldez
May 29, 2007 0:39
Forum: Beginners
Topic: Icon as Bitmap
Replies: 12
Views: 2416

I used the dll in your link also the CVS gdiplus.dll.def
import lib size 476,450 bytes
size on disk 491,520 bytes
running WindowsXP SP2 latest updates, FB version 0.18 (5-18-07)
by srvaldez
May 29, 2007 0:07
Forum: General
Topic: Yes, I must do this, This is how I have to do it...
Replies: 35
Views: 6649

Stonemonkey, your select_label can be simplified to: #define select_label(store,label) asm lea store,dword Ptr[label] also, the subroutines can be after the main code if you pre-pend the label with asm, for example: #define _gosub(label) asm Call label #define _return asm ret #define...
by srvaldez
May 28, 2007 23:18
Forum: General
Topic: Yes, I must do this, This is how I have to do it...
Replies: 35
Views: 6649

your example to jump to a label that's stored in a string won't work, but here's MichaelW's way

Code: Select all

#define _gosub(label) asm Call label
#define _return asm ret

Dim As String a
a = "ThisLabel"
_gosub(ThisLabel)
sleep
end

asm ThisLabel:
Print "hi"
_return
by srvaldez
May 28, 2007 22:07
Forum: General
Topic: Yes, I must do this, This is how I have to do it...
Replies: 35
Views: 6649

then choose MichaelW solution. Why all the complexity, limitations, and slow execution just to save a few parenthesis and an “asm” in front of your labels. One of the best qualities of GOSUB-RETURN was the speed. They allowed you to execute a block of code and then return, without the overhead of a ...
by srvaldez
May 28, 2007 19:49
Forum: Beginners
Topic: Icon as Bitmap
Replies: 12
Views: 2416

thanks MichaelW, the program compiles and runs but crashes at the end, here's the output. 0 0 0 0 image/bmp 0 image/jpeg image/gif image/png 0 when I press Return key to end the program windows reports an Aplication error: The instruction "0x5ad776a3" referenced memory at "0xb96b3cdf". The memory co...
by srvaldez
May 27, 2007 23:58
Forum: Beginners
Topic: Icon as Bitmap
Replies: 12
Views: 2416

now I get a bunch of undeclared function errors C:\Program Files\FreeBASIC\examples\ico to bmp.o:fake:(.text+0x9a): undefined reference to `GdiplusStartup@12' C:\Program Files\FreeBASIC\examples\ico to bmp.o:fake:(.text+0xb1): undefined reference to `GdipLoadImageFromFile@8' C:\Program Files\FreeBAS...
by srvaldez
May 27, 2007 23:48
Forum: Beginners
Topic: Icon as Bitmap
Replies: 12
Views: 2416

perhaps but there's no import lib in my FB distribution, did a search on my HD and found the gdiplus.dll, I can make the import lib.
by srvaldez
May 27, 2007 23:26
Forum: Beginners
Topic: Icon as Bitmap
Replies: 12
Views: 2416

MichaelW, where can I find the gdiplus library? don't have it, looked at the links section but all I saw was gd, not gdiplus.
by srvaldez
May 24, 2007 2:11
Forum: Projects
Topic: FBGUI library for windows
Replies: 11
Views: 6111

thank you very much antarman :)
by srvaldez
May 22, 2007 13:53
Forum: Projects
Topic: FBGUI library for windows
Replies: 11
Views: 6111

I know this is an old thread, but wanted to know if antarman is still working on FBGUI library,
i be willing to pay for such a lib.
by srvaldez
May 21, 2007 22:25
Forum: Windows
Topic: Window Transparency
Replies: 27
Views: 6663

thanks Antoni, nice example, however to compile on latest CVS version
I had to change the first three functions to sub's (either that or specify the return type)
and comment-out Option Explicit and Option Private (or use deprecated mode)
really looking forward to more Gui examples.
by srvaldez
May 20, 2007 17:00
Forum: General
Topic: converting big-endian float32 to FB single
Replies: 18
Views: 4616

the problem was using signed integer, changing to unsigned integer fixes it.
updated my post above.
by srvaldez
May 20, 2007 14:03
Forum: General
Topic: converting big-endian float32 to FB single
Replies: 18
Views: 4616

you can use Garvan's macro using a Union 'this union type maps a single precision float to an integer 'both are 32-bits and occupy same memory. Union sng_lng As Uinteger lf As single sg End Union 'Macro by Garvan #define RVINT(n) ((n And &hff000000) Shr 24) Or ((n...
by srvaldez
May 15, 2007 4:11
Forum: Beginners
Topic: problem with #undef, #define
Replies: 5
Views: 1117

it's just a silly experiment with operator overloading, was using Stephen Moshier's qlib the solution is to substitute val by myval and #define myval accordinly. #define Mytype qfloat ' or double #if mytype=qfloat #define myval cqflt #elseif mytype=double #undef qpi #define qpi 3.1415926535897932384...

Go to advanced search