getting an hinstance

This is a discussion on getting an hinstance within the Windows Programming forums, part of the Platform Specific Boards category; hi, how can i get an hinstance in a dll. i tried AfxGetInstanceHandle but i cant really get it to ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    16

    getting an hinstance

    hi,

    how can i get an hinstance in a dll. i tried AfxGetInstanceHandle but i cant really get it to work. im using devcpp on winxp.
    anytips would be great.

    thanks.

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    Using LoadLibrary(...) gets you a HMODULE, which from my experience is synonymous with a HINSTANCE.

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    16
    awesome thanks i got it working now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Get HINSTANCE of another process
    By Thantos in forum Windows Programming
    Replies: 3
    Last Post: 01-14-2005, 08:22 PM
  2. Really Need Help With My Opengl Camera!!!!
    By psychopath in forum Game Programming
    Replies: 13
    Last Post: 05-28-2004, 04:05 PM
  3. Global HINSTANCE?
    By confuted in forum Windows Programming
    Replies: 6
    Last Post: 06-24-2003, 03:13 AM
  4. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 07:48 PM
  5. finding hInstance
    By anobody in forum Windows Programming
    Replies: 7
    Last Post: 01-26-2003, 02:02 AM

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