|
-
Nov 2nd, 2002, 11:31 AM
#1
Thread Starter
Member
LPSTR Strings in DLL
I have a VC++ DLL function that should be called from VB. The function Encrypts a string (It's more complex than the one shown). This following code, however, returns the exact same string, can anyone see whats wrong?
From VB, the function is called like this
a$="Test String"
EncryptString(a$)
DLL Function
void _stdcall EncryptString(LPSTR data) {
for (int i=0; i<strlen(data); ++i) {
data[i]^=5;
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|