Calling JNI_CreateJavaVM from C++ dll

Hey,

I've spent most of my time on the internet today, looking for an answer to this . I use a framework, that can only call __stdCall methods from dlls. Have been trying to create such dll, using JNI, but I always get the same problem : my dll has dependencies to dll I don't have (DWMAPI.dll) . Thing is, I thought it was a VC++ problem, so I've downloaded other compiler (g++), and have same results.

So, has anybody ever made such a DLL, or is it possible, or impossible, or...

I also read somewhere that u couldn't do it, but hey, I don't believe in no cant do!

thx

Message was edited by:

mikymike4

[656 byte] By [mikymike4a] at [2007-10-3 10:33:13]
# 1

see my batch processing file

@echo off

set name=Converse

set java_home=f:\sun\jdk\

set vc_home=G:\Microsoft\VC\

set include=%java_home%\include;%java_home%\include\win32;%vc_home%\include

set lib=%vc_home%\lib\

cl -LD %name%.c -Fe%name%.dll

del %name%.obj %name%.lib %name%.exp

pause

java Test

echo on

pause

purebeggera at 2007-7-15 5:56:20 > top of Java-index,Java HotSpot Virtual Machine,Specifications...