ok so after emailing blitz research they were kind enough to give me a work around:
Extern
Function bbHandleToObject:Object( handle )
Function bbHandleFromObject( obj:Object )
End Extern
Type MyType
Field x=1234
End Type
Local t:MyType=New MyType
Local h=bbHandleFromObject( t )
Local p:MyType=MyType( bbHandleToObject(h) )
Print p.x
Now Ive encorperated that into my code and it works but I need to do the following:
Blitz3d
Actor.ActorInstance = Object.ActorInstance(Int(SafeSplit$(Params$, 1, ",")))
now in Blitzmax I have this:
Actor:bbActorInstance = bbActorInstance(bbHandleToObject(A))
but I cannot figure out how to still use
Int(SafeSplit$(Params$, 1, ","))
Any suggestions would be great thanks
Extern
Function bbHandleToObject:Object( handle )
Function bbHandleFromObject( obj:Object )
End Extern
Type MyType
Field x=1234
End Type
Local t:MyType=New MyType
Local h=bbHandleFromObject( t )
Local p:MyType=MyType( bbHandleToObject(h) )
Print p.x
Now Ive encorperated that into my code and it works but I need to do the following:
Blitz3d
Actor.ActorInstance = Object.ActorInstance(Int(SafeSplit$(Params$, 1, ",")))
now in Blitzmax I have this:
Actor:bbActorInstance = bbActorInstance(bbHandleToObject(A))
but I cannot figure out how to still use
Int(SafeSplit$(Params$, 1, ","))
Any suggestions would be great thanks