HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Software / Tools > Programming, Coding, (Web)Design


Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people.

Reply
 
Thread Tools
Old Mar 8, 2006, 12:16 AM   #1
HardwareHeaven Junior Member
 
Join Date: Jun 2003
Posts: 34
Rep Power: 0
kimi40 is on a distinguished road

How do you convert this function (C++) to vb6

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.
kimi40 is offline   Reply With Quote


Old Mar 8, 2006, 12:46 PM   #2
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0
UberLord will become famous soon enough

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
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote
Old Mar 9, 2006, 01:01 PM Threadstarter Thread Starter   #3
HardwareHeaven Junior Member
 
Join Date: Jun 2003
Posts: 34
Rep Power: 0
kimi40 is on a distinguished road

Ok Thanks.

But it turns out that I`m missing the one of the 'ByVal' thing. HEHEHE

Thank You for your reply.
kimi40 is offline   Reply With Quote
Reply

Thread Tools