Just checking.....

C

Chris Fink

Is it possible, from Java, to invoke a .net class and call it's memebers? I
believe the answer to be no, but am also looking for workarounds that people
have come up with.

Thanks
 
C

Chris Fink

another quick comment.

I can make a C# exe and call it from java passing it the appropriate args,
but can the .net exe return a status code back to the calling app directly
without using a file, db, or something in the middle. I think Dos had a
similar capability, just wondering if this is also available in a .net exe.
Prob not.

Thanks
 
B

Bruce Wood

I know that it is possible to call C# applications from Win32
(non-.NET) executables, so I don't see why it wouldn't be possible to
do from Java. I mean, Java can call "normal" dlls, so that means it can
do anything that, say, C can do, and C can call C#.

The only hitch is that you need to read up on how to load the .NET
framework from within your Java program and then transfer control to
your C# application via the framework.

All of this presumes that your "application" is compiled as a dll, not
an exe. If it's an exe then you have to invoke it as you're doing now.

Try looking here for a start:

http://www.c-sharpcorner.com/Code/2002/Mar/CallingManagedCodeFromUnmanagedFB.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top