Following is the method which I am exporting from my DLL
const wchar_t* _stdcall EncryptAES(const wchar_t* value, const char* key)
I want to access this method from VB 6.0, kindly guide me so that I can achieve this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I now using VB.net so I will not post any code here, since I’m unable to be sure if it is correct.
But I suggest you to use StrPtr or VarPtr functions to pass wchar_t* parameter and ByVal for char*.
See this article for complete guidance. Hope this will help you.