Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting OWL app's hInstance

Posted on 1998-02-04
2
Medium Priority
?
337 Views
Last Modified: 2013-12-26
I am having a big time problem trying to get the HINSTANCE of my OWL app! All I need it for is to send it to TDib's constructor so I can load a TDib from my resources. I have tried using many techniques, including using GetWindowClass(), and GetWindowLong(). I keep getting General Protection Faults every time I try to get the HINSTANCE. Please Help!
0
Comment
Question by:eppsman
2 Comments
 
LVL 3

Accepted Solution

by:
JPM earned 400 total points
ID: 1299566
Hi!

I use that code

HINSTANCE hInstance = *GetApplication();    // from application
HINSTANCE hInstance = ::Module->GetInstance();  // from DLL

Hope this helps!
Jean-Paul

0
 

Author Comment

by:eppsman
ID: 1299567
Thanks! It worked!
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question