Hi guys,
I want to use the function lies in a DLL created using
VB having a signature
EncodeThis(ByVal sIn As String,ByVal sKey As String,ByRef sOut As String,ByRef oLen as Long)
in a VC++ i m trying to call the DLL using LoadLibrary() Function and try to use the function as
// Variable Declaration........
LPCSTR data;
LPCSTR key;
LPCSTR result;
LONG len;
.............
Loading DLL
.............
Get pointer to function "EncodeThis" say ptr
................
ptr(data,key,&result,&len);
Then,........i will be getting an Error as "The value of ESP was not ptoperly saved which is the result of calling a function declared with one calling convention with function pointer declared with a different calling convention".
I know there will be some mistake in Function signature, but doesn't figure it out, so.........if anybody plz help me then i will be very thankful to him.
chirag