>Arquivo_Inix = SYS(5) + SYS(2003) + "\SISTEMA.ini" >loBIBLIO_Ini = CREATEOBJECT("arquivos_ini.dll", Arquivo_Inix) >>It returns this error message:
loBIBLIO_Ini = CREATEOBJECT("arquivos_ini.ClassNameFromThatDLL")Also keep in mind that COM server didn't accept parameters in INIT event, so you must create your own method to handle what you want. Let me explain (I hope I could)
DEFINE CLASS MyClass AS Custom OLEPUBLIC FUNCTION HandleINIFiles(lcPath AS STRING) AS String LOCAL lcRetVal lcretVal = "" IF NOT EMPTY(m.lcPath) **** do what you want to do here ENDIF RETURN lcRetval ENDDEFINEThen in other application you cold use this:
Arquivo_Inix = SYS(5) + SYS(2003) + "\SISTEMA.ini" loBIBLIO_Ini = CREATEOBJECT("arquivos_ini.MyClass") ? loBIBLIO_Ini.HandleINIFiles(m.Arquivo_Inix)