codesite into a DLL

Home Forums CodeSite codesite into a DLL

Viewing 5 reply threads
  • Author
    Posts
    • #4153
      Ricardo Oliveira
      Participant

        (C++ Builder 12.3, Codesite 5.4.4)

        I’m trying to use codesite express inside a DLL. The following link error occurs:

        [ilink64 Error] Fatal: Unable to open file ‘IDIOHANDLER.O’

        The problem *does not* occur when using the codesite in the main application (.exe). The issue seems related to the DLL.

        Any idea?

        Thanks
        R

      • #4160
        Ray Konopka
        Keymaster

          Hi Ricardo,
          We’ve received a couple reports of issues with the IDIOHANDLER object file. The odd thing about this is that the IdIOHandler unit is part of the Indy components that come with Delphi and C++Builder. CodeSite uses the Indy components to send CodeSite messages via TCP.
          One thing to try is to add the following to your DLL project:
          #include
          Ray

        • #4163
          Ricardo Oliveira
          Participant

            Dear Ray,

            Thank you for the tip. But what file shoul I include?
            #include ?

            R

          • #4252
            Ray Konopka
            Keymaster

              Hi Ricardo,

              I’m really sorry about that. I have no idea why the file was not included in the message. And apparently, my notifications of new replies to posts got turned off.

              That line should have been,

              #include

              Again, I apologize for the confusion and delay.

              Ray

            • #4258
              Ricardo Oliveira
              Participant

                Dear Ray,

                I think that the forum has an issue with characters such as ‘<‘ and ‘>’ (maybe they interpret it as HTML tags), because the include file did not appear again…

                However, the problem was resolved by adding the following lines of code to the main file of the DLL:

                #pragma comment(lib, “CodeSiteExpressPkg”)
                #pragma comment(lib, “IndySystem”)
                #pragma comment(lib, “IndyCore”)
                #pragma comment(lib, “IndyProtocols”)

                I hope this solution proves useful for other users as well.

                Best regards,
                R

              • #4274
                Ray Konopka
                Keymaster

                  Hi Ricardo,
                  You are right. For some reason the content within “<" and ">” are getting stripped. I’ll have to dig into WordPress to see what is causing that. Anyway, the #include statement was supposed to include IdIOHandler.hpp within the angled brackets.
                  Thanks for posting your solution.
                  Ray

              Viewing 5 reply threads
              • You must be logged in to reply to this topic.