MaxGUI - what imports are needed

BlitzMax Forums/BlitzMax Programming/MaxGUI - what imports are needed

Scott Shaver(Posted 2006) [#1]
I have a program with the imports shown below that uses MaxGUI however at runtime I get an error:

Attempt to access field or method of null object

when the program calls CreateWindow. It works fine if I take out the Framework and Import lines. What imports need to be used?

Strict
Framework BRL.GlMax2D

Import BRL.Basic
Import BRL.maxgui
Import BRL.timer


Amon(Posted 2006) [#2]
what about the win32 mod? Just a guess.


Gabriel(Posted 2006) [#3]
As well as brl.maxgui, you also need the OS-specific version of MaxGUI. Which will be brl.win32maxgui if you're on windows.


Scott Shaver(Posted 2006) [#4]
Thanks guys.


EOF(Posted 2006) [#5]
<>pimp alert<>

If you get stuck again my Framework Assistant should help.


klepto2(Posted 2006) [#6]
Jim, do you have any plans to update your FA to be compatible to 1.16. For exsample : the brl.polledinput is not used by your app.

I only ask, because I heard about some people had problems with polledinput.


EOF(Posted 2006) [#7]
Sure. I'll take a look klepto2. Thanks for the heads up.

Other things worth knowing about when frame-working your code. If your app/game needs to handle external files ensure you have the loader present for them:

*.png files - BRL.PNGLoader
*.bmp files - BRL.BMPLoader
*.jpg files - BRL.JPGLoader
*.tga files - BRL.TGALoader

*.wav files - BRL.WAVLoader
*.ogg files - BRL.OGGLoader

HTTP Stream ("HTTP::whatever") - BRL.HTTPStream
IncBin ("IncBin::whatever") - BRL.RamStream