call function HX_DecodeURL in Visual Basic

All other runtime-related questions

Moderators: Targeted, ABCStore

call function HX_DecodeURL in Visual Basic

by talentmak1 on Tue Apr 01, 2008 2:39 pm

Hi

can I call the transfer.dll function HX_DecodeURL in VB


Private Declare Function HX_DecodeURL Lib "transfer.dll" (a As String) As String
abc = HX_DecodeURL(strBuff$)

the return value is empty ? why
how can I get the Decode Value , and strBuff$ is input what format ..

please give me some VB code,

thankyou verymuch
thankyou verymuch
thankyou verymuch
talentmak1
 
Posts: 1
Joined: Tue Apr 01, 2008 2:28 pm

by Targeted on Sun Apr 06, 2008 5:06 am

May I ask what is your purpose in calling transfer.dll manually ? This DLL is a plugin for HTTHost and is provided with source code in case you want to customize the tunneled traffic encoding. I can't imagine why would you want to include transfer.dll in application of your own.

In any case, if everything else is correct, the culprit may be the VB String you are trying to pass. Passing Strings to and from DLL requires that DLL plays by the VB (COM really) rules, which is not the case with transfer.dll.

See this for example:
http://www.flipcode.com/archives/Interf ... nd_C.shtml
Targeted
Site Admin
 
Posts: 265
Joined: Mon Jan 12, 2004 7:00 am


Return to HTTHost general questions

Who is online

Users browsing this forum: Alexa [Bot] and 0 guests