I wanted to convert string into array of bytes. How can i do that ?
Actually i wanted to read from the file and convert all that data into array of bytes .
If converted how can i obtain the size of that array ?
After obtaining array of bytes i wanted to get the pointer of type LPVOID and make it point to that array of bytes , to use the function BOOL WritePrinter(
__in HANDLE hPrinter,
__in LPVOID pBuf,
__in DWORD cbBuf,
__out LPDWORD pcWritten
);
The second argument demands pointer towards array of bytes . But i don't know any method that does this.