Click here to Skip to main content
15,901,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: progarm code of c++ [modified] Pin
Adam Roderick J10-Dec-09 19:17
Adam Roderick J10-Dec-09 19:17 
AnswerRe: progarm code of c++ Pin
Stephen Hewitt10-Dec-09 19:55
Stephen Hewitt10-Dec-09 19:55 
AnswerRe: progarm code of c++ Pin
Michael Schubert10-Dec-09 23:43
Michael Schubert10-Dec-09 23:43 
Questionprogram c++ Pin
moinsheikh10-Dec-09 18:37
moinsheikh10-Dec-09 18:37 
AnswerRe: program c++ Pin
Adam Roderick J10-Dec-09 19:05
Adam Roderick J10-Dec-09 19:05 
AnswerRe: program c++ Pin
Sauce!10-Dec-09 19:27
Sauce!10-Dec-09 19:27 
AnswerRe: program c++ Pin
Rajesh R Subramanian10-Dec-09 21:08
professionalRajesh R Subramanian10-Dec-09 21:08 
Questionwhy the function GetMethodID in JNI always return 0? Pin
heavensquare10-Dec-09 14:41
heavensquare10-Dec-09 14:41 
below is C++ code

jmethodID mid;j
class cls = env->FindClass( "test/MyTest");
mid = env->GetMethodID(cls, "append","(Ljava/lang/String;I)Ljava/lang/String;"); 
mid=env->GetMethodID(cls,"HelloWord","()Ljava/lang/String;");


below is display by javap
public test.MyTest(java.lang.String);  
Signature: (Ljava/lang/String;)V
public java.lang.String HelloWord();  
Signature: ()Ljava/lang/String;
public java.lang.String append(java.lang.String, int); 
Signature: (Ljava/lang/String;I)Ljava/lang/String;


below is java code:
public String HelloWord()
 {    System.out.println("JAVA-CLASS:MyTest method:HelloWord:" +helloword);   
  return helloword;} 
public String append(String str, int i)   {       return str + i;   }



notice: the class has been found successfully, and the construct function <init> 's id is not return 0

question:why the other methods’s id always return 0??
AnswerRe: why the function GetMethodID in JNI always return 0? Pin
Richard MacCutchan11-Dec-09 6:19
mveRichard MacCutchan11-Dec-09 6:19 
QuestionDrawing in a PDF file with HPDF Pin
softwaremonkey10-Dec-09 11:20
softwaremonkey10-Dec-09 11:20 
AnswerRe: Drawing in a PDF file with HPDF Pin
Adam Roderick J10-Dec-09 17:11
Adam Roderick J10-Dec-09 17:11 
GeneralRe: Drawing in a PDF file with HPDF Pin
softwaremonkey11-Dec-09 3:39
softwaremonkey11-Dec-09 3:39 
QuestionCalling third party dll Canadidate function not accessible Pin
shivels10-Dec-09 10:30
shivels10-Dec-09 10:30 
AnswerRe: Calling third party dll Canadidate function not accessible Pin
Nemanja Trifunovic10-Dec-09 11:34
Nemanja Trifunovic10-Dec-09 11:34 
AnswerRe: Calling third party dll Canadidate function not accessible Pin
KarstenK10-Dec-09 21:57
mveKarstenK10-Dec-09 21:57 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
shivels11-Dec-09 2:54
shivels11-Dec-09 2:54 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
KarstenK11-Dec-09 3:17
mveKarstenK11-Dec-09 3:17 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
shivels11-Dec-09 9:22
shivels11-Dec-09 9:22 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
KarstenK13-Dec-09 21:13
mveKarstenK13-Dec-09 21:13 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
shivels14-Dec-09 5:26
shivels14-Dec-09 5:26 
QuestionPreventing Windows messages from popping up Pin
dipuks10-Dec-09 9:07
dipuks10-Dec-09 9:07 
AnswerRe: Preventing Windows messages from popping up Pin
Cedric Moonen10-Dec-09 9:29
Cedric Moonen10-Dec-09 9:29 
GeneralRe: Preventing Windows messages from popping up Pin
dipuks10-Dec-09 10:06
dipuks10-Dec-09 10:06 
GeneralRe: Preventing Windows messages from popping up Pin
22491710-Dec-09 16:22
22491710-Dec-09 16:22 
QuestionWhat am I Doing? class &lt; class &gt; ??? Pin
Joschwenk66610-Dec-09 7:40
Joschwenk66610-Dec-09 7:40 

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.