Solved

Getting OWL app's hInstance

Posted on 1998-02-04
2
312 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to i line up css containers from left to right 35 23
RSS Feed Validation 2 69
TripAdvisor Widgets on WordPress Websites 10 195
Problem to file 3 83
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

820 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