Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Include binaries...
#21
Didn't try this one:
Code:
logodib = CreateDIBitmap( GetDC( hWnd ), byval @logoinfo->bmiHeader, _
                  CBM_INIT, byval logo + logo->bfOffBits, byval logoinfo, DIB_RGB_COLORS )

No offense, but it really looks weird to me.

BTW:
What's the difference between '.' and '->' ?
Noticed that it acts differently (even in not compiling...)

Also, don't forget to add this structure to the official BI.

Code:
type BITMAPFILEHEADER field = 1
  bfType as short
  bfSize as long
  bfReserved1 as short
  bfReserved2 as short
  bfOffBits as long
End type

Thanks for you great work :bounce:
Reply
#22
"." used to access elements in a type/struct while "->" is used to access elements in a pointer to type.

ie.

Code:
dim p as mytype ptr
dim a as mytype

p->x = 100

a.x = 100
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#23
Quote:Noticed that it acts differently (even in not compiling...)
Don't let the FBIde QuickRun menu deceive you...
FB must always be compiled to be able to run.
What FBIde does is compile to a temp file and run that temp file, erasing it afterwards.
Antoni
Reply
#24
Quote:"." used to access elements in a type/struct while "->" is used to access elements in a pointer to type.

Thank you for the explanation.
Now it's clear.

:roll:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)