Re: EuCOM : Attn Matt : String Return Value
- Posted by Bernie Ryan <xotron at ?luefrog.co?> Oct 05, 2007
- 671 views
Matt Lewis wrote: > > Rad wrote: > > > > It is available for download as shareware from <a > > href="http://www.atma-software.com/1crypt/index.html">http://www.atma-software.com/1crypt/index.html</a> > > > > This is really strange. I can get all of the members to work, except for > EncryptString and DecryptString. Both of those give an error, and they > crash if you call any combination of the two multiple times. > > It all worked fine using VBA and C#. But now it gets really weird. If I > translate using Watcom (OW1.7) then it works. I tried wrapping the COM > calls and translating to a dll, then using open_dll, etc, and if I run > my onecrypt.exw using the interpreter, then it doesn't work. If I > translate it and call the dll that way, then it works. This makes no > sense to me. > > Perhaps the author could explain it. Are we (the calling application) > expected to instantiate some interface? I tend to doubt this. > > I thought that maybe there was some difference between the way it was > being called when translated vs interpreted (not that I could imagine > what that difference might be), but I figured that by putting all of > that code into a dll (i.e., eucom.ew, onecrypt.ew) that the problem > would resolve itself. But apparently not. It's a truly bizarre thing > that I can't explain. > Matt: If you look at the docs it says returns TYPE string not BSTR ? Also it has a output property of either HEX or BINARY maybe this has to be set before calling. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan