sublime99
March 6th, 2008, 10:41 AM
Hello,
I have a unicode app which needs to send a file name to this function. This function only accepts char *
Is there a graceful way to handle this please?
int getJFile(const wchar_t * fname, std::vector<int>* p )
{
if ((infile = fopen(fname, READ_BINARY)) == NULL) {
exit(EXIT_FAILURE);
}
/* Scan the File. */
(void) scan_File( p );
return sizeof(p);
/* All done. */
}
I have a unicode app which needs to send a file name to this function. This function only accepts char *
Is there a graceful way to handle this please?
int getJFile(const wchar_t * fname, std::vector<int>* p )
{
if ((infile = fopen(fname, READ_BINARY)) == NULL) {
exit(EXIT_FAILURE);
}
/* Scan the File. */
(void) scan_File( p );
return sizeof(p);
/* All done. */
}