Thread: Module definition file

  1. #1
    Registered User
    Join Date
    May 2006

    Module definition file

    Hello everyone,

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

    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,

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    No luck, eh?

    Oh, wait, some of your other posts on MSDN have some responses, like this one.

    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.

    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:

    My website:
    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, 05: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, 12:02 PM