Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

module definition file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George - 02 Nov 2007 10:18 GMT
Hello everyone,

I am using Visual Studio 2005 to develop C++ DLL (in-process COM). There is
a setting in Linker --> Input called Module definition file. This setting
makes me confused,

1. I have tried that if input a file name (.def), then the generated DLL be
larger than the time when we leave the module definition file to empty.
Should we leave it empty or non-empty (input a .def file name);

2. What is the function of the module definition file? Should developer
write it manually or generated by system.

thanks in advance,
George
William DePalo [MVP VC++] - 04 Nov 2007 20:14 GMT
> 1. I have tried that if input a file name (.def), then the generated DLL
> be
> larger than the time when we leave the module definition file to empty.
> Should we leave it empty or non-empty (input a .def file name);

I know of only two ways to export a function by name from a DLL. Either tag
it with the __declspec(dllexport) attribute or specify it's name in the
module definition file. Pick one.

> 2. What is the function of the module definition file? Should developer
> write it manually or generated by system.

See above. It's usually the proper choice when you want no name decoration
of the exported symbol.

Regards,
Will
George - 05 Nov 2007 06:01 GMT
Thanks for your clarification, Will!

regards,
George

> > 1. I have tried that if input a file name (.def), then the generated DLL
> > be
[quoted text clipped - 13 lines]
> Regards,
> Will

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.