Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #10351

Access C# App via Automation Server

Newsgroups comp.lang.clipper.visual-objects
Date 2017-03-26 23:33 -0700
Message-ID <3bbbb878-e8a2-456e-aed4-0c30fc11fc77@googlegroups.com> (permalink)
Subject Access C# App via Automation Server
From stevedar1978@gmail.com

Show all headers | View raw


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 — Next in thread | Find similar | Unroll thread


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