This content has been marked as final. Show 3 replies
> i have a page in asp.net (vb) that references external data objects (dll file
> in the bin folder) and i wondered if it is possible to do in coldfusion, i
> here is a preview of the code in vb.net.
> Dim oSDO As SageDataObject130.SDOEngine
> Dim oWS As SageDataObject130.Workspace
> and how to you add a reference to a dll or tlb file?
ColdFusion has the <object ...> tag and createObject() function that can
both be used to run com objects. ColdFusion can also execute command
line syntax with the <cfexecute...> tag.
I am not familiar enough with ASP.NET to know exactly what a data object
is. Is this just connecting to a database or something else? For the
form, ColdFusion developers usually use the <cfquery...> tag.
<cfquery name="myRecordSetVar" dataSource="myConfiguredDSN"...>
Other then that, you will have to tap somebody who knows there ASP.NET
Dim oSDO As SageDataObject130.SDOEngine
<cfset SDO = CreateObject("com", "SageDataObject130.SDOEngine")>
Dim oWS As SageDataObject130.Workspace
<cfset WS = CreateObject("com", "SageDataObject130.Workspace")>
That should be what you need for com objects. You would then call the methods by using <cfset returnResult = WS.method(variables)>
Read up on the CreateObject fucntion in livedocs.
i have pulled my hair out but cannot get CF to work with this com object, i just get An exception occurred when instantiating a COM object.