Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Loading MFC controls from xml file

Loading MFC controls from xml file

Scheduled Pinned Locked Moved C / C++ / MFC
c++xmltutorial
8 Posts 4 Posters 9 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raghuji rao
    wrote on last edited by
    #1

    i have an xml file and dll file of some other application.how to load the MFC controls style and properties from xml file and calling functionalities of the corresponding controls from dll

    C T 2 Replies Last reply
    0
    • R raghuji rao

      i have an xml file and dll file of some other application.how to load the MFC controls style and properties from xml file and calling functionalities of the corresponding controls from dll

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      raghuji.rao wrote:

      how to load the MFC controls style and properties from xml file

      The only way I'm aware of, is to read the XML file yourself and then create the controls at run-time depending of what you read from the file. To parse the XML file, you can perhaps use TinyXML[^] which is quite powerfull.

      raghuji.rao wrote:

      and calling functionalities of the corresponding controls from dll

      I don't understand what you are trying to achieve. Could you be more specific ?


      Cédric Moonen Software developer
      Charting control

      R 1 Reply Last reply
      0
      • C Cedric Moonen

        raghuji.rao wrote:

        how to load the MFC controls style and properties from xml file

        The only way I'm aware of, is to read the XML file yourself and then create the controls at run-time depending of what you read from the file. To parse the XML file, you can perhaps use TinyXML[^] which is quite powerfull.

        raghuji.rao wrote:

        and calling functionalities of the corresponding controls from dll

        I don't understand what you are trying to achieve. Could you be more specific ?


        Cédric Moonen Software developer
        Charting control

        R Offline
        R Offline
        raghuji rao
        wrote on last edited by
        #3

        i have downloaded an user interface application from codejock.com. it has a very good gui. he is importing control properties from an xml file and calling control functionalites from a dll. i want to have in my application. how to do that?

        C V 2 Replies Last reply
        0
        • R raghuji rao

          i have downloaded an user interface application from codejock.com. it has a very good gui. he is importing control properties from an xml file and calling control functionalites from a dll. i want to have in my application. how to do that?

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Impossible to say without knowing what technologies he is using. Does he uses MFC ? Or is it a special GUI ? I think the easier is to ask directly to the guy who developped this thing (or at least provide a link to what you are talking about).


          Cédric Moonen Software developer
          Charting control

          R 1 Reply Last reply
          0
          • C Cedric Moonen

            Impossible to say without knowing what technologies he is using. Does he uses MFC ? Or is it a special GUI ? I think the easier is to ask directly to the guy who developped this thing (or at least provide a link to what you are talking about).


            Cédric Moonen Software developer
            Charting control

            R Offline
            R Offline
            raghuji rao
            wrote on last edited by
            #5

            he is supplying exe and related dll,xml file. am sure it is mfc dll

            C 1 Reply Last reply
            0
            • R raghuji rao

              he is supplying exe and related dll,xml file. am sure it is mfc dll

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              :| How can we help if you don't provide more information ? We have absolutely no clues at all of how he managed to do what you are looking for (and it's not by saying that he supplied exe, xml and dll that it will help a lot). But, why don't you simply use what he provided ? And also: how do you know that functionalities for the control is added in the dll (or something like that, because I still don't understand what you are looking for with this dll). And, what was the problem with my first answer ? Moreover, do you know what you are talking about ? Because if you just saw something nice somewhere on the net that you want to reproduce but you have no clue about what you are talking about and hope that we will provide you with a complete solution, then you are going in the wrong direction, because we don't have any idea neither (*take a deep breath after a so long sentence* ;P)


              Cédric Moonen Software developer
              Charting control

              1 Reply Last reply
              0
              • R raghuji rao

                i have downloaded an user interface application from codejock.com. it has a very good gui. he is importing control properties from an xml file and calling control functionalites from a dll. i want to have in my application. how to do that?

                V Offline
                V Offline
                Viorel
                wrote on last edited by
                #7

                We can presume that the combination of LoadLibrary and GetProcAddress functions is the thing that you finally will achieve. In this case perhaps you need the list of features available in that DLL, in form of *.h header files. In case of MFC, it may be some specific methods for invoking features from DLL.

                1 Reply Last reply
                0
                • R raghuji rao

                  i have an xml file and dll file of some other application.how to load the MFC controls style and properties from xml file and calling functionalities of the corresponding controls from dll

                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #8

                  raghuji.rao wrote:

                  i have an xml file and dll file of some other application.how to load the MFC controls style and properties from xml file and calling functionalities of the corresponding controls from dll

                  try CMarkUp for Parsing XML, it quite Popular here

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                  cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups