Since 4/25/2012 8:55:45 PM, billmedland has written 8 articles and participated in 87 conversations. billmedland signature: billmedland
billmedland's articles:
Items(8) /1
nmake pseudotargets in make033 (11/24/2006 6:28:39 PM) comp.unix.programmer What techniques are available for doing pseudotargets (as in Microsoft's NMAKE; I don't know if that differs from other nmakes) in make? The functionality that I am after is that the pseudotarget is as up-to-d... Bill
JNI allocate array of arrays of primitive129 (10/25/2006 10:21:32 PM) comp.lang.java.programmer How, in JNI, can I allocate an array of arrays of primitives? The problem I am having is in finding a suitable class pointer to pass to NewObjectArray. I can use java/lang/Object but I was wondering if I coul... Bill
Pedantic JNI question1031 (10/19/2006 11:20:39 PM) comp.lang.java.programmer I'm just trying to do the job properly and the correct answer is not obvious to me in the documentation. a-If I call GetByteArrayRegion I should later call ReleaseByteArrayRegion. b-If an exception is thrown t... Bill
JNI, callbacks and remembering the global reference152 (9/28/2006 10:05:27 PM) comp.lang.java.programmer Is there an easier way to do this? I am writing a library layer of code that uses JNI to call down into a library implemented in C. The C library includes a callback mechanism including both register and unre... Bill
Persuade make to ignore dollar532 (8/16/2006 12:04:10 AM) comp.programming Can anyone tell me how to persuade (Gnu) make not to treat every dollar it sees as a sign of a variable? (Or alternatively how do I do the following) I have a rule that involves passing a file through a perl ... Bill
Returning primitives by reference723 (7/20/2006 8:21:10 PM) comp.lang.java.programmer I just thought I'd check before I make a real fool of myself. Am I right in deducing that in Java we can't really return multiple primitives from a method; we need either to cast to objects or else package the... Bill
JNI accessing inner classes124 (7/19/2006 10:55:27 PM) comp.lang.java.programmer Is this not possible or am I doing it wrong? I want a native method of a class to create an instance of an inner class. /* A class with an inner class */ public final class A { public B method_X() { ... Bill
Problems throwing from C Native Code123 (6/26/2006 5:11:41 PM) comp.lang.java.programmer Can anyone tell me why this isn't working? I am using JNI and trying to throw an exception that has more arguments than a single string, so I can't use ThrowNew. However when I use Throw the compiler complain... Bill
Problem with va_start()/vsnprintf()819 (1/5/2007 11:54:17 AM) comp.lang.c Hi All, I am facing a strange issue. if the string passed to va_start()/vsnprintf() contains "%n", there is a segmentation fault. If it's replaced with any other character, no issues. Any idea why? I can't con... manju.mysooru(3)
finding the full path of the program which ran.1952 (12/21/2006 4:41:25 PM) comp.unix.programmer Hi All, I m building a library which requires the full path of the program to which it is linked. How could I do it? I can't use argv for sure, because this requires user program to be aware of the library. ... prasadjoshi124(16)
JNI sample passing Vector from C++ to JAVA189 (12/21/2006 10:39:14 AM) comp.lang.c++ Hi, I am facing some problems in JNI during "env->FindClass("Ljava/util/Vector");" as its unable to identify the class. Any one know the solution for this? or if you have any sample code ( which will return Vec... shivaraj.malannavar(8)
what malloc(0) should returns?8028 (12/18/2006 3:20:53 PM) comp.lang.c Hi, Sorry if it might be a stupid question but what should returns malloc(0) ? void *ptr = malloc(0); I am running gcc 3.3.5 and a non-null address is returned. ( in the compiler that I am currently implemen... quiberon2(2)
freeing a matix1034 (12/1/2006 4:39:41 PM) comp.lang.c Hi, how can I free a matrix that was created with this function: double **my_matrix(long number_of_rows, long number_of_columns){ double **matrix; matrix = calloc(number_of_rows, sizeof(double *)); ... Michael
atol of a value > INT_MAX839 (11/30/2006 4:34:52 PM) comp.lang.c Hello, I have this simple program: #include #include int main() { char *args = "2162508224"; printf("args=%s, atoi=%lu, atol=%lu\n", args, atoi(args), at... alexander.farber(98)
Code fails with Segmentation Fault1438 (11/28/2006 5:07:14 PM) comp.lang.c Hello, I am trying to learn C, especially pointers. The following code attempts to count the appearences of each word in a text file, but fails invariably with Segmentation Fault. Please help me out, I've alre... ddvlad(22)
pass by reference in java?821 (11/27/2006 4:26:21 PM) comp.lang.java.programmer Hello I am coming to Java from C++ . In C++, if I want to pass a variable into another function then by default a copy of variable is passed. Is this the same in Java? I want to pass a reference to my varia... nospam67(211)
using DLL229 (11/24/2006 2:14:54 PM) comp.lang.c Hi In the code Below, im trying to use a dll to encrypt a password. The function in the dll is supposed to be sent a Char and to give out a Char. I'm really beginner, and i dont manage to make this Work. Any ... toto5958(21)
Interesting code2238 (11/16/2006 3:46:02 AM) comp.lang.c Happened to see my old (last millennium) c code. Almost forgot that I wrote it . It is interesting. :-) int sqrt(int no) { int t; no = t * t; return t; } ... vijayakumar.subburaj(55)