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


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

Re: Call a managed DLL from Visual Objects

From "Jamal" <someone@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Call a managed DLL from Visual Objects
Date 2014-06-05 18:27 -0400
Organization Aioe.org NNTP Server
Message-ID <lmqqr9$mlb$1@speranza.aioe.org> (permalink)
References <f01fb04d-d9a9-441c-a3a3-1a0babc7e176@googlegroups.com>

Show all headers | View raw


Stefan,

I see you are mixing C# syntax with VO syntax. I do the same sometimes.

I never used VS 2012 to create an activex.

Anyway, in VO try inserting a control on the owner window, then place an OLE 
control and inherit from DemoActiveXCtrl, then only use:
self:oAXCtrl:CreateEmbedding("DemoActiveXCtrl.DemoActiveXCtrl") in the 
postinit( ) method.

If this does not work, it mean there is an issue with activex.

HTH,
Jamal

"Stefan Überbacher"  wrote in message 
news:f01fb04d-d9a9-441c-a3a3-1a0babc7e176@googlegroups.com...

Hi all,

I've created a simple ActiveX control (a UserControl with a Button) with 
Visual Studio 2012, registered the assembly information, generated in VO the 
OLE Control and placed it on a Window. Everything seems to be ok, but the 
control is not shown. Why is the control not showing?

method PostInit() class DemoWindow
   ...
   this.oAXCtrl := DemoActiveXCtrl{self, -1, Point{0,0} Dimension{400,200}}
   this.oAXCtrl:Hyperlabel := HyperLabel{#DemoActiveXCtrl}
   this.oAXCtrl:CreateEmbedding("DemoActiveXCtrl.DemoActiveXCtrl")
   this.oAXCtrl.InitAutoObject()
   ...


Stefan 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Call a managed DLL from Visual Objects Stefan Überbacher <info@sanosoft.com> - 2014-06-04 23:21 -0700
  Re: Call a managed DLL from Visual Objects "Jamal" <someone@example.com> - 2014-06-05 18:27 -0400
    Re: Call a managed DLL from Visual Objects Stefan Überbacher <info@sanosoft.com> - 2014-06-06 08:37 -0700

csiph-web