• 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Addr object
Following with my coding therapy I'm working again with ab3 porting some of my code from ab2.
More or less is all ok but I have a little problem.

I need de address of a bitmap object to can read its attributtes.

In ab2 I do *pb.BitMap = Addr BitMap(0) but that doesn't work in ab3 nor bb2.

I add all necessary res files but the problem persist.

Any idea what is wrong?

Thanks in advance mates.
Well....I now understand the problem.
Simply if I write something like this It doesn't compile:

bm.b = 0
*pb.BitMap = Addr BitMap(bm)

Obviously if I replace BitMap(bm) with a number in the parameter It works.
The problem is that I use it within a Statement and need to pass a parameter.
Hmmm, that is a little strange, but it can be worked around with an extra line:

bm.b = 0
MyAddr.l = Addr BitMap(bm)
*pb.BitMap = MyAddr
Hey! That worked perfectly.
Thanks Daedalus. Didn't now what to do.

Gehe zu:

Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste