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

kait992004's Avatar, Join Date: Mar 2008
Newbie Member
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 !!
kait992004's Avatar, Join Date: Mar 2008
Newbie Member
no experts available ??
asadullah.ansari's Avatar, Join Date: Jan 2008
TechCake
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.
kait992004's Avatar, Join Date: Mar 2008
Newbie Member
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 !!