Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10352
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Access C# App via Automation Server |
| Date | 2017-03-27 10:43 +0200 |
| Message-ID | <ejs1lsF5ejeU1@mid.individual.net> (permalink) |
| References | <3bbbb878-e8a2-456e-aed4-0c30fc11fc77@googlegroups.com> |
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 --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Access C# App via Automation Server stevedar1978@gmail.com - 2017-03-26 23:33 -0700
Re: Access C# App via Automation Server "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-27 10:43 +0200
Re: Access C# App via Automation Server stevedar1978@gmail.com - 2017-03-27 03:01 -0700
Re: Access C# App via Automation Server Karl Wochele <kw@ecos-system.invalid> - 2017-04-04 08:13 +0200
Re: Access C# App via Automation Server "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-04-04 08:48 +0200
Re: Access C# App via Automation Server "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-04-04 08:52 +0200
Re: Access C# App via Automation Server "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-04-04 08:59 +0200
Re: Access C# App via Automation Server D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-04-04 12:21 +0200
Re: Access C# App via Automation Server Karl Wochele <kw@ecos-system.invalid> - 2017-04-04 13:10 +0200
csiph-web