3Impact in a MAxGui window?

BlitzMax Forums/BlitzMax GUI Programming/3Impact in a MAxGui window?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It works... I need to practice more Blitzmax :)

Thanks for the quick answer it was amazing fast.

btw the fixed code is

Local w:TGadget = CreateWindow("Easy GL Cube in a GUI window", 10, 10, 1024+10, 768+10 )
Local c:TGadget = CreateCanvas(0,0,w.ClientWidth(),w.ClientHeight(),w,0)

Local hwnd:Byte Ptr=Byte Ptr(QueryGadget(c,QUERY_HWND))

If Not i3ImpactOpen(hwnd,hwnd) RuntimeError "Unable to initialize the 3Impact game engine"

If Not i3ImpactSettings(_ISETTINGS(w.ClientWidth(),w.ClientHeight(),32,False,True)) RuntimeError "Settings failed"