Chrisfl
August 24th, 1999, 01:07 AM
How do you reference an object and then typecast the object to something else???
What i am trying to do is to pass an object to a function to be filled, ie (I need a pointer equalivant to C++) so that I can typecast a object to a byte array.
The object that I am dealing with is the PRINTER_INFO_2 class
So what i need is a method to convert an object of this type to a byte array.
Or is their an easier way of doing this kind of thing in java
Please help,
Chris
What i am trying to do is to pass an object to a function to be filled, ie (I need a pointer equalivant to C++) so that I can typecast a object to a byte array.
The object that I am dealing with is the PRINTER_INFO_2 class
So what i need is a method to convert an object of this type to a byte array.
Or is their an easier way of doing this kind of thing in java
Please help,
Chris