com+ dll and write to event viewer

i want to write to event viewer
1
2
3
4
5
6
7
8
oid EventLogCls::WriteError( char* msg) {
			HANDLE hes = RegisterEventSource(0, appName);
			if(hes) {
				WORD dwEventType =  EVENTLOG_ERROR_TYPE;
				ReportEvent(hes, dwEventType, 0, 0, 0, 1, 0,(const char**)&msg , 0);
				DeregisterEventSource(hes);
			}
		}


the error that i get is on the line of "ReportEvent"

error C2664: 'ReportEventW' : cannot convert parameter 8 from 'const char **' to 'LPCWSTR *'


what should be changed?
Topic archived. No new replies allowed.