Click here to Skip to main content
15,907,392 members
Home / Discussions / COM
   

COM

 
AnswerRe: threading And Distributed transaction Pin
User 21559726-Sep-07 0:36
User 21559726-Sep-07 0:36 
QuestionIXMLDOMAttribute::put_value Pin
IWannaTalk24-Sep-07 3:36
IWannaTalk24-Sep-07 3:36 
AnswerRe: IXMLDOMAttribute::put_value Pin
Nathan Holt at EMOM24-Sep-07 10:56
Nathan Holt at EMOM24-Sep-07 10:56 
GeneralRe: IXMLDOMAttribute::put_value [modified] Pin
IWannaTalk24-Sep-07 11:54
IWannaTalk24-Sep-07 11:54 
GeneralRe: IXMLDOMAttribute::put_value Pin
IWannaTalk25-Sep-07 23:35
IWannaTalk25-Sep-07 23:35 
GeneralRe: IXMLDOMAttribute::put_value Pin
Nathan Holt at EMOM26-Sep-07 12:40
Nathan Holt at EMOM26-Sep-07 12:40 
GeneralRe: IXMLDOMAttribute::put_value Pin
IWannaTalk27-Sep-07 4:12
IWannaTalk27-Sep-07 4:12 
Questionsimple helloworld program for caling java from c++ ! help ! Pin
amitamit19820-Sep-07 22:53
amitamit19820-Sep-07 22:53 
//Its tt.java simple Helloworld program .which i am willing to call from c++
// i created .class and .h file of it !

public class tt {
public static void main(String[] args) {
System.out.println("Hello World ");
}
}

//*****************************************************************************************


//i wrote it in vc++ 6.0
//for this i added path of tt.h(created using javah) in preprocessor path(underprojects=>setting=>c/c++ tab)
//then added path of jvm.lib (under projects=>setting=>link tab)


#include "jni.h"
#define PATH_SEPARATOR ';' /* define it to be ':' on Solaris */
#define USER_CLASSPATH "C:\j2sdk1.4.2_05\bin" /* where tt.class is */

int main()
{
JNIEnv *env;
JavaVM *jvm;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jclass stringClass;
jobjectArray args;;
JavaVMInitArgs vm_args;;
JavaVMOption options[1];
options[0].optionString ="-Djava.class.path="USER_CLASSPATH;
vm_args.version = 0x00010002;
vm_args.options = options;
vm_args.nOptions = 1;
vm_args.ignoreUnrecognized = JNI_TRUE;
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);


if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
// exit(1);
}
cls = (env)->FindClass("tt");
if (cls == 0) {
// goto destroy;
}

mid = (env)->GetStaticMethodID(cls, "main","([Ljava/lang/String;)V");
if (mid == 0) {
// goto destroy;
}
jstr = (env)->NewStringUTF(" from C!");
if (jstr == 0) {
// goto destroy;
}
stringClass = (env)->FindClass("java/lang/String");
args = (env)->NewObjectArray(1, stringClass, jstr);
if (args == 0) {
// goto destroy;
}
(env)->CallStaticVoidMethod(cls, mid, args);

//destroy:
if ((env)->ExceptionOccurred()) {
(env)->ExceptionDescribe();
}
(jvm)->DestroyJavaVM();
return 0;
}


/// After doing that much ! i got this LINKING TIME ERRORs

--------------------Configuration: ltry - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
tr.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/ltry.exe : fatal error LNK1120: 1 unresolved externals

// please help me sir....what chages i should do so that it gets run n calls java method ?
QuestionRun-Time Check Failure #0 Pin
donguy7620-Sep-07 16:38
donguy7620-Sep-07 16:38 
AnswerRe: Run-Time Check Failure #0 Pin
Nathan Holt at EMOM21-Sep-07 9:02
Nathan Holt at EMOM21-Sep-07 9:02 
QuestionUsing Com dll in ASP.NET gives Security error Pin
Chetan Patel19-Sep-07 18:48
Chetan Patel19-Sep-07 18:48 
QuestionAdding buttons to Explorer toolbar (Groove 'Folder sync' style) Pin
__DanC__19-Sep-07 4:31
__DanC__19-Sep-07 4:31 
QuestionWhy we need COM Pin
Nandu_77b18-Sep-07 3:17
Nandu_77b18-Sep-07 3:17 
AnswerRe: Why we need COM Pin
Nathan Holt at EMOM18-Sep-07 7:43
Nathan Holt at EMOM18-Sep-07 7:43 
GeneralRe: Why we need COM Pin
Nandu_77b19-Sep-07 5:31
Nandu_77b19-Sep-07 5:31 
GeneralRe: Why we need COM Pin
Baltoro4-Oct-07 12:44
Baltoro4-Oct-07 12:44 
QuestionAvoid hang of the component manager with com+ console messages [modified] Pin
Vider18-Sep-07 1:51
Vider18-Sep-07 1:51 
Questioncom and threading models,and a question about dlls? Pin
rozbeh18-Sep-07 0:18
rozbeh18-Sep-07 0:18 
AnswerRe: com and threading models,and a question about dlls? Pin
Nathan Holt at EMOM18-Sep-07 7:52
Nathan Holt at EMOM18-Sep-07 7:52 
QuestionCOM List over Network Pin
Fatbuddha 117-Sep-07 21:22
Fatbuddha 117-Sep-07 21:22 
Questionusing void ** in Interface Pin
tictactoer17-Sep-07 3:26
tictactoer17-Sep-07 3:26 
AnswerRe: using void ** in Interface Pin
Nathan Holt at EMOM17-Sep-07 9:59
Nathan Holt at EMOM17-Sep-07 9:59 
GeneralRe: using void ** in Interface Pin
tictactoer19-Sep-07 0:00
tictactoer19-Sep-07 0:00 
GeneralRe: using void ** in Interface Pin
Nathan Holt at EMOM19-Sep-07 11:22
Nathan Holt at EMOM19-Sep-07 11:22 
QuestionProblem in adding a new function in existing Interface Pin
Ravikr0716-Sep-07 22:57
Ravikr0716-Sep-07 22:57 

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.