Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7457 > unrolled thread
| Started by | "Rainer Borchmann" <Rainer@Borchmann.de> |
|---|---|
| First post | 2014-11-20 15:26 +0000 |
| Last post | 2014-11-21 15:22 +0000 |
| Articles | 7 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | "Rainer Borchmann" <Rainer@Borchmann.de> |
|---|---|
| Date | 2014-11-20 15:26 +0000 |
| Subject | external DLL |
| Message-ID | <m4l17o$tml$1@speranza.aioe.org> |
hello, i am looking for some code to embedding a external DLL. did anyone has a hint for me. Thank You Rainer Borchmann
[toc] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2014-11-20 23:45 +0100 |
| Message-ID | <kers6a5rla3hh9a150llob27a5dettlfld@4ax.com> |
| In reply to | #7457 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Rainer Borchmann" <Rainer@Borchmann.de> |
|---|---|
| Date | 2014-11-21 09:41 +0000 |
| Message-ID | <m4n1bj$n89$1@speranza.aioe.org> |
| In reply to | #7460 |
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
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2014-11-21 17:23 +0100 |
| Message-ID | <5mpu6al204dcm4maah5brfrncb4u10i5b8@4ax.com> |
| In reply to | #7463 |
On Fri, 21 Nov 2014 09:41:07 +0000 (UTC), "Rainer Borchmann"
<Rainer@Borchmann.de> wrote:
Hello Rainer,
>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.
>
I gave the Vulcan sample to give you some background, but other DLL's
work the same, e.g.:
oOutlook:=Oleautoobject{"Outlook.Application"}
oMail:=oOutlook:CreateItem(0) // Create a new mail
Dick
[toc] | [prev] | [next] | [standalone]
| From | Malcolm G <malcolm-news2012delete@delete.jobstream.com> |
|---|---|
| Date | 2014-11-21 12:39 +0000 |
| Message-ID | <boGbw.945878$ac7.653573@fx15.am4> |
| In reply to | #7457 |
On 20/11/2014 15:26, Rainer Borchmann wrote: > hello, > i am looking for some code to embedding a external DLL. > did anyone has a hint for me. Are you looking for code to 1) Use an external VO DLL in a different language 2) Use a DLL in a different language from VO 3) use a VO DLL in a VO program or something else? A few thoughts 1) mainly depends on the language and may need care to make sure the VO runtime is initialised 2) _DLL 3) _DLL and/or import the generated AEF
[toc] | [prev] | [next] | [standalone]
| From | "Rainer Borchmann" <Rainer@Borchmann.de> |
|---|---|
| Date | 2014-11-21 13:07 +0000 |
| Message-ID | <m4ndf6$lu0$1@speranza.aioe.org> |
| In reply to | #7467 |
Malcolm G wrote: > On 20/11/2014 15:26, Rainer Borchmann wrote: > > hello, > > i am looking for some code to embedding a external DLL. > > did anyone has a hint for me. > > Are you looking for code to > > 1) Use an external VO DLL in a different language > > 2) Use a DLL in a different language from VO > > 3) use a VO DLL in a VO program > > or something else? > > > A few thoughts > > 1) mainly depends on the language and may need care to make sure the > VO runtime is initialised > > 2) _DLL > > 3) _DLL and/or import the generated AEF Hello, i am looking for code for this: use a dll (non VO) in VO (2.7)application on a W7 machine the crux is that i am can register this dll with: C:\Windows\SysWoW64\regsvr32 C:\App\Bin\Flpcad.dll. It seems that the VO-App is loose the connection due the app is running. so i have had the idea to (re)load the dll with vo code. It seems that i am i little stupid to understand the dll-stuff with VO. have a nice weekend Rainer
[toc] | [prev] | [next] | [standalone]
| From | Malcolm G <malcolm-news2012delete@delete.jobstream.com> |
|---|---|
| Date | 2014-11-21 15:22 +0000 |
| Message-ID | <FMIbw.1002722$rI4.127220@fx33.am4> |
| In reply to | #7468 |
On 21/11/2014 13:07, Rainer Borchmann wrote: > Malcolm G wrote: > >> On 20/11/2014 15:26, Rainer Borchmann wrote: >>> hello, >>> i am looking for some code to embedding a external DLL. >>> did anyone has a hint for me. >> >> Are you looking for code to >> >> 1) Use an external VO DLL in a different language >> >> 2) Use a DLL in a different language from VO >> >> 3) use a VO DLL in a VO program >> >> or something else? >> >> >> A few thoughts >> >> 1) mainly depends on the language and may need care to make sure the >> VO runtime is initialised >> >> 2) _DLL >> >> 3) _DLL and/or import the generated AEF > > Hello, > i am looking for code for this: > use a dll (non VO) in VO (2.7)application on a W7 machine > the crux is that i am can register > this dll with: C:\Windows\SysWoW64\regsvr32 C:\App\Bin\Flpcad.dll. > > It seems that the VO-App is loose the connection > due the app is running. so i have had the idea > to (re)load the dll with vo code. > It seems that i am i little stupid to > understand the dll-stuff with VO. > have a nice weekend > Rainer So do you want to use a DLL as a DLL or as an in process COM server? What information do you have about how to use the DLL?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web