calling VC code having MFC in java

A

amk

hi,
I m developing a java application where i need to call VC code
having MFC.
1) I declared a native function in java code (ReturnObject.java).
2) created a .h file from java code with javah -jni ReturnObject
3) did the c++ coding where native function is defined
4) created ReturnObject.o.
5)Tried to create the dll using
C:\MinGW\bin\g++ -c -I"C:\JDK\include" -I"C:\JDK\include\win32"
-o ReturnObject.o ReturnObjectImp.cpp

I am failing at step 5. Could any one please let me know how to
create a dll of a code having mfc.
 

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
473,772
Messages
2,569,593
Members
45,111
Latest member
VetaMcRae
Top