Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
R

ravi120486

@ravi120486
About
Posts
12
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Run Time Error in 'return functions->FindClass(this, name)'
    R ravi120486

    Hey Richard, Can u tell me the reasons why JVM creation might have failed , so that i can loook for it . Regards, Ravi

    Java help c++

  • UnsupportedClassVersionError/Unsupported major.minor version 50.0
    R ravi120486

    Hi all , I have the class file (HelloWorld.class) calls a native method, and the native library (Hello-World.dll) implements the native method. While running the HelloWorld class I am getting following error: Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld (Unsupported major.minor version 50.0) Is this error releted to Java version? I am using JDK 1.6.

    Java c++ java help question announcement

  • Run Time Error in 'return functions->FindClass(this, name)'
    R ravi120486

    I am not posting the entire code,Tell me if its sufficient Following is my Code:

    int MyAPI(Parameters* Params, int i) {
    .
    .
    .
    JNIEnv *env;
    JavaVM *jvm;
    JavaVMInitArgs vm_args;
    char clspath[400]="-Djava.class.path=";

    resCheckVM = JNI\_GetCreatedJavaVMs(&jvm, bufLen, &nVMs);
    if( resCheckVM < 0 || nVMs < 1 )
    {
    .
    .
    .
     JNI\_GetDefaultJavaVMInitArgs(&vm\_args);
     fflush(stdout);
     res = JNI\_CreateJavaVM(&jvm,(void\*\*)&env,&vm\_args);
     if (res < 0)
         fprintf(stderr, "Failed to Create JVM.\\n");
     }
    else
    {
     fflush(stdout);
     res = (jvm)->AttachCurrentThread((void\*\*)&env, NULL);
     if (res < 0)
       fprintf(stderr, "Failed attaching current thread to JVM.\\n");
     }
    	 
    cls = (env)->FindClass(Params\[i\].lib);
    
    if (cls == 0)
    {
      fprintf(stderr, "Can't find Prog class \\n",Params\[i\].lib);
      return 1;
    }
        {
          fprintf(stderr, "Can't find function \\n");
          return 1;
         }
    

    .
    .
    .

    	 return 0;
    

    }

    Here I am getting this message "Failed to Create JVM." Then a run time error at FindClass(Params[i].lib).

    Java help c++

  • Run Time Error in 'return functions->FindClass(this, name)'
    R ravi120486

    Hey Richard, Here in 'FindClass(this, name)' name parameter is pointing to some value but 'this' pointer is pointing to 0x00000000. Plzz help........

    Java help c++

  • Run Time Error in 'return functions->FindClass(this, name)'
    R ravi120486

    Actually in jni.h following is the definition of FindClass

    jclass FindClass(const char *name) {
    return functions->FindClass(this, name); }

    Following is the Error message I am getting at 'FindClass(this, name)': Unhandled exception at 0x60edf3a0 (xxx.dll) in yyy.exe: 0xC0000005: Access violation reading location 0x00000000.

    Java help c++

  • Run Time Error in 'return functions->FindClass(this, name)'
    R ravi120486

    Hi all, Iam getting run time error in following function in jni.h: return functions->FindClass(this, name); Following is the FindClass() function call fron my cpp file: cls = (env)->FindClass(servParams[i].lib); Plz help , I am new to JNI Programming. :(

    Java help c++

  • unresolved external symbol sqlcxt
    R ravi120486

    Hi, I am getting following error: error LNK2001: unresolved external symbol "void __cdecl sqlcxt(void * *,unsigned int *,struct sqlexd *,*struct sq*lcxp const* )" (?sqlcxt@@YAXPEAPEAXPEAIPEAUsqlexd@@PEBUsqlcxp@@@Z) But after adding extern "C" in the PL/SQL code

    extern "C"
    {
    void sqlcxt (void **, unsigned int *,+
    struct sqlexd *, const struct sqlcxp *);+
    void sqlcx2t(void **, unsigned int *,+
    struct sqlexd *, const struct sqlcxp *);+
    void sqlbuft(void **, char *);+
    void sqlgs2t(void **, char *);+
    void sqlorat(void **, unsigned int *, void *);+
    }

    I am getting the following error: error LNK2001: unresolved external symbol sqlcxt Please Help!!!!!! I am using Oracle 9i client on x64 platform.

    Database help database oracle question

  • unresolved external symbol sqlcxt
    R ravi120486

    ok got it.... Thanks -Superman- for your replies :)

    C / C++ / MFC help question

  • unresolved external symbol sqlcxt
    R ravi120486

    So do i need to install oracle 9i client for 64 bit? or is there any way to use 32 bit dll?

    C / C++ / MFC help question

  • unresolved external symbol sqlcxt
    R ravi120486

    Actually orasql9.lib is a sql file,which is present in the Oracle 9i client I have installed. So for 64 bit I am not getting which lib file to link.

    C / C++ / MFC help question

  • unresolved external symbol sqlcxt
    R ravi120486

    I am linking to orasql9.lib. Can u tell me which library I have to link? Actually this is working fine for 32 bit application. But for 64 bit i am getting this error.:) Please Help......

    C / C++ / MFC help question

  • unresolved external symbol sqlcxt
    R ravi120486

    Hi, I am using ProC code in my 64 bit application. i am getting the following error while building it: error LNK2001: unresolved external symbol sqlcxt I have added extern"C" in sqlcxt definition.

    extern "C"
    {
    void sqlcxt (void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlcx2t(void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlbuft(void **, char *);
    void sqlgs2t(void **, char *);
    void sqlorat(void **, unsigned int *, void *);
    }

    Does any one has any idea why I am getting this? :(

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups