• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can I call a C method from inside java code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I call a C method from inside java code?


  • Subject: Can I call a C method from inside java code?
  • From: Adam <email@hidden>
  • Date: Tue, 20 Apr 2004 00:18:46 -0400

Newbie:

I have a .c file and .h file written in the original c language. They implement a very complex method I would not like to rewrite in Java. Can I somehow pass a value into this custom c method from my java code and get the result returned in my java code?

I have herd that you can mix Java and Obj-c code in the same projects. Does this refer to the java versions of the obj-c objects or actually mixing of code from the two languages in the same project? After searching cocoa.mamasam.com and the web I found server discussions about calling java methods/objects from inside obj-c code. I would like to do the reverse, call an original and custom c method from my Cocoa Java code.



Thanks,
Adam
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Can I call a C method from inside java code?
      • From: p3consulting <email@hidden>
  • Prev by Date: Re: NSImageRGBColorTable crash
  • Next by Date: Re: cocoa-dev digest, Vol 2 #4042 - 4 msgs
  • Previous by thread: Re: [Q] Why unsolicited dealloc in NSKeyedUnarchiver?
  • Next by thread: Re: Can I call a C method from inside java code?
  • Index(es):
    • Date
    • Thread