RE: Accessing an Exe written in C (Ole/COM)

new topic     » topic index » view thread      » older message » newer message

<html><div style='background-color:'><DIV>
<P><BR><BR></P>Al, </DIV>
<P>thank you very much for your reply. Yeah, this looks very easy, even for
someone as new to Euphoria as I.</P>
<P>&nbsp;</P>
<P>Thanks again for you time,</P>
<P>&nbsp;</P>
<P>Best Regards,</P>
<P>Stephen.</P>
<P>&nbsp;</P>
<DIV></DIV>
<DIV></DIV>&gt;From: Al Getz <XAXO at AOL.COM>
<DIV></DIV>&gt;Reply-To: EUforum at topica.com 
<DIV></DIV>&gt;To: EUforum at topica.com 
<DIV></DIV>&gt;Subject: RE: Accessing an Exe written in C (Ole/COM) 
<DIV></DIV>&gt;Date: Wed, 10 Sep 2003 14:22:28 +0000 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Stephen O' Sullivan wrote: 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Hi All, 
<DIV></DIV>&gt; &gt; I am relatively new to Euphoria, so forgive me if this an
obivous
<DIV></DIV>&gt; &gt; question. 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; What I have is a Exe written in C, that I want to access in
Euphoria. I
<DIV></DIV>&gt; &gt; know how to acess the interfaces in VB. All I have to do is
add the
<DIV></DIV>&gt; &gt; reference to my project and use code, such as follows, to
call funtions
<DIV></DIV>&gt; &gt; and procedures: 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Dim MyInterFace as InterFaceName 
<DIV></DIV>&gt; &gt; ... 
<DIV></DIV>&gt; &gt; Set MyInterface=New LibName 
<DIV></DIV>&gt; &gt; MyInterFace.Procedure (params) 
<DIV></DIV>&gt; &gt; MyInterFace.Function (params) 
<DIV></DIV>&gt; &gt; ... 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Does anybody know how to do this in Euphoria? 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Thanks in advance, 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Regards, 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Stephen 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hello Stephen, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;In addition to Matts EuCom, the very next release of the 
<DIV></DIV>&gt;WinClass C++ Style Library will support Ole/COM. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Ole/COM doesnt get any simpler then this... 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Here's an example of using an interface when the system 
<DIV></DIV>&gt;is going to pass you a pointer to its IDataObject: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;include IDataObject.ew as IDO 
<DIV></DIV>&gt;atom IDO1 
<DIV></DIV>&gt;IDO1=IDO:CreateInstance() 
<DIV></DIV>&gt; --create an instance of IDataObject and call it IDO1. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;That's it! 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Once you get the systems pointer, you can then call 
<DIV></DIV>&gt;any of the methods on its IDataObject either by name 
<DIV></DIV>&gt;[ such as IDO:QueryInterface({params}) ] 
<DIV></DIV>&gt;or by using the 'stdmeth()' call, specifying its 
<DIV></DIV>&gt;function offset 
<DIV></DIV>&gt;[ such as stdmeth(0,{params}) ] 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I dont think it gets any easier then this? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I'm trying to get the next release (v1.004) out by Friday. 
<DIV></DIV>&gt;Of course it will include several fully functional demos 
<DIV></DIV>&gt;that use Ole and COM interfaces. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Take care for now, 
<DIV></DIV>&gt;Al 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;--^----------------------------------------------------------------
<DIV></DIV>&gt;This email was sent to: stephen_o__sullivan at hotmail.com 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu