Please help me with Interface Stuff

BlitzMax Forums/BlitzMax Programming/Please help me with Interface Stuff

hi.
Thats not the Problem.

Type SDL_Surface 

    Field flags:Int 
                     
    Field format:Byte Ptr 
    
    Field w:Int, h:Int 
    Field pitch:Short                 
    Field __unused_align_1:Short       
    Field pixels:Byte Ptr 
    Field offset:Int 
    Field hwdata:Byte Ptr 
             
    Field clip_rect_x:Short 
    Field clip_rect_y:Short 
    Field clip_rect_w:Short 
    Field clip_rect_h:Short 

    Field unused1:Int 
    Field locked:Int 
    Field map:Byte Ptr     
    Field format_version:Int 
    Field refcount:Int             
     
End Type 


The Structur on my normal Version. But its the Same problem.........
It runs if i work with Byte Ptr and Memcopy to a Surface Instance like :
local tmp:byte ptr = SDL_SetVideoMode(..)
local ScreenSurface:SDL_Surface = new SDL_Surface
memcopy ScreenSurface,tmp,sizeof(ScreenSurface)

Works good. But not the best Solution i think.
Mfg Suco