• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > Software / Tools > Programming, Coding, (Web)Design

Notices

Reply
 
LinkBack Thread Tools
Old Mar 7, 2006, 07:16 PM   #1
DriverHeaven Junior Member
 
Join Date: Jun 2003
Posts: 33
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, 07:46 AM   #2
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,256
UberLord is on a distinguished road

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
UberLord is offline   Reply With Quote
Old Mar 9, 2006, 08:01 AM   #3
DriverHeaven Junior Member
 
Join Date: Jun 2003
Posts: 33
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
 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 05:12 AM. Copyright ©2008 HeavenMedia.net