I have been using the MS Log Parser 2.0 command line utility a lot but would like to use the COM .dll file in a VB.NET project. I am fairly new to OOP and dont realy know how to register the component in my solution, could anyone help me?
This is an example ov a javascript code sample using the COM Component:
var logQuery=new ActiveXObject("MSUtil.LogQuery");
var recordSet=logQuery.Execute("SELECT * FROM <1>");
for(; !recordSet.atEnd(); recordSet.moveNext())
{
var record=recordSet.getRecord();
for(var col=0; col<recordSet.getColumnCount(); col++)
{
if(record.isNull(col))
WScript.Echo("NULL");
else
WScript.Echo(record.getValue(col));
}
}


Reply With Quote

