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


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

Re: external DLL

From "Rainer Borchmann" <Rainer@Borchmann.de>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: external DLL
Date 2014-11-21 09:41 +0000
Organization Aioe.org NNTP Server
Message-ID <m4n1bj$n89$1@speranza.aioe.org> (permalink)
References <m4l17o$tml$1@speranza.aioe.org> <kers6a5rla3hh9a150llob27a5dettlfld@4ax.com>

Show all headers | View raw


D.J.W. van Kooten wrote:

> On Thu, 20 Nov 2014 15:26:48 +0000 (UTC), "Rainer Borchmann"
> <Rainer@Borchmann.de> wrote:
> 
> Hello Rainer,
> 
> > i am looking for some code to embedding a external DLL.
> 
> I've written a DLL in Vulcan with all kind of handy methods which can
> be programmed better (or only) in .Net . It looks like this:
> 
> BEGIN NAMESPACE IC2VulcanMethods
> [ClassInterface(ClassInterfaceType.AutoDual)];
> [Guid("487BF093-A8F9-4119-82EB-414A78FCF342")] ;
> [ComVisibleAttribute( TRUE )];
> CLASS VoVulcanClass
> PROTECT lInvalid AS LOGIC 
> 
> 	CONSTRUCTOR()
>   
> RETURN
> 
> Within that class I have written methods, e.g.:
> 
> METHOD SaveImageFromClipboard(cFile AS STRING) AS LOGIC
> 
> returning true if an image from the clipboard is saved in a temp
> directory as cFile.
> 
> Now this is how I use it from VO:
> 
> LOCAL oVulcan as Object
> oVulcan := OLEAutoObject{"IC2VulcanMethods.VOVulcanClass"}
> 	// ={Namespace.Class}
> IF oVulcan:Finit
> 	cTempFilename:=GetTempFilePath()+"test.jpg"
> 	lOk:=oVulcan:SaveImageFromClipboard(cTempFilename) ENDIF
> 
> I hope this helps you.
> 
> Dick

Hello Dick,
thanks for your help. I will test that after updating to Vulcan.
meanwhile we are running VO2.7. and for that i am loking for a solution.

Bye
Rainer

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


Thread

external DLL "Rainer Borchmann" <Rainer@Borchmann.de> - 2014-11-20 15:26 +0000
  Re: external DLL D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-11-20 23:45 +0100
    Re: external DLL "Rainer Borchmann" <Rainer@Borchmann.de> - 2014-11-21 09:41 +0000
      Re: external DLL D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-11-21 17:23 +0100
  Re: external DLL Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2014-11-21 12:39 +0000
    Re: external DLL "Rainer Borchmann" <Rainer@Borchmann.de> - 2014-11-21 13:07 +0000
      Re: external DLL Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2014-11-21 15:22 +0000

csiph-web