Original Post
Hello,
I have a bit of a problem when I''m developing a app, I have a function that I want to be as flexiable as possible, to this end I have designed the following system:
function(slsByte* arrayOfData,slsUInt theDefinedStructure)
using the values of theDefinedStructure Integer and a few rules in how you specfiy the format of a arrayOfData structure I can figure out what datatypes are in the structure and in what order.
My question is, how do I access this data without type casting to the structure in question(as I said I want the function to be flexible and therefor I don''t have a defined structure).
If you don''t understand what I mean, or you want something more explained, please post, this problem has been giving my headaches for quite some time now...