-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: bharati_k
Message 1 in Discussion
Hi friends,
I have a typical requirement. (not so typical....but I am completely new to
this..)
I have to create an exe (or dll) in C#.NET that takes a string as input and
somehow should output an encrypted string. The following is the code that I
have used:
------------------------------------------------------------------------------------
string input;
byte[] byteVal = Encoding.UTF8.GetBytes(input);
byte[] byteencryptedPwd = sha1.ComputeHash(byteVal);
sha1.Clear();
string pwd = Convert.ToBase64String(byteencryptedPwd);
-----------------------------------------------------------------------------------------
My requirement is I should be able to call this C#.NET method from a native
C++. (Actually it should be called from a java application. Someone in our team
will do calling a C++ program from Java).
----------------------------------------------------------------------------------------
Are there any articles on creating a wrapper class so that a C#.NET code can be
accessed in managed C++.
Then again I need to create a wrapper to access the method from managed C++ to
native C++.
Can any of you please give me some inputs on how to create a wrapper. I have
searched google but couldnt get right stuff.
One more suggestion : What project template should I choose when creating the
C#.NET application. Is it Console application (exe) or Class Library (dll).
Thanks a lot for your help.......
Best Regards
Bharati.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]