passing parameters from a function to other program 's function !

Newbie Member
9Mar2008,01:05   #1
kait992004's Avatar
what shud i do if i want to send more than 2 parameters from a function which is not in C language to a program in C language which shud give me the output !!
Newbie Member
10Mar2008,23:07   #2
kait992004's Avatar
no experts available ??
TechCake
11Mar2008,10:41   #3
asadullah.ansari's Avatar
You can call C function by other language svery easily. But First you have to from which language you want to call C function.

You can call C function from JAVA by using features " JNI" of java.
detail : http://www.mactech.com/articles/mact...ava/index.html
http://www.java.sun.com/docs/books/t...tep/index.html

You can call C function from .net also by interop.
Detail you can see msdn . Code also there.
Newbie Member
11Mar2008,15:47   #4
kait992004's Avatar
what if i want to write in my own language like

suppose if i just write CUBE ( side , angle_rotation ,etc ....) and i want this unknown language's parameters being accepted by the C program which would actually render the image i want ...i have the code available in C for cube ....i have defined the syntax of my language and is aiming to make a compiler for the same ...so this is wat i simportant to be solved !!