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

    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 -

        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 Mindset, 04-21-2026, 06:46 AM
                0 responses
                117 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by M4ndoo, 04-20-2026, 05:21 PM
                0 responses
                166 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by M4ndoo, 04-19-2026, 05:54 PM
                0 responses
                85 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by cmoran13, 04-16-2026, 01:02 PM
                0 responses
                130 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                88 views
                0 likes
                Last Post PaulMohn  
                Working...
                X