944,101 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2747
  • C++ RSS
Aug 8th, 2005
0

Using Java in C++

Expand Post »
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:
C++ Syntax (Toggle Plain Text)
  1. extern "C" char* funtion
But I'm not sure how I would do it for something other than C.
Similar Threads
Reputation Points: 11
Solved Threads: 1
Light Poster
Raven11 is offline Offline
36 posts
since Mar 2005
Aug 8th, 2005
0

Re: Using Java in C++

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.
Reputation Points: 21
Solved Threads: 10
Junior Poster
Paul.Esson is offline Offline
181 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: How do Imodify my random number generator?
Next Thread in C++ Forum Timeline: Pauls awesome Stack of death





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC