Help Please? Can't figure this one out.
- From: "Wiley" <wiley@xxxxxxxxxxxxx>
- Date: Mon, 27 Jun 2005 12:10:44 -0600
Hi to all. I have the following code in a VB app:
**** CODE SNIPETT START
Private Sub PostFile(strServer As String, strLocalFile As String, strURL As
String, Optional strUser As String, Optional strPass As String)
Dim hSession, hConnect, hRequest, hOpenUrl As Long
MORE CODE HERE that is not relevant....
If CBool(hRequest) Then
blnRequestEXok = UseHttpSendReqEx(hRequest, strLocalFile) ERROR HERE, vb
hilights hRequest as the offending dude!!!
End If
Call InternetCloseHandle(hRequest)
Call InternetCloseHandle(hConnect)
Call InternetCloseHandle(hSession)
End Sub
Private Function UseHttpSendReqEx(hRequest As Long, strUpFile As String) As
Boolean
**** CODE SNIPPET ENDS
When I try to run the app, I get the following:
Compile Error!
ByRef Argument Type Mismatch
VB indicates the error is in the line labled ERROR HERE above.
The Parameter list for UseHttpSendReqEx clearly has hRequest declared as
LONG, while strUpFile is a string (so is strLocalFile).
VB Hilights hRequest in the calling routine (line labelled ERROR HERE).
What am I not seeing here?
Thanks to all.
Wiley.
.
- Follow-Ups:
- Re: Help Please? Can't figure this one out.
- From: Wiley
- Re: [MULTIPOST] Help Please? Can't figure this one out.
- From: Ken Halter
- Re: Help Please? Can't figure this one out.
- From: boaz
- Re: Help Please? Can't figure this one out.
- Prev by Date: Re: Estimate the Values to Put into the Progress Bar
- Next by Date: Re: Help Please? Can't figure this one out.
- Previous by thread: Estimate the Values to Put into the Progress Bar
- Next by thread: Re: Help Please? Can't figure this one out.
- Index(es):
Relevant Pages
|