Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to install dll

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to install dll

    What is the procedure for importing a NinjaScript zip file and any DLLs that it references?

    On my development machine I wrote a strategy that uses some custom code which I built into a DLL. On that box, I added the reference to the DLL and the strategy and code from the DLL run fine.

    I now want to import the NinjaScript code on a different machine.

    I tried to import the zip file and I get the error saying:
    "Import failed. the NinjaScript archive may contain duplicate method names that already exist on you PC or there is a required file missing on either your PC or in the import archive."

    So, I copied the DLL to the CUSTOM directory and then brought up some ninja code in the editor and added a reference to the DLL. When I tried the import, I got the same error again.

    Is there a certain order to do this?
    Is there a way to have the DLL included in the archive when I export it?
    Is there a link in the doc that describes how to do this?

    Thanks,
    Gary

    #2
    Hi Gary, please check into the first section of my link for how to build a distribution zip that would contain the DLL and instructions for adding that automatically as reference in the editor -



    Thanks,
    BertrandNinjaTrader Customer Service

    Comment


      #3
      32 vs 64

      Thanks for the link, that solves my problem.

      The doc lead me to another question:
      If I only include a 32 bit version of the DLL, will things run if I run Ninja in 64 bit mode?

      If I do need to build a 64 bit version of the DLL, do I put both of the DLLs (32 & 64 bit) in the zip archive in the same way as outlined in the doc?

      Thanks,
      Gary

      Comment


        #4
        Gary, you could not package a 32 and 64 bit native DLL with this process - it would need two installers / distribution packages then. Easiest would be compiled your custom DLL in x86 mode, then 32 and 64 bit should be able to reference and work with it.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by KennyK, 05-29-2017, 02:02 AM
        3 responses
        1,282 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by AttiM, 02-14-2024, 05:20 PM
        11 responses
        184 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by fernandobr, Today, 09:11 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by timmbbo, Today, 08:59 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by itrader46, Today, 09:04 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X