Using Java in C++

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2005
Posts: 36
Reputation: Raven11 is an unknown quantity at this point 
Solved Threads: 1
Raven11 Raven11 is offline Offline
Light Poster

Using Java in C++

 
0
  #1
Aug 8th, 2005
Hello, I'm working on a authentication project which I don't want to run through a compiled .exe (to easy to hex edit or crack). So I was thinking about having the user enter the password in a compiled MFC App. When user clicks, "Authenticate" the entered information will be sent to a webpage or database where it will then be compared. I wanted to take a shortcut from having to learn all about asp.net so I was thinking I could use Java in the C++ program. So the question I have is, is it possible to carry over variables from one language to another?

EDIT--
I know you can link C and C++ by:
  1. extern "C" char* funtion
But I'm not sure how I would do it for something other than C.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 181
Reputation: Paul.Esson is an unknown quantity at this point 
Solved Threads: 10
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

Re: Using Java in C++

 
0
  #2
Aug 8th, 2005
if your using .NET the answer is yes, absolutly indeedie. Microsoft wont shut up about there interopertability..

the whole exchange of varibles is spost to happen using the CLR (commen language runtime)

Implement a Java .NET class (If your lucky you can use the standard java api with this but i have never used java and .NET together so i wouldn't have a clue)

then use that class in your C++ program.

Good luck anyway, if that dosn't work do a google for "java .net interoperability"

this may help

http://www.alphaworks.ibm.com/tech/e...63&S_CMP=AWRSS

from the sound of what I have read on the net you might have some troubles.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 2023 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC