|
|
Comments and Discussions
|
|
 |

|
I Have A Dll And It's .h File,But Lose the .lib File .
How could I Use It?
Thx For UR Answer.
|
|
|
|

|
Dear raid_zh,
When you build a dll that write it in developer studio (Visual studio); plus a dll, automatically have buld a lib file.
Do you develope dll yourself?
|
|
|
|

|
It didn't by myself ~~
|
|
|
|

|
To help me in my learning. A DLL is a Dynamic Link Library. Now, can you tell me What it does and how it works?
|
|
|
|

|
Well, a dll dose same actions that an exe file unless a dll can share but an exe can't. suppose an exe file have a member function named ControlRobotHand that control hand of robot. you can't use this member function in other program, you must write your own code; whenas if this member function have placed in a dll, you could using it. dlls are very beneficial. msdn have a lot of information about dll, i suggest you read msdn.
excuse for delay
Regards
|
|
|
|

|
Hi,
is there a limitations ? I created a dialog in my dll and I on run time, dialog.DoModal() doesn't work.
I have no clue what is the problem.
I am using MFC static linking since my client does not use MFC, is there a problem with static linking?
Thanks in advance,
Udi Raz
|
|
|
|

|
Hi,
is there a limitations ? I created a dialog in my dll and I on run time, dialog.DoModal() doesn't work.
I have no clue what is the problem.
I am using MFC static linking since my client does not use MFC, is there a problem with static linking?
Thanks in advance,
Udi Raz
|
|
|
|

|
Dear Mr.Mehnood
First of all I would like to thank you for this wonderful help.I am a beginner and it was really very helpful for me.
I will highly appriciate if you could send me some information or a small sample project on implementing unicode in VC++ 6.0.
Once more thanks a lot
Keep it up.
Warm Regards
Syed Ali Sajjad Raza
|
|
|
|

|
Dear friend,Syed Ali
excuse me for delay,i'm very busy for distributing Pardis.
there are ways for using unicode features but it is difficult,complicated and havent warranty.it is better using VC++ 7.0 accompany .NET programming.
describe details if possible, send to director@pishro-narmafzar.com
i will glad, if you accept Pardis as gift.
Very thanks,sincerely;
mahmood
|
|
|
|

|
Hye,
Thanks for giving such a good article... Your language is so simple, I suggest you to take hard topics and explain in your simple language... A suggestion from me to you is Templates, STL etc.
Mail me, if you put any new article about templates or STL..
Jigar Mehta
(jigarmehta@gatescorp.com)
Software Developer
Gates Information Systems
India
|
|
|
|

|
hi Jigar
very thanx
|
|
|
|

|
Hi do you have an idea how to process strings in dll's ?
For example I have a fucntion with a string parameter and it returns another string...
regards,
Andrew
|
|
|
|

|
You can give char * as a parameter and return char * from the DLL function and receive it from the calling program, its that easy !!
Jigar Mehta
(jigarmehta@gatescorp.com)
Software Developer
Gates Information Systems
India
|
|
|
|

|
Nice to see another article from Iranian people.
Best regards,
A. Riazi
|
|
|
|
|
|

|
hello,
can you describe more, about implicit linking
what is .LIB file?
|
|
|
|
|

|
1. The title of the article is quite strange.
2. The article itself is not detailed at all.
3. The article is not really a big help for beginners because important information is missing.
4. Why are you using a MFC dll where it is absolutly not necessary? (and this in a beginner article)
5. The fact that you are using a MFC application in a beginners article for DLLs is quite strange. (a console app would be much easier to understand)
6. You should have mentioned exporting symbols via module definition (.def) file.
7. Source code comments are totally missing. (you have just thrown around with some pieces of information)
I'm sorry, but you should really revise your article!
Don't try it, just do it!
|
|
|
|

|
1- title,changed.
2- it is clear,description of details convert it to complicated article.
3- while babies begin to walk,they can't understand running rules.it is sufficient.
4,5- we really use not console apps nowadays.it is aged.
6- Unfortunately, you dont read carefully.i mentioned, DLL creation is multi way
7- Article described here
|
|
|
|

|
Just because console apps "are aged", that doesn't mean people should use MFC DLLs. A regular DLL would suffice whether or not you used an MFC application or not.
Anyway, if you really follow the "aged" argument, I'll say MFC is aged and that people should be creating .NET applications now.
Personally, I agree with each and every one Alexander's statements. If this article is really built for beginners, then you should discuss the benefits and costs of using DLLs including some sample scenarios. If I teach you a concept, but don't help you understand why it is useful or possibly harmful based on the circumstances, then it does you very little good.
|
|
|
|

|
It will be nice if you can include something about class export.
How to export a class ? What about base classes if we are exporting a derived class?
Manish
Sonork ID 100:25668 Home Page
|
|
|
|

|
hi Manish,
it could be found in part 2
|
|
|
|

|
Mahmood Komeily wrote:
4,5- we really use not console apps nowadays.it is aged.
Still loads and loads of folk and services using console.
Contrary to the cliche, genuinely nice guys most often finish first or very near it.--Malcolm Forbes Toasty0.com
|
|
|
|

|
u can develop console app, this article isn't for u;P
|
|
|
|

|
hey Toasty0! get away with your opinion
|
|
|
|

|
hello alex
i dont believe your opinion.it was very good and resolved my problem.
kasahi
|
|
|
|

|
A very good article. It's simple (something we don't see enough of these days) and it provides useful information. Using this article, someone can create a DLL in MINUTES. What other books or article can you make this claim about?
Alexander, what's your problem?
|
|
|
|

|
Why do we do this ??
After reaching one particular height, why do we left seeing people at the bottom ?? Why don't we remember we were there at one time ??
this is article for beginners and its good enough.. Should not point out mistakes everywhere...
Keep it up!! Mahmood!! As said earlier, expecting more articles about templates and STL from you...
|
|
|
|

|
It's solve my problem. I'm going to your's part II.
Thanks!;)
|
|
|
|

|
hi mahmood
i want to have adialog in dll
and i could call it.
how to achieve?
|
|
|
|

|
It is very simple to do that:
1- In resource editor, create a dialog
2- In class wizard create a new dialog class for your dialog resource, named it something like CMyDialog.
3- Export a function from your DLL, something like this:
int DLLEXPORT ShowMyDialog()
{
CMyDialog dlg;
return (dlg.DoModal());
}4- From your main application, import the DLL function, then call it.
Something to know:
It's better to create a regular dll. Simple and easy to use DLL.
Best regards,
A. Riazi
|
|
|
|

|
Yes,
It's better to create a regular dll. Simple and easy to use DLL. But sometimes we want to hide the things from the world (many things are kept to be hidden) so in that case, we can take this way.. Its very good...
Jigar Mehta
(jigarmehta@gatescorp.com)
Software Developer
Gates Information Systems
India
|
|
|
|

|
thank you,
but other ways?
|
|
|
|

|
can you say or send me how to use dll while
i haven't .lib file?
|
|
|
|

|
you have to know the parameters , declare the prototype and import function using loadlibrary and getprocaddress .
I am the MIGHTY KEEPER of the BOOK OF KNOWLEDGE . Contact me to get your copy .
|
|
|
|

|
Also there are some shareware tools that create a static library from your DLL. In this situation, there is no need for library file of DLL.
A. Riazi
|
|
|
|

|
Is there any tool available in this BIG world that gives us the exact parameters from the DLL (for functions those are exported ?? ) I am searching this tool from a long time...
Is there any way to find this ??
Jigar Mehta
(jigarmehta@gatescorp.com)
Software Developer
Gates Information Systems
India
|
|
|
|

|
Assuming you are using Windows 2000 or XP:
echo EXPORTS > DLLNAME.def
for /f "skip=19 tokens=4" %i in ('dumpbin /exports "DLLNAME.dll"') do echo %i >> DLLNAME.def
lib /def:DLLNAME.def /out:LIBNAME.lib
If you don't have lib.exe, you can use "link /lib" instead, it's the same thing. (don't worry that link /? doesn't list it, it's there)
Also, I believe that the lib uses the name of the def file to determine what dll to link against, so it's important that the def have the same base name as the dll. The name of the lib is less important.
|
|
|
|

|
this article is very fluent.
can you send more article for
learning about dlls?
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
How to create DLLs and use them.
| Type | Article |
| Licence | |
| First Posted | 10 Sep 2004 |
| Views | 125,814 |
| Bookmarked | 104 times |
|
|