> I managed to figure out the problem I was having with moving
> some ASP to CF... but I don't understand why.
>
> When using the .dll in an ASP page, I don't need to specify
> the host IP and port number:
>
>    sResult = E4W.bConnect()
>
> However, in CF I need to do the following:
>
> <CFSET Result = E4W.bConnect("234.3.4.3","8000")>
>
> The DLL is an MS VB 5.0 DLL.  Any idea why CF would require
> the address and port to be specified while ASP does not?

My guess is that when you instantiate the object from ASP using
Server.CreateObject(), the Server object itself provides information to your
DLL that isn't provided when CFOBJECT is used. For example, I've got a DLL
which can open a text file. If I call that DLL from ASP, I can specify a
file path relative to the ASP page itself. If I call the same DLL using
CFOBJECT, I have to specify a full file path.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to