Got to love C++.
I assume the first one you are passing the C Struct cTVTexture and want to return the values from each member of the struct?
If so the Strings are wrong. You need to pass them back as pointers to pointers. ie. define them as char** on the paramter list.
Remebmer as string in C/C++ is defined as char* so to pass a char* you need to use char**.
Then the line.
*Name=*Ha->FileName is would just be
*Name=Ha->FileName
Now in blitz remember to take the var ptr of the Byte Ptr you want to accept the string pointer into.
So when you call it should look like
..(Ha,varptr(ActiveIntVar), varptr(FileNameBytePtrVar),
Hope that helps
Doug Stastny
I assume the first one you are passing the C Struct cTVTexture and want to return the values from each member of the struct?
If so the Strings are wrong. You need to pass them back as pointers to pointers. ie. define them as char** on the paramter list.
Remebmer as string in C/C++ is defined as char* so to pass a char* you need to use char**.
Then the line.
*Name=*Ha->FileName is would just be
*Name=Ha->FileName
Now in blitz remember to take the var ptr of the Byte Ptr you want to accept the string pointer into.
So when you call it should look like
..(Ha,varptr(ActiveIntVar), varptr(FileNameBytePtrVar),
Hope that helps
Doug Stastny