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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How To use DLL files in programs

How To use DLL files in programs

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialhelp
17 Posts 5 Posters 0 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.
  • S savitri

    Hi EveryOne, I am doing project on GSM modem to send and receive message.I want to use existing dll file for example(comdlg32.dll).Please tell me how shall i use that in my program.please tell me procedure. it is urgent.Help me. Regards, savitri:confused:

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #3

    The simplest way to use such DLLs is via load time linking: Add the corrensponding import library as linker input: select Project->Properties menu item, then Configuration Properties->Linker node and add, for instance, comdlg32.lib to Additional Dependecies line. Usually you have also to include the library header file in you project (it is not the case of comdlg32.dll: windows.h is enough) and make sure that loader is able to find the DLL at runtime (again nothing to do for comdlg32.dll, since it is already in the loader search path). :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

    In testa che avete, signor di Ceprano?

    S 1 Reply Last reply
    0
    • CPalliniC CPallini

      The simplest way to use such DLLs is via load time linking: Add the corrensponding import library as linker input: select Project->Properties menu item, then Configuration Properties->Linker node and add, for instance, comdlg32.lib to Additional Dependecies line. Usually you have also to include the library header file in you project (it is not the case of comdlg32.dll: windows.h is enough) and make sure that loader is able to find the DLL at runtime (again nothing to do for comdlg32.dll, since it is already in the loader search path). :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

      S Offline
      S Offline
      savitri
      wrote on last edited by
      #4

      hi pallini, in project menu settings option is there.no propertise option is there.please tell me clearly.wer i have to configure that dll.actually i downloaded one software.with that one dll called lcgsmSMS.dll is there.I want to use this dll in my program please tell me. Please help me. THANKS IN ADVANCE, savitri:confused:

      CPalliniC 1 Reply Last reply
      0
      • S savitri

        hi pallini, in project menu settings option is there.no propertise option is there.please tell me clearly.wer i have to configure that dll.actually i downloaded one software.with that one dll called lcgsmSMS.dll is there.I want to use this dll in my program please tell me. Please help me. THANKS IN ADVANCE, savitri:confused:

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #5

        Are you using Visual Studio (which version?)? :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

        In testa che avete, signor di Ceprano?

        S R 2 Replies Last reply
        0
        • CPalliniC CPallini

          Are you using Visual Studio (which version?)? :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

          S Offline
          S Offline
          savitri
          wrote on last edited by
          #6

          Microsoft visual studio 6.0 please tell me.

          CPalliniC 1 Reply Last reply
          0
          • CPalliniC CPallini

            Are you using Visual Studio (which version?)? :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #7

            Holy cow. Lots of patience there man. I appreciate it.

            Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

            R 1 Reply Last reply
            0
            • S savitri

              Microsoft visual studio 6.0 please tell me.

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #8

              Here [^] an example. :) BTW Have you the library header file (*.h) and the import one (*.lib)? :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

              In testa che avete, signor di Ceprano?

              H 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                Holy cow. Lots of patience there man. I appreciate it.

                Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                R Offline
                R Offline
                Rajkumar R
                wrote on last edited by
                #9

                That may be seeing the 5! that's mine to compensate previous one. I never seen savitri appreciates anwser. :)

                R 1 Reply Last reply
                0
                • R Rajkumar R

                  That may be seeing the 5! that's mine to compensate previous one. I never seen savitri appreciates anwser. :)

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #10

                  Rajkumar R wrote:

                  I never seen savitri appreciates anwser. [Smile]

                  So true. We'll never know if her query was solved or not. :rolleyes:

                  Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                  1 Reply Last reply
                  0
                  • S savitri

                    Hi EveryOne, I am doing project on GSM modem to send and receive message.I want to use existing dll file for example(comdlg32.dll).Please tell me how shall i use that in my program.please tell me procedure. it is urgent.Help me. Regards, savitri:confused:

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #11

                    See these[^] parts of course this link is for create a DLL with a DEF file and use it.

                    1 Reply Last reply
                    0
                    • CPalliniC CPallini

                      Here [^] an example. :) BTW Have you the library header file (*.h) and the import one (*.lib)? :)

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #12

                      Hi Palnili, May I ask a question?

                      CPalliniC 1 Reply Last reply
                      0
                      • H Hamid Taebi

                        Hi Palnili, May I ask a question?

                        CPalliniC Offline
                        CPalliniC Offline
                        CPallini
                        wrote on last edited by
                        #13

                        Hamid. wrote:

                        Hi Palnili

                        Actually is Pallini.

                        Hamid. wrote:

                        May I ask a question?

                        Of course. I'm waiting for. :)

                        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                        In testa che avete, signor di Ceprano?

                        H 1 Reply Last reply
                        0
                        • CPalliniC CPallini

                          Hamid. wrote:

                          Hi Palnili

                          Actually is Pallini.

                          Hamid. wrote:

                          May I ask a question?

                          Of course. I'm waiting for. :)

                          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                          H Offline
                          H Offline
                          Hamid Taebi
                          wrote on last edited by
                          #14

                          Oh Im sorry I must be paste your name. :-O Do you know Mr Antonio Vivaldi? I had a music of him and I like it a lot but I losed it,do you have this music(I think its four reasons)?

                          CPalliniC 1 Reply Last reply
                          0
                          • H Hamid Taebi

                            Oh Im sorry I must be paste your name. :-O Do you know Mr Antonio Vivaldi? I had a music of him and I like it a lot but I losed it,do you have this music(I think its four reasons)?

                            CPalliniC Offline
                            CPalliniC Offline
                            CPallini
                            wrote on last edited by
                            #15

                            Hamid. wrote:

                            Do you know Mr Antonio Vivaldi?

                            Well, not personally! :-D

                            Hamid. wrote:

                            I had a music of him and I like it a lot but I losed it,do you have this music(I think its four reasons)?

                            I think it was the four seasons, (orginal title: "le quattro stagioni"). I don't remeber if I have it, since Vivaldi is not my favourite composer (I like very much Verdi and Bach). I will look for at home. :)

                            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                            In testa che avete, signor di Ceprano?

                            H 1 Reply Last reply
                            0
                            • CPalliniC CPallini

                              Hamid. wrote:

                              Do you know Mr Antonio Vivaldi?

                              Well, not personally! :-D

                              Hamid. wrote:

                              I had a music of him and I like it a lot but I losed it,do you have this music(I think its four reasons)?

                              I think it was the four seasons, (orginal title: "le quattro stagioni"). I don't remeber if I have it, since Vivaldi is not my favourite composer (I like very much Verdi and Bach). I will look for at home. :)

                              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                              H Offline
                              H Offline
                              Hamid Taebi
                              wrote on last edited by
                              #16

                              Well he was born in Venis in Italy(1678-1741),I read his biography.You like Monte Verdi(1567-1643),right? I heared and know most harmonist of occident,because I am musician:)(at the day I am a programmer ;P and at the night a player :wtf:),btw Im thankful of your search. :-D

                              CPalliniC 1 Reply Last reply
                              0
                              • H Hamid Taebi

                                Well he was born in Venis in Italy(1678-1741),I read his biography.You like Monte Verdi(1567-1643),right? I heared and know most harmonist of occident,because I am musician:)(at the day I am a programmer ;P and at the night a player :wtf:),btw Im thankful of your search. :-D

                                CPalliniC Offline
                                CPalliniC Offline
                                CPallini
                                wrote on last edited by
                                #17

                                Hamid. wrote:

                                You like Monte Verdi(1567-1643),right?

                                Nope. I like Giuseppe Verdi[^], I think he was the best Italian composer (I like so much the Aida opera), however I'm far of being a musician, hence my opinion maybe irrelevant (simply I like very much his brilliant usage of winds and percussions).

                                Hamid. wrote:

                                btw Im thankful of your search.

                                I hope, once at home, to remember about (don't blame me if I forget, I'm very absent-minded) :)

                                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                                In testa che avete, signor di Ceprano?

                                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