Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

C++ and the dll api (MFC)

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

    C++ and the dll api (MFC)

    So maybe I'm missing something but were is the .h file and the lib associated wit the dll provided. I'm an full time embedded c/c++ programmer I don't code alot in windows so maybe I'm missing something.

    I'm planning on getting my feet wet on a MFC application is there a way to link to the dll without a lib? If so what about the .h?

    Thanks in advance,

    RY

    #2
    RY, welcome to our forums - I'm sorry I'm not sure I follow which files you're looking for - an overview over the AT interface can be found here - http://www.ninjatrader-support.com/H...heConcept.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      just trying to use the NtDirect.dll

      There is not function definitions, a .h file. I want to write a MFC app that links to the dll.

      Comment


        #4
        Correct, there's unfortunately no such file, the list of functions for NTDirect can be seen here -

        BertrandNinjaTrader Customer Service

        Comment


          #5
          Yes, I can see the function defs. But there is not a .lib to link to!!!!

          How do you compile and link to the NTDirect.dll in a MFC or any c++ project?

          I have never used or heard of an API that did not provide the proper .lib to match the .dll.

          RY

          Comment


            #6


            Google "reference C# dll in C++"

            Comment


              #7
              That does not work, it appears that NTDirect.dll is not a C# dll.

              Do I really have to Explicitly link every Function via function Pointer?

              Comment


                #8
                This works in C#. You have to compile it if you want the executable. Note the Using Ninjatrader.Client thing. Its a basic "get price and quit" console app.

                Hope it helps!
                Attached Files

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by guillembm, Yesterday, 11:25 AM
                2 responses
                9 views
                0 likes
                Last Post guillembm  
                Started by junkone, 04-21-2024, 07:17 AM
                9 responses
                68 views
                0 likes
                Last Post jeronymite  
                Started by trilliantrader, 04-18-2024, 08:16 AM
                4 responses
                18 views
                0 likes
                Last Post trilliantrader  
                Started by mgco4you, Yesterday, 09:46 PM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by wzgy0920, Yesterday, 09:53 PM
                0 responses
                10 views
                0 likes
                Last Post wzgy0920  
                Working...
                X