using myCOMObject
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
adding references
Collapse
X
-
Hello,
You are able to do most things you would in C# normally in NinjaTrader. The best way to answer this question would be to just test it.
Unfortunately I do not have a com item to test to provide an answer on this topic, if you have a item you have been testing in VS, I would suggest using the syntax from that project and try it in NinjaTrader.
In the case you can not get it working please let me know what errors you are running into or other issues and we can try to look further into it.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Hello,
If the error is in VS I would not be certain of the cause, the error is simply saying that some type in some reference can not be found. This may come from using syntax without a using statement or fully qualified name for that syntax.
I would not be certain how to get the item you have pictured to work in Visual studio, it appears this is an assembly for TradeStation, do they have any documentation surrounding the assembly you are trying to use?
If you are able to get the item to work in visual studio after finding what references it requires, you may be able to duplicate the same steps in NinjaTrader or mainly referencing the correct files to allow for compilation.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
Hello,
You are correct, NinjaTrader would need a reference to use the external code as would visual studio. Visual studio has an additional Com library section where NinjaTrader does not to link com libraries registered with windows.
If you are able to utilize the library as a standard reference in a .net project it should be able to be loaded in NinjaTrader depending on the code used. If the assembly can not be added as a reference specifically using the References menu, there would be no way for the compiler to know about the item in that context. The only time external code could be used without a reference would be in the case you are using PInvoke methods to call on an external assembly, outside of that any .net assembly code will need a reference.
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Padan, Today, 02:02 AM
|
9 responses
21 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by spottysallrite, Today, 11:31 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 03:26 PM | ||
Started by nandhumca, Today, 03:15 PM
|
1 response
4 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
||
Started by Lele2k24, Yesterday, 11:24 AM
|
12 responses
37 views
0 likes
|
Last Post Today, 03:07 PM |
Comment