View Single Post
  #4  
Old 07-09-2009, 03:52
IWarez IWarez is offline
Friend
 
Join Date: Jul 2003
Posts: 41
Rept. Given: 7
Rept. Rcvd 6 Times in 2 Posts
Thanks Given: 1
Thanks Rcvd at 0 Times in 0 Posts
IWarez Reputation: 7
You can't be sure that your dll is loaded. You can call loadlibrary and it will always work. If it's already loaded nothing will happen, if not it will be. Can't be better

Edit: I noticed in your source you call loadlibrary and then call GetModuleHandle. That's unnessecary as if I remember correctly you can use the handle from loadlibrary for your call to getprocaddress.

Last edited by IWarez; 07-09-2009 at 03:54. Reason: Correction
Reply With Quote