Hi,
Thanks for the help. I have it compiling, but still it's not giving me a string, so perhaps I haven't quite followed your explanation.
I changed char* to char** for both the strings I want to return. And I changed the Extern definiton to use :Byte Ptr instead of $Z ( C String )
And this is the amended calling code :
I think this must be where the problem lies. Is this not what you meant?
Thanks for the help. I have it compiling, but still it's not giving me a string, so perhaps I haven't quite followed your explanation.
I changed char* to char** for both the strings I want to return. And I changed the Extern definiton to use :Byte Ptr instead of $Z ( C String )
And this is the amended calling code :
Method PopulateType() Local NamePtr:Byte Ptr=Varptr(Name) Local FileNamePtr:Byte Ptr=Varptr(FileName) cTVTEXTURE_PopulateType(WrapperHandle,Varptr(Active),Varptr(NamePtr),Varptr(FileNamePtr),Varptr(Width),Varptr(Height),Varptr(Size),Varptr(bitdepth),Varptr(colorkeyed),Varptr(RealWidth),Varptr(RealHeight),Varptr(TextureType)) End Method
I think this must be where the problem lies. Is this not what you meant?