Thread: Speed of GetProcAddress

  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-20-2006, 12:40 AM
  4. Replies: 6
    Last Post: 01-08-2006, 02:49 PM
  5. increased net speed
    By PING in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 03-29-2005, 07:05 AM