OK, I've got a dll compiling ok, but it appears if you do anything with blitzstrings in the dll it crashes without an error.
Literally anything, like a simple c string to blitz string convertor.
The other functions work, it creates the aurora window fine, but as soon as it hits the CreateEntity function it bombs out. Anyone else experienced this? Know a work around? Do I have to initialize soem aspect of blitz before hand?
As it's looking like the C++ version of Aurora will just have to link directly to OgreMax.dll wrote in c++ and forego the extras wrote in blitz like blitz net optica.
Literally anything, like a simple c string to blitz string convertor.
Function cToStr:String( c:Byte Ptr ) Local ret:String Local j=0 Repeat Local a = c[j] If a =0 Exit EndIf ret:+Chr( a ) j:+1 Forever Return ret End Function Function AC_CreateEntity:TEntity( name:Byte Ptr )"win32" 'EXPORT Local ent:TEntity = TEntity.CreateMesh( cToStr(name) ) Return ent End Function
The other functions work, it creates the aurora window fine, but as soon as it hits the CreateEntity function it bombs out. Anyone else experienced this? Know a work around? Do I have to initialize soem aspect of blitz before hand?
As it's looking like the C++ version of Aurora will just have to link directly to OgreMax.dll wrote in c++ and forego the extras wrote in blitz like blitz net optica.