Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Apply a Low Pass filter on data with irregular time stamp Pin
Nelek15-May-08 6:04
protectorNelek15-May-08 6:04 
GeneralRe: Apply a Low Pass filter on data with irregular time stamp Pin
jeremie.delaitre15-May-08 21:10
jeremie.delaitre15-May-08 21:10 
GeneralRe: Apply a Low Pass filter on data with irregular time stamp Pin
Nelek16-May-08 1:19
protectorNelek16-May-08 1:19 
GeneralRe: Apply a Low Pass filter on data with irregular time stamp Pin
jeremie.delaitre16-May-08 1:59
jeremie.delaitre16-May-08 1:59 
QuestionDifference between similar calls Pin
ilgale15-May-08 5:01
ilgale15-May-08 5:01 
AnswerRe: Difference between similar calls Pin
Nelek15-May-08 5:57
protectorNelek15-May-08 5:57 
AnswerRe: Difference between similar calls Pin
Matthew Faithfull15-May-08 6:13
Matthew Faithfull15-May-08 6:13 
Questionproblem to use java class from vc++ Pin
intermediate15-May-08 4:13
intermediate15-May-08 4:13 
Hi,


I am trying to call a java class from vc++ program.I had added the jvm.lib in project setting. Also used loadlibrary or afxloadlibrary to load the jvm.dll. but while i am running that ,before the control comes in the initinstance of app class it is showing following error.
"The application has failed to start because jvm.dll was not found"
So basically the loadlibrary is not getting chance to load the dll as the error is ocuuring before control comes to the iniinstance function .

So i am confused how to use jvm.dll.

My code is


JavaVM* jvm;
JNIEnv* env;
JavaVMInitArgs args;
JavaVMOption options[1];
args.version = JNI_VERSION_1_4;
args.nOptions = 1;
options[0].optionString = "-Djava.class.path=C:\\Asset Migration\\converter";


args.options = options;
args.ignoreUnrecognized = TRUE;//JNI_FALSE;
AfxMessageBox("JVM start");
int res =JNI_CreateJavaVM(&jvm, (void **)&env, &args);
if(res<0)
{
AfxMessageBox("JVM failed");
return TRUE;
}
jclass cls = env->FindClass("TestJNI");
jmethodID mid = env->GetStaticMethodID(cls, "dis", "(I)V");
env->CallStaticVoidMethod(cls, mid, 100);
AnswerRe: problem to use java class from vc++ Pin
CPallini15-May-08 4:21
mveCPallini15-May-08 4:21 
QuestionRe: problem to use java class from vc++ Pin
Nelek15-May-08 5:52
protectorNelek15-May-08 5:52 
QuestionRe: problem to use java class from vc++ Pin
CPallini15-May-08 6:01
mveCPallini15-May-08 6:01 
AnswerRe: problem to use java class from vc++ Pin
intermediate15-May-08 18:13
intermediate15-May-08 18:13 
GeneralRe: problem to use java class from vc++ Pin
CPallini15-May-08 21:00
mveCPallini15-May-08 21:00 
QuestionHash table source code [modified] Pin
fawadnasim15-May-08 3:28
fawadnasim15-May-08 3:28 
QuestionCan a dll understand which program calls it. Pin
maxMESA15-May-08 3:04
maxMESA15-May-08 3:04 
AnswerRe: Can a dll understand which program calls it. Pin
Matthew Faithfull15-May-08 3:15
Matthew Faithfull15-May-08 3:15 
QuestionRTTI problem Pin
Karismatic15-May-08 2:53
Karismatic15-May-08 2:53 
GeneralRe: RTTI problem Pin
Matthew Faithfull15-May-08 3:09
Matthew Faithfull15-May-08 3:09 
AnswerRe: RTTI problem Pin
Paresh Chitte15-May-08 18:56
Paresh Chitte15-May-08 18:56 
QuestionHow to check for filesize.. Pin
pl_kode15-May-08 2:52
pl_kode15-May-08 2:52 
AnswerRe: How to check for filesize.. Pin
Rajesh R Subramanian15-May-08 2:57
professionalRajesh R Subramanian15-May-08 2:57 
AnswerRe: How to check for filesize.. Pin
toxcct15-May-08 3:02
toxcct15-May-08 3:02 
GeneralRe: How to check for filesize.. Pin
Hamid_RT15-May-08 4:15
Hamid_RT15-May-08 4:15 
QuestionRe: How to check for filesize.. Pin
David Crow15-May-08 4:33
David Crow15-May-08 4:33 
AnswerRe: How to check for filesize.. Pin
onlinewan15-May-08 17:20
onlinewan15-May-08 17:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.