944,085 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 12490
  • C++ RSS
Aug 1st, 2006
0

Re: Writing a Win32 DLL in VC++

Expand Post »
Hi all,

This is charan new member of this team.

Iam having one Question to all of you

What is the difference between static and dynamic Dll and how the mechanisim of static dll goes in VC++
---------------------------------------------------------------------

Quote originally posted by neuronco ...
You can have a DLL without DllMain function. Its purpose is for Windows to notify your DLL of various events that might be of interest to it, e.g. whenever another EXE or DLL loads it etc.

_declspec (dllexport) is a Microsoft specific extension for the compiler to tell it to export your function "bla", so that other DLLs and EXEs can link to it and use it. Other way to accompilsh the same is to use the DEF file and specify your exports there.

void _stdcall bla() is just a normal function visible to your DLL only. _stdcall is specifying standard (or PASCAL) calling convention (as opposed to _cdecl or C calling convention).
<<split to keep from resurrecting the quoted dead thread>>
Last edited by Dave Sinkula; Aug 1st, 2006 at 9:54 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scharan is offline Offline
1 posts
since Aug 2006
Aug 1st, 2006
0

Re: Writing a Win32 DLL in VC++

Quote originally posted by scharan ...
Hi all,

This is charan new member of this team.

Iam having one Question to all of you

What is the difference between static and dynamic Dll and how the mechanisim of static dll goes in VC++
The terms static and dynamic do not describe the features of a DLL but how the application program uses them. Any dll which has a *.lib file can be statically linked to the program via its .lib file, just add the name of the library to the list of libraries processed by the linker. Or the DLL can be loaded into memory at runtime by calling the win32 api function LoadLibrary().
Last edited by Ancient Dragon; Aug 1st, 2006 at 10:36 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,957 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: creating a window in turbo c??
Next Thread in C++ Forum Timeline: Why the reverse output?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC