Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Access C# App via Automation Server Date: Mon, 27 Mar 2017 10:43:40 +0200 Lines: 59 Message-ID: References: <3bbbb878-e8a2-456e-aed4-0c30fc11fc77@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net t9Neq5vDudAJ8r6Yhq50uQDVPhqOc/YeFkS4Ss3atpOvSs8OU= Cancel-Lock: sha1:63DCzu6ZBSgNSoJyaBsLXTjev2w= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:10352 Hi Steve, AFAIK .NET DLLs don't register with regsvr32.exe, but with regasm.exe. Personally I prefer to use SideBySide with COM-Dlls and VO, but this is another story and adds some complexity in development (but is much, much easier in distribution). Wolfgang stevedar1978@gmail.com wrote: > Hi all, > > (CAVO28) > I'm a newbie in Automation Server. > I'm developing application to Write Card for KeyLock, and I got the > SDK actually fully write in C# Dev_C_Sharp.dll > Dev_C_Sharp.tlb > From Automation Server, I have select Type Lib and successful create > the class Dev_Sharp, but I got error when access the class saying > the OLE AutoObject is not initialized, then I try to check on Init() > found: > > METHOD Init(ObjID, fROTCHECK) CLASS Dev_Sharp > SUPER:Init(ObjID, 0, .T., fROTCHECK) > SELF:_dwFuncs := 20 > SELF:_dwVars := 0 > RETURN SELF > > There is no default ObjID as I found for ReportPro: > > METHOD Init(ObjID, fROTCHECK) CLASS IRpRuntime > IF (ObjID=NIL) > ObjId := "ReportPro.Runtime.39" > ENDIF > SUPER:Init(ObjID, 0, .T., fRotCheck) > SELF:_dwFuncs := 52 > SELF:_dwVars := 0 > RETURN SELF > > The default ObjID for ReportPro is "ReportPro.Runtime.39" > > I have tried to regserver for Dev_C_Sharp.dll but failed. > But I have success to regtype for Dev_C_Sharp.tlb. > > My problem: > 1. I don't know the ObjID for Dev_Sharp > 2. I get failed to regserver for Dev_C_Sharp.dll > > Any suggestion ? > > Regards, > Steve --