Could anyone please help me to convert to following C code to VB. <br>
<br>
void Jumblo (char key[], /* Key for encryption / decryption*/<br>
char *input, /* Pointer to input buffer */<br>
int lenInput, /* Length of input buffer in bytes*/<br>
char *output, /* Pointer to output buffer */<br>
int encrypting,/* Encrypting (#0 yes) */<br>
int procFlag, /* Processing flag */<br>
/* 1 Blowfish only */<br>
/* 2 Jumble only */<br>
/* Otherwise Jumble and Blowfish */<br>
int newBuffer);/* Treating new buffer. */<br>
/* Normally set to 1 */<br>
<br>
I have tried to do what I considered normal conversion substituting Longs for the Int and String for the Char declaration.<br>
My declaration looks like this;<br>
<br>
Private Declare Sub JumBloB Lib "jumblo.dll" Alias "_JumBloB" (ByVal Key As String, ByRef inp As String, ByVal lenInput As Integer, ByRef output As String, ByVal encrypting As Integer, ByVal procFlag As Integer, ByVal newBuffer As Integer)<br>
<br>
I have tried many variations including changing ByVals to ByRefs but am still getting a 'Bad DLL calling convention' error.<br>
<br>
Any help with this problem would be much appreciated.<br>
<br>
Chris Benton
<br>
void Jumblo (char key[], /* Key for encryption / decryption*/<br>
char *input, /* Pointer to input buffer */<br>
int lenInput, /* Length of input buffer in bytes*/<br>
char *output, /* Pointer to output buffer */<br>
int encrypting,/* Encrypting (#0 yes) */<br>
int procFlag, /* Processing flag */<br>
/* 1 Blowfish only */<br>
/* 2 Jumble only */<br>
/* Otherwise Jumble and Blowfish */<br>
int newBuffer);/* Treating new buffer. */<br>
/* Normally set to 1 */<br>
<br>
I have tried to do what I considered normal conversion substituting Longs for the Int and String for the Char declaration.<br>
My declaration looks like this;<br>
<br>
Private Declare Sub JumBloB Lib "jumblo.dll" Alias "_JumBloB" (ByVal Key As String, ByRef inp As String, ByVal lenInput As Integer, ByRef output As String, ByVal encrypting As Integer, ByVal procFlag As Integer, ByVal newBuffer As Integer)<br>
<br>
I have tried many variations including changing ByVals to ByRefs but am still getting a 'Bad DLL calling convention' error.<br>
<br>
Any help with this problem would be much appreciated.<br>
<br>
Chris Benton