Bonjour
Je veux affichier les messages du le fichier eventlog, pour ce la jai ecrit ce code:
EventLog^ myLog = gcnew EventLog;
for each (System:iagnostics::EventLogEntry^ entree in myLog->Entries)
MessageBox::Show(entree->Message);
il y'a le meme code qui est en c#:
System.Diagnostics.EventLog eventLog1;
foreach (System.Diagnostics.EventLogEntry entree in eventLog1.Entries)
{ MessageBox.show(entree.Message);}
en c++ quand j'execute il me fais cette erreur:
An unhandled exception of type 'System.ArgumentException' occurred in System.dll
Additional information: Log property value has not been specified.
Merci beacoup

 

 
		
		 
        

 
			
			




 erreur :An unhandled exception of type
 erreur :An unhandled exception of type
				 Répondre avec citation
  Répondre avec citation 
						


 
			 
   
 



 
  
  
 
 
			
Partager