From: <mah...@ya...> - 2004-08-24 11:33:20
|
Hi Kern, Thanks you really very very much for the prompt reply. The things surely help a great. I'll bother the list again if I'm stuck somewhere. As far as using the C++ is concerned, JNI ( Java Native Interface ) book that I'm using says that native side can be C++ also. So, no probs, I'l use C++ if needed. Thanks once again. Mahesh K Jha --- Kern Sibbald <ke...@si...> wrote: > Hello again, > > One final thought. Perhaps it would be best to have > the Bacula C++ code > call your C code -- at least to start it, and > possibly to fire off a > thread. This would simplify your problem since, > inside the Bacula C++ > code, you simply put: > > extern "C" void your_subroutine(int arg1, char > *arg2); > > your_subroutine(1, name); > > and everything will work fine. If you create a > thread and return > immediately, you could use all C code -- of course, > you will still need > to solve the problem of how to call C++ subroutines > if you want to use > Bacula library code (authentication, getting > resources, ...). > > Best regards, Kern > > ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony |