Speed of GetProcAddress

This is a discussion on Speed of GetProcAddress within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I'd like to make a call to dynamically loaded DLL (loaded with LoadLibrary) and use GetProcAddress to get the ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    5

    Question Speed of GetProcAddress

    Hello, I'd like to make a call to dynamically loaded DLL (loaded with LoadLibrary) and use GetProcAddress to get the pointer to the function, then make the call.

    My question; Is GetProcAddress fast? Can I use it right before I make the call or should I call it for once first and store the pointer as long as I have the DLL loaded?

    Thanks,

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    One would think it's fast enough to suit that purpose, but the majority of people fetch all the functions they will ever need from a DLL by doing multiple calls at the start of their program so they have them all the time without having to worry about dynamic loading.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I am very new . . . :(
    By Eternalglory47 in forum C++ Programming
    Replies: 6
    Last Post: 09-05-2008, 11:29 AM
  2. Broadband Speed?
    By abh!shek in forum A Brief History of Cprogramming.com
    Replies: 78
    Last Post: 04-12-2008, 03:58 PM
  3. Flight Simulator Wind Speed!!
    By Dilmerv in forum C++ Programming
    Replies: 6
    Last Post: 03-19-2006, 11:40 PM
  4. Replies: 6
    Last Post: 01-08-2006, 01:49 PM
  5. increased net speed
    By PING in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 03-29-2005, 06:05 AM

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