| | |
Using Java in C++
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2005
Posts: 36
Reputation:
Solved Threads: 1
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:
But I'm not sure how I would do it for something other than C.
EDIT--
I know you can link C and C++ by:
C++ Syntax (Toggle Plain Text)
extern "C" char* funtion
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.
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.
![]() |
Similar Threads
- Java 3D Environment (Java)
- Java 3D (Java)
- Java Expert (Needed) (Java)
- Java Chat Reboots (Java)
Other Threads in the C++ Forum
- Previous Thread: How do Imodify my random number generator?
- Next Thread: Pauls awesome Stack of death
Views: 2023 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





