#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    England, UK
    Posts
    35
    Rep Power
    13

    Easy tutorial on DLL's?


    Hi,
    can someone point me in the direction of a friendly DLL tutorial (or just tell me :D ). I've found a few, but they seem more intent on telling me about them than how to write them. Basically I'd like it to say, "take your function, put in here, rename it and compile, then call it like this".

    Also, can a console app use a DLL aswell?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    On a screen near you
    Posts
    498
    Rep Power
    14
    I found this tutorial great
    100 trillion calculations per nanosecond
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    England, UK
    Posts
    35
    Rep Power
    13
    Cheers for that, the third page is just about what I was looking for. I've come across this site before when I was first looking for C/C++ resources, but never bookmarked it, I have now, there's a couple of nice tutorials. Just a pity there's no print version, I like to be able to have the whole tutorial on one page and save it as a web archive for later viewing.
  6. #4
  7. No Profile Picture
    Offensive Member
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2002
    Location
    in the perfect world
    Posts
    622
    Rep Power
    28
    I like a bit more error checking with GetLastError() and to check that all the functions are locked down.

    Also you should free the library after you use it with

    FreeLibrary() -> even if the calls to GetProcAddress() fail.
    The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.

    Frank Zappa

IMN logo majestic logo threadwatch logo seochat tools logo