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 argusthome, 03-08-2026, 10:06 AM
                0 responses
                72 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                43 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                25 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                28 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                59 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X