Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to generate a random number? Pin
Tim Smith5-Sep-03 4:30
Tim Smith5-Sep-03 4:30 
GeneralRe: how to generate a random number? Pin
David Crow5-Sep-03 4:39
David Crow5-Sep-03 4:39 
GeneralRe: how to generate a random number? Pin
Ted Ferenc5-Sep-03 10:24
Ted Ferenc5-Sep-03 10:24 
GeneralRe: how to generate a random number? Pin
David Crow5-Sep-03 10:41
David Crow5-Sep-03 10:41 
GeneralRe: how to generate a random number? Pin
Ted Ferenc5-Sep-03 6:20
Ted Ferenc5-Sep-03 6:20 
GeneralRe: how to generate a random number? Pin
David Crow5-Sep-03 10:43
David Crow5-Sep-03 10:43 
Questionshared memory and address? Pin
includeh104-Sep-03 21:07
includeh104-Sep-03 21:07 
AnswerRe: shared memory and address? Pin
Jagadeesh VN5-Sep-03 4:20
Jagadeesh VN5-Sep-03 4:20 
You will have to use JNI calls for doing this.

I had a similar problem, and I made the java pgm create a piece of shared memory, and from C++ I used shmget function to access it. But shmget failed from either side ( depending on which one creates the shared mem ).

Anyway you can start exploring with "JNI" calls.

You may find this piece of code useful.

JNIEXPORT jint JNICALL Java_posix_SharedMem_shmget
(JNIEnv *, jclass, jint key, jint size, jint flag) {
return shmget(key,size,flag);
}


"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
GeneralRe: shared memory and address? Pin
includeh105-Sep-03 7:21
includeh105-Sep-03 7:21 
GeneralStoring a file with an exe Pin
Ricky Koh4-Sep-03 21:07
Ricky Koh4-Sep-03 21:07 
GeneralRe: Storing a file with an exe Pin
includeh104-Sep-03 21:10
includeh104-Sep-03 21:10 
GeneralRe: Storing a file with an exe Pin
Ricky Koh4-Sep-03 21:15
Ricky Koh4-Sep-03 21:15 
GeneralRe: Storing a file with an exe Pin
Jagadeesh VN5-Sep-03 4:24
Jagadeesh VN5-Sep-03 4:24 
Generalneed some help - todo: Pin
cridaniel4-Sep-03 17:06
cridaniel4-Sep-03 17:06 
GeneralSelf extracting files Pin
Dor4-Sep-03 15:51
Dor4-Sep-03 15:51 
General**horribly stumped** passing a pointer to C++ from VB Pin
rajdawg4-Sep-03 15:51
rajdawg4-Sep-03 15:51 
GeneralRe: **horribly stumped** passing a pointer to C++ from VB Pin
parths4-Sep-03 17:52
parths4-Sep-03 17:52 
GeneralRe: **horribly stumped** passing a pointer to C++ from VB Pin
rajdawg5-Sep-03 1:20
rajdawg5-Sep-03 1:20 
Questionhow to get the number of digits Pin
elmahdy4-Sep-03 13:44
elmahdy4-Sep-03 13:44 
AnswerRe: how to get the number of digits Pin
Dor4-Sep-03 15:47
Dor4-Sep-03 15:47 
AnswerRe: how to get the number of digits Pin
Larry J. Siddens5-Sep-03 10:17
Larry J. Siddens5-Sep-03 10:17 
GeneralEnvironment Vars... Pin
RobJones4-Sep-03 13:41
RobJones4-Sep-03 13:41 
GeneralRe: Environment Vars... Pin
Neville Franks5-Sep-03 0:15
Neville Franks5-Sep-03 0:15 
GeneralRe: Environment Vars... Pin
RobJones5-Sep-03 3:53
RobJones5-Sep-03 3:53 
GeneralError in adding submenu to the File Menu Pin
Binayak4-Sep-03 13:28
Binayak4-Sep-03 13:28 

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.