Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on using a C++/CLI DLL in NinjaTrader strategy

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

    Error on using a C++/CLI DLL in NinjaTrader strategy

    Hi,
    I'm trying to refer from a NinjaTrader strategy on a C++/CLI DLL written in Visual Studio Express, but I get the error message
    "Could not load file or assembly ... or one of its dependencies. The system cannot find the file specified."
    when I'm trying to run the strategy. Compiling the strategy works fine.

    By now I tried:
    - changing the .NET framework version (3.5) and some compiler options in Visual Studio
    - using different directorys for the DLL ("C:\Users\***\Documents\NinjaTrader 7\bin\Custom" and "C:\Program Files\NinjaTrader 7\bin")
    - restarting NinjaTrader many times and removing/adding the reference in the strategy editor
    - installing different versions of visual c++ redistributable package

    The problem happens even when I write a completely plain C++/CLI DLL for testing purposes, which only contains one method doing a simple thing like returning a number or something else. When I write the same "Test-DLL" in C#, I have no problem.
    And when I'm refering to the C++ DLL from another C# project in Visual Studio I have no problem accessing the functionality, too.
    Do anyone have experience with refering to C++/CLI DLLs in NinjaTrader or is there any kind of logfile where I can see which specific assembly or file is missing?

    Thanks in advance
    Felix

    #2
    Hello Felix.Altstadt,

    C++ is unsupported language with NinjaTrader and would not be able to provide assistance in this matter.

    However, I will leave this thread open for any of our other users who may have run into this and have a solution.

    My only recommendation is that the C++ requires a correct exportation in order for the .NET base languages to read. However, the assumption could be incorrect here due to the undocumented sources for this.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WaveAtElliot, Today, 05:11 PM
    1 response
    7 views
    1 like
    Last Post hdge4u
    by hdge4u
     
    Started by bosajin, Yesterday, 09:15 AM
    5 responses
    36 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Dolfan, Today, 12:24 PM
    4 responses
    23 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by WeyldFalcon, Today, 11:09 AM
    7 responses
    26 views
    0 likes
    Last Post WeyldFalcon  
    Started by DTSSTS, 08-10-2020, 09:48 AM
    12 responses
    67 views
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Working...
    X