How To use DLL files in programs
-
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:
Import the functions from your executable and use it as if it were a local function. Have a look at
LoadLibrary()
,GetProcAddress()
. You will get started then.savitri wrote:
it is urgent
Almost all your questions are urgent. But unfortunately, you will get your query resolved only if you follow the guidelines[^] while asking a query. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
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:
The simplest way to use such
DLL
s is via load time linking: Add the corrensponding import library as linker input: selectProject->Properties
menu item, thenConfiguration Properties->Linker
node and add, for instance,comdlg32.lib
toAdditional Dependecies
line. Usually you have also to include the library header file in you project (it is not the case ofcomdlg32.dll
:windows.h
is enough) and make sure that loader is able to find theDLL
at runtime (again nothing to do forcomdlg32.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 -
The simplest way to use such
DLL
s is via load time linking: Add the corrensponding import library as linker input: selectProject->Properties
menu item, thenConfiguration Properties->Linker
node and add, for instance,comdlg32.lib
toAdditional Dependecies
line. Usually you have also to include the library header file in you project (it is not the case ofcomdlg32.dll
:windows.h
is enough) and make sure that loader is able to find theDLL
at runtime (again nothing to do forcomdlg32.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 Clarkehi 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:
-
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:
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 -
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 -
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 ClarkeHoly cow. Lots of patience there man. I appreciate it.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
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 -
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
That may be seeing the 5! that's mine to compensate previous one. I never seen savitri appreciates anwser. :)
-
That may be seeing the 5! that's mine to compensate previous one. I never seen savitri appreciates anwser. :)
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
-
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:
-
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 ClarkeHi Palnili, May I ask a question?
-
Hi Palnili, May I ask a question?
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 -
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 ClarkeOh 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)?
-
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)?
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 -
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 ClarkeWell 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
-
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
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