Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to reference a system dll?

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

    How to reference a system dll?

    I use a lot of Text-to-speech in my indicators. In NT7 I was able to add this line:
    <string>System.Speech.dll</string> in config.xml where other dlls were referenced.
    When I do that in NT8, the NinjaScript editor gives me the following error:
    Metadata file 'System.Speech.dll' could not be found
    CS0006

    What is the proper way for me to do this in NT8?

    Thanks,
    Dale

    NT 8.0.0.3

    #2
    Hello Dale,

    Thanks for your post.

    You will need to add a reference to the location of the DLL. Right mouse click in an indicator and select references, click on "add" then navigate to:

    C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Speech. dll and click the OK button.

    In your code, make sure to add: using System.Speech.Synthesis;

    Please let me know if I can be of further assistance.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    6 responses
    31 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Waxavi, Today, 02:00 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X