• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF equivilent to asp.net

Explorer ,
Aug 06, 2007 Aug 06, 2007

Copy link to clipboard

Copied

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 would assume javascript would be the only option. it is sage data objects and here is a preview of the code in vb.net.
Dim oSDO As SageDataObject130.SDOEngine
Dim oWS As SageDataObject130.Workspace
sage say any language that supports COM objects will work, so does javascript and how to you add a reference to a dll or tlb file?
TOPICS
Advanced techniques

Views

481

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 06, 2007 Aug 06, 2007

Copy link to clipboard

Copied

advancemal wrote:
> 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
> would assume javascript would be the only option. it is sage data objects and
> here is a preview of the code in vb.net.
> Dim oSDO As SageDataObject130.SDOEngine
> Dim oWS As SageDataObject130.Workspace
> sage say any language that supports COM objects will work, so does javascript
> 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"...>
SQL Syntax
</cfquery>

Other then that, you will have to tap somebody who knows there ASP.NET
details better.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 21, 2008 Feb 21, 2008

Copy link to clipboard

Copied

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.

Bob

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 16, 2008 Apr 16, 2008

Copy link to clipboard

Copied

LATEST
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.
Invalid com object, the object is registered fine and works ok with asp.net and javascript?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation