Calling a C++ dll from Java
1 posts in topic
Flat View  Flat View

Posted By:   Samagna_Sagam
Posted On:   Tuesday, September 7, 2004 03:22 AM

I need to call a function that is there in a C++ dll. The arguments to the function are STRUCT and string. The return type is void. Also I donot have any rights to change the dll and I have to use as it is.... So here goes my questions:

1. How to pass a struct variable from Java to a function in DLL.
2. The function returns void and the second argument is the output variable which I need to use. So is there anyway, that call by reference can be used from Java?
3. Where should I place my dll to compile it?

Quick reply would be appreicated.

Thanks in advance.

Re: Calling a C++ dll from Java

Posted By:   Anonymous  
Posted On:   Tuesday, September 7, 2004 04:20 AM

Hi Sagam,
It is possible to invoke a C++ dll through Java if we make use of CORBA. Try doing that using CORBA.
About | Sitemap | Contact