Solved

Getting OWL app's hInstance

Posted on 1998-02-04
2
292 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 100 total points
Comment Utility
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
Comment Utility
Thanks! It worked!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now