I tried looking this up but having a hard time cuz all i get are ppl using sleep()
is there a function that would be able to put a thread to sleep and only get waken up when the main process wants...
Type: Posts; User: kiros88
I tried looking this up but having a hard time cuz all i get are ppl using sleep()
is there a function that would be able to put a thread to sleep and only get waken up when the main process wants...
Well I cant use a debugger that i know of cuz im using jni functions and although this isnt a jni function where im getting the problem the main code is base in java and when i call the jni thats...
Hi so Im wondering when would there be a case when fprintf would crash a program. I didn't create the program but I'm trying to debug it. I've been able to use fprintf on other files in the program,...
Well i was asking how do i check like what would the algorithm be in pesudo code to check each letter and see if its a capital letter
Hi i was wondering what is the best and fastest method to scan a word like
"dooDooo"
so i guess a char* would point to that word and i want to scan the whole word but what im looking for are...
Yea i actually wanted to know what #pragma once does cuz i tried googling it up and didnt find anything that could explain it to me i thought that was a good method but i used it on an itnerview and...
Hi i had a theory question i guess? if its called that I wanted to know what do u do when theres a bunch of class files and eventually u accidentally rewrite a header file for one class thats already...
Hi I was wondering if someone could help me with this I always get this question alot in interviews and was hoping someone could help with an answers.
if i had 2 strings str1"abcde" and str2 "bcd"...
So i looked this up and cant really find an answer probably cuz most ppl dont deal with this but im using cygwin and im compiling with
#include <sys/shm.h>
but it cant find the file so i obviously...
Is there an easy way or function to convert a long into a string like in C with itoa i mean even though that doesnt do it compeltely is there a simple way?
okay yea just wanted to make sure i wasn't forgetting something with my bug but i think I have an idea where to look
I just had a quick question to confirm. If i had created a static library one that ends with .a then when i load the library in the compiler syntax with -g mylib.a with my main code shouldn't the...
Does anyone know a basic code sample of a .cpp being called by java i just want to see an example cuz this is frustrating ive tried extern it and its still not working its complaing bout some of the...
iono basically that cannot convert char* to *jstring
do u think if i just have a .cpp program but extern everything into C that the program could compile
so hi basically really confused and new to jni. um basically i have in C
jstring str;
char * str1 = getStringhere(); // this just returns a char* of a string in a another ...
Yea basically i was wondering about that because It worked completely fine doing it in C with the.h just having one line
char* getStringhere()
but i was wondering since i changed the file into a...
I was wondering can i have a .cpp file like
#include "gsh.h"
#include <string.h>
char* getStringhere(){
char * str1 = "here I finished libMIDS.a";
return str1;
so im not sure if its here or C forum for this but i basically need help with make files its pretty simple im just having a hard time looking i tup online
basically i have a directory
/base
...
Im sorry i now this is stupid and i should have mentioned this earlier but i need it for a andriod function so im calling a native call in C then im going to try and use RDTSC but i tried the BMJ one...
Hi I was wondering I've been looking through the web trying to find out if the C library or a way to use RDTSC and havent been able to get a good understanding or a good sample.. Im really just...
Hi basically i was hoping someoen can see what i cant I know this error is basically something is space weird but i havent touched the makefile and it ran b4 so iono what could be different i do know...
Hi so im having a problem figuring out how to link things or find paths to certain files when im compiling. basically im trying to do a compile with jni.h so right now i already included the paths in...
No that part is fine because the env is a struct i think in jni.h and most of the examples using env function calls use the ->. The code i posted is C i already i java code that should be right but...
I know this is a JAVA thing but Im having issues with the C portion of the code. I know there isnt a jStringarray type of or anything but I was trying to get an array of strings to pass into the C...
Hi Im trying to make a DLL but everytime Im looking for tutorials its kinda looks like im making a class. Because mostly I get a header file then a cpp file and its suppose to make a dll file? I'm...