Module definition file

This is a discussion on Module definition file within the C++ Programming forums, part of the General Programming Boards category; Hello everyone, The PRIVATE keyword of module definition file (.DEF) means, http://msdn2.microsoft.com/en-us/lib...d3(vs.80).aspx -------------------- The optional keyword PRIVATE prevents entryname from ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    Module definition file

    Hello everyone,


    The PRIVATE keyword of module definition file (.DEF) means,

    http://msdn2.microsoft.com/en-us/lib...d3(vs.80).aspx

    --------------------
    The optional keyword PRIVATE prevents entryname from being placed in the import library generated by LINK. It has no effect on the export in the image also generated by LINK.
    --------------------

    My questions are,

    1. Does it has any practical usage to prevent the exported function from import library file?

    2. If the exported function is not in the import library file, then other component has to use LoadLibrary and GetProcAddress to use the DLL, other than using implicit link?


    thanks in advance,
    George

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,047
    No luck, eh?
    http://groups.google.co.in/group/com...c1661d3c2ae4e9
    http://forums.devarticles.com/c-c-he...le-125565.html
    http://www.codeguru.com/forum/showthread.php?t=439419

    Oh, wait, some of your other posts on MSDN have some responses, like this one.
    http://forums.microsoft.com/MSDN/Sho...51268&SiteID=1

    If you put it on tons of forums, someone will know the answer, eh? One of the problems with that is that people like me will research the problem when it's already been solved, unless you go to every forum and say that the problem is solved.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Function basics
    By sjleonard in forum C++ Programming
    Replies: 15
    Last Post: 11-21-2001, 11:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21