The DLL wasn't registered because you need elevated privledge to register the COM server and it's not being granted.
>Hi,
>
>i have the following code working fine with windows xp but with windows 7 i have an error :-
>
>MFIL = "Copy file (mf1) to c:\temp\tpin2.dll"
>&MFIL
>MTYPE = 1
>MADDOK = .F.
>
>XRET = ''
>
>!/N regsvr32 /s C:\TEMP\tpin2.Dll
>xobj = Createobject('tpin2.run')
>XRET = xobj.trial(allpathes)
>Release xobj
>
>
>I have the erro on the line 7 the error:-
>
>class definition is not found
>
>any help, thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer