MFC and JNI

H

HalloUlrich

Hi all!

We have a big project using MFC. Now we want migrate
step by step to java. so we want to use JNI to call our Dll's (with
MFC).
In the DLL is an application Objekt. the method InitInstance will be
called.
But the functions AfxGetInstanceHandle() and AfxGetResourceHandle()
returns NULL. So the DLL-call crashes.
What must we do, to init the MFC correct?
 
V

Victor Bazarov

HalloUlrich said:
We have a big project using MFC. Now we want migrate
step by step to java. so we want to use JNI to call our Dll's (with
MFC).
In the DLL is an application Objekt. the method InitInstance will be
called.
But the functions AfxGetInstanceHandle() and AfxGetResourceHandle()
returns NULL. So the DLL-call crashes.
What must we do, to init the MFC correct?

Wrong newsgroup. Try 'microsoft.public.vc.mfc'.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top