Hi guys, i`m stuck here. I`m using a DLL developed from VC++ to be use with VB6. This is a function that i`m stuck. It crashed when i call the function VC++ (Protocol.dll) Protocol_API READERERROR WINAPI SelApp(WORD Size, LPBYTE AID, LPBYTE Response,uint16 slot); VB6 Declare Function SelApp Lib "Protocol.dll" Alias "_SelApp@16" (ByVal Size As Integer, ByVal AID As String, ByVal Response As String, uint16 As Long) As Long Please help me Thanks.
Try this Declare Function SelApp Lib "Protocol.dll" Alias "_SelApp@16" (ByRef Size As Long, ByRef AID As Any, ByRef Response As Any, ByRef uint16 As Long) As Long
Ok Thanks. But it turns out that I`m missing the one of the 'ByVal' thing. HEHEHE Thank You for your reply.