Do you have equivalent ASP code for this object?  Perhaps we could look at
it and tell you what it should look like in CF.

To answer your question, yes, but sometimes data types are handled a bit
differently than they are in ASP/VB.  You could try:

<cfset tmp =
obj.dologin("#form.txtcn#","#form.txtusername#","#form.txtpassword#")>

Should this method return a value?  If not, try:

<cfscript>
    obj.dologin("#form.txtcn#","#form.txtusername#","#form.txtpassword#");
</cfscript>

Alternately, if you still can't get it to work, perhaps you could write a
COM wrapper that does any necessary conversions, and call the wrapper from
CF.

---
Billy Cravens
HR Web Systems, EDS
[EMAIL PROTECTED]



----- Original Message -----
From: "Baca, Robert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 6:10 PM
Subject: RE: COM problem


>
>
> -----Original Message-----
> From: Baca, Robert
> Sent: Thursday, July 26, 2001 6:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: COM problem
>
>
>
> I have created a form with three form variables. The variables are passed
to
> a cfm page that passes the form variables to the COM object (written in
> Delphi).  I am having a problem initiating the procedure within the COM
> object. I am able to create the object fine, but when I try to call the
> procedure(dologin) of the COM object (validate user, password and Client
> number) I get an error. The code I am using is:
>
> <cfobject type="com"
> action="create"
> class="login.dologin"
> Name="OBJ">
>
> <cfoutput>
> <cfset tmp = obj.dologin(#form.txtcn#, #form.txtusername#,
> #form.txtpassword#)>
> </cfoutput>
>
> The error i get is:
> Error Diagnostic Information The error occurred while processing an
element
> with a general identifier of (CFSET),
>
> Does Cold Fusion unlike ASP require parameters to be passed? For some
> reason, I simply cannot create the object and tell Cold Fusion with a
CFSET
> or CFSCRIPT tag to execute the procedure within the COM object.
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to