Tried that Dave didn't work. gave me the "java.lang.Exception: Invalid
COM object" error.

 An exception occurred when instantiating a Com object.
The cause of this exception was that:
coldfusion.runtime.com.ComObjectInstantiationException: An exception
occurred when instantiating a Com object.

Thoughts? Do they have to do anything special when creating the object
to get it to work?

jonese


On 7/5/07, Dave Watts <[EMAIL PROTECTED]> wrote:
> > Here's a small sample VB program that uses the object (which,
> > of course, has to be registered):
> >
> > Private Sub Form_Load()
> >
> >     Dim oEncrypt    As Object
> >     Dim sInput      As String
> >     Dim sOutput     As String
> >
> >     Set oEncrypt = CreateObject("CustomEncrypt.Class1")
> >
> >     sInput = "You String To Encrypt Goes Here"
> >
> >     sOutput = oEncrypt.EncodeString(sInput)
> >
> >     MsgBox "Input = " & sInput & vbCrLf & "Encoded = " &
> > sOutput & vbCrLf & "Decoded = " & oEncrypt.DecodeString(sOutput)
> >
> >     Set oEncrypt = Nothing
> >
> > End Sub
> > ---------end----
>
> Try this:
>
> <cfset oEncrypt = CreateObject("com", "CustomEncrypt.Class1")>
> <cfset sInput = "You String To Encrypt Goes Here">
> <cfset sOutput = oEncrypt.EncodeString(sInput)>
> <cfset sDecryptedOutput = oEncrypt.DecodeString(sOutput)>
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
> This email has been processed by SmoothZap - www.smoothwall.net
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283072
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to