Results 1 to 5 of 5

Thread: how to save may function in dll ?

  1. #1

    Thread Starter
    Member rajab natshah's Avatar
    Join Date
    Dec 2001
    Posts
    43

    Smile how to save may function in dll ?

    hi,
    can you hellp me.
    how to save may function in Dll file .
    thenk you.

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    create ur functions into a normal C/C++ file. you can then use a header file to get to them. or you can create a .def file and add this to it

    Code:
    LIBRARY "MYDLL.DLL"
    
    Exports
        FunctionName
    then you can use the various GetProcAddress() and LoadLibrary() to get them

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Make sure you put __dllexport before your function calls
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Jop: it's __declspec(dllexport) in VC++ and he doesn't need it if he uses a .def file.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    true... I'm not fully awake

    altough I didn't knew it wasn't needed if you use a .def file thanks for the info
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width