hi, i got problem reading a binary file using c++. here is the code:
http://pastebin.com/TPuLshZN the problem is when i call LoadMTex, i send a pointer (char* out) as the method parameter. then i put some values on the pointer (acting as an array). but when im out of the method, looping through the array in the main method, it gives me bad access. but when i call it inside the LoadMTex method, the array is copied (works properly). when you pass a pointer to a method, dont it copy the adress (pass by reference), hence if you make any value change on that, it also change the value from where the method called? anyone got hints? thanks in advance ================================= http://www.svnstrk.blogspot.com [Non-text portions of this message have been removed]
