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 aussugardefender, Today, 01:07 AM
                0 responses
                3 views
                0 likes
                Last Post aussugardefender  
                Started by pvincent, 06-23-2022, 12:53 PM
                14 responses
                238 views
                0 likes
                Last Post Nyman
                by Nyman
                 
                Started by TraderG23, 12-08-2023, 07:56 AM
                9 responses
                384 views
                1 like
                Last Post Gavini
                by Gavini
                 
                Started by oviejo, Today, 12:28 AM
                0 responses
                4 views
                0 likes
                Last Post oviejo
                by oviejo
                 
                Started by pechtri, 06-22-2023, 02:31 AM
                10 responses
                125 views
                0 likes
                Last Post Leeroy_Jenkins  
                Working...
                X