August 26th, 2003, 06:54 AM
Problems using GetClassFile() to obtain word document class
I am trying to figure out how to use the GetClassFile function.
WINOLEAPI GetClassFile( LPCWSTR szFileName, CLSID* pclsid)
I do the following
CLSID* lp_doc_class = NULL;
char* lp_filename = "vcpp_programming.doc";
But i get a compile error saying
cannot convert from 'const char*' to 'unsigned short *'
What am i doing wrong?
when i try to cast the filename to unsigned short something gets messed up and GetClassFile returns an error code: 2147942487.
Can anyone tell me how to convert the error code or look up the eerror code so i know whats going on?