FW: MacBinary Xtraction Component 1.0

2002-05-14 Thread Lon Lentz

  Much thanks to you and Dave. I got it working. Now I just need to find some glue so 
I can stick my hair back on...


 -Original Message-
 From: Jon Hall [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 1:00 PM
 To: CF-Talk
 Subject: Re: MacBinary Xtraction Component 1.0
 
 
 Most likely it can, after looking at the source it is a very simple COM
 object that doesn't return anything that CF might choke on. The 
 key function
 is the ConvertMacFile function. In that function these two lines would be
 key, and they would look exactly the same in cfscript without the Set
 keyword, and adding semicolons.
 
 Set MacBin = CreateObject(Softwing.MacBinary)
  bRetVal = MacBin.ConvertFromMacBinary(File,strCurrentTempFile)
 

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



MacBinary Xtraction Component 1.0

2002-05-13 Thread Lon Lentz

  The guys at this site: http://www.alphasierrapapa.com/IisDev/Components/MacBinary/ , 
have come up with a C++ component for fixing MacBinary uploaded files. Being an ASP 
site, they have written an ASP page for running this component. Is there a way of 
running this component from CF?



Lon Lentz
Applications Developer and Keeper of the I.T.
http://ProofitOnline.Com - Free 15 Day Trial

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: MacBinary Xtraction Component 1.0

2002-05-13 Thread Dave Watts

   The guys at this site: 
 http://www.alphasierrapapa.com/IisDev/Components/MacBinary/ , 
 have come up with a C++ component for fixing MacBinary 
 uploaded files. Being an ASP site, they have written an ASP 
 page for running this component. Is there a way of running 
 this component from CF?

You can run many COM objects using the CFOBJECT tag and/or the CreateObject
function. Whether this specific COM object will work, I don't know; you'll
have to try it and find out.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: MacBinary Xtraction Component 1.0

2002-05-13 Thread Jon Hall

Most likely it can, after looking at the source it is a very simple COM
object that doesn't return anything that CF might choke on. The key function
is the ConvertMacFile function. In that function these two lines would be
key, and they would look exactly the same in cfscript without the Set
keyword, and adding semicolons.

Set MacBin = CreateObject(Softwing.MacBinary)
 bRetVal = MacBin.ConvertFromMacBinary(File,strCurrentTempFile)

CreateObject in VBScript does the same thing as cfscript's CreateObject. The
second line is calling the ConvertFromMacBinary method with the uploaded
filename as the first argument, and a temporary filename to write out the
actual file minus the MacBinary stuff. It goes on to overwrite the original
uploaded file with the temporary file as long as the COM object didn't
return an error.
Thanks for pointing this component out, new bookmark for me...

As a side note, that has to be the most readable VBScript I have ever seen
(still sucks though :)) . Kudos to them...

jon
- Original Message -
From: Lon Lentz [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 12:36 PM
Subject: MacBinary Xtraction Component 1.0


   The guys at this site:
http://www.alphasierrapapa.com/IisDev/Components/MacBinary/ , have come up
with a C++ component for fixing MacBinary uploaded files. Being an ASP site,
they have written an ASP page for running this component. Is there a way of
running this component from CF?




__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists