Skip to main content
Participating Frequently
Feb 9, 2016 8:12 PM UTC
Question

Which data format do I use to pass to a .NET DLL

I have successfully connected to a .NET dll. However, I am having a problem passing the correct data type.

I asked a fellow developer who works in .NET and he said it must be a "data table". What is the equivalent in CF? A query structure doesn't work.

Thanks

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    WolfShade
    Legend
    Feb 9, 2016 9:16 PM UTC

    I have no idea what a "data table" is, either.  Even after quickly scanning over this page.

    HTH,

    ^_^

    Translate
    Carl Von Stetten
    Legend
    Feb 9, 2016 10:14 PM UTC

    @WolfShade, in that context it seems like a DataTable is roughly analogous to a query object in ColdFusion (which contains data either retrieved from a database or dynamically created at runtime using QueryNew()).  But how you pass ColdFusion data as a .NET DataTable is beyond me.

    Translate
    atlcfAuthor
    Participating Frequently
    Feb 10, 2016 12:59 PM UTC

    In doing more research I found that CF 8 automatically converts what you pass to the DLL to a data table.

    Source - http://qualityexcellence.info/cold-fusion.html

    Translate
    Carl Von Stetten
    Legend
    Feb 9, 2016 8:58 PM UTC

    From Microsoft Technet, it appears that there is a DataTable class.  I have no idea how you would go about using that from within ColdFusion, though.

    Translate