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 / C++ Libraries / September 2005

Tip: Looking for answers? Try searching our database.

.def for DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
may - 09 Sep 2005 22:38 GMT
I am trying to build a DLL. There are tons of new datatype and class are
defined in the code. I wonder if there is an easy way to setup the .def file
so that I can buid the dll and .lib? or is there a alternate way to avoid
manully defining all the exports?

Another questions is how can I export the template class? for example,  if I
have some like, template <int W> class sc_int; , defined in the DLL, what is
the right way to put it in the .def file so that an application can use any
sc_int<x>?

Thanks a lot,
May
David Lowndes - 10 Sep 2005 10:03 GMT
>I am trying to build a DLL. There are tons of new datatype and class are
>defined in the code. I wonder if there is an easy way to setup the .def file
>so that I can buid the dll and .lib? or is there a alternate way to avoid
>manully defining all the exports?

Use __declspec(dllexport). For an overview, see the topic titled
"Exporting from a DLL" in MSDN.

>Another questions is how can I export the template class?

See if MSDN topic "How To Exporting STL Components Inside & Outside of
a Class" is any help.

Dave
Signature

MVP VC++ FAQ: http://www.mvps.org/vcfaq


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.