Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Homer Simpson

Creating and using a dll

This topic is 5992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well i´ve searched MSDN and i didn´t find exacly what i was looking for and I´ve tryied google too but i couldn´t find it.. My question is, how to create and use a DLL for Win32 and Console?? ??? I use MSVC++ 6.0 (No MFC) Thanx in advance [edited by - Homer Simpson on July 18, 2002 1:18:56 AM]

Share this post

Link to post
Share on other sites
If you''ve searched MSDN and google''d for it but couldn''t find information on it, I''d strongly recommend doing it again.
MSDN had 100 results when I searched for "win32 dll." Google had about 564,000 results. Somewhere in there is probably your answer.

Also, that''s a strange question. Are you asking how to create a dll, then load it into your win32 app? Or are you making a console app and want to load a dll and grab it''s functions? Basically the process should be the same (I think..). Look up the function LoadLibrary() in MSDN and read up on it.

Honestly, how hard did you look?

Always remember, you''''re unique. Just like everyone else.

Share this post

Link to post
Share on other sites
I'm positive it's in MSDN. Basically, DLLs are coded like regular programs, yet you need to (or at least you usually) export functions. These "exported" functions can be located and called by programs that open your DLL. Unlike normal programs, DLLs have a DllMain function, which is basically the DLL start point. It handles initialization and de-initialization of the DLL.

Here, I found it in MSDN:

Visual C++ Documentation ->
Using Visual C++ ->
Visual C++ Programmer's Guide ->
Adding Program Functionality ->
Overviews ->
DLLs: Overview

Should explain everything.

[edited by - Zipster on July 18, 2002 1:37:09 AM]

Share this post

Link to post
Share on other sites
An answer to me STFWM(ore) sorry guys Thanx for the answerz...

I am not finding what Zipster said can u send me a direct link?

[edited by - Homer Simpson on July 18, 2002 2:19:31 AM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!