Search:
Type: Posts; User: Herve_be
Search:
Search took 0.04 seconds.
-
Thank you, I get a size of 8,25
This is the message with the standard MsgBox on the left and with my MsgBox on the right with font name and size as you explained.
The goal is to use custom buttons....
-
Yes I do, sorry I was updating my previous msg while you were writing.
So I get the font name using the API but I would also like to get the size.
-
Thanks a lot, I can get the actual font name and put it in My msg box text, it works fine.
Do you know how I can get the size ?
-
Thanks,
Can you tell me how you find this informations ?
-
Hello,
For simple messages I use the standard MsgBox from VB6.
For the others I've created my own MsgBox using a form, I would like to use the same font as the standard MsgBox.
Which font does it...
-
Hi,
Upload file with http/php works fine but I have had one error I don't understand.
260 With CreateObject("Microsoft.XMLHTTP")
270 .Open "POST",...
-
LGTM https://www.vbforums.com/images/ieimages/2021/03/4.gif
-
http, for instance
URLDownloadToFile(0, "https://www.leforumrecifal.com/images/Banniere700.jpg", LocalFilename, 0, 0)
-
Good morning,
I had problems uploading files to a remote Internet server with FTP; you taught me how to upload with http/php, thanks a lot.
I also download files from the same server with...
-
Good evening,
In VB6 I was uploading files to my server using ftp.
I learned here that it was easyer and faster to upload via http and it works fine.
I'm also dowloading files from my server...
-
Nobody knows ?
In theory Visual Basic errors are in the range 0–65535 : can I say that ouside that range it is not a VB error ?
Particularly hexa 800C0005 ?
-
I said DLL error because when it occurs Err.Source contains msxml3.dll
I would like to make the difference between a coding error like division by zero
and an error because the user has forgotten...
-
Of course the error was caught by on error goto
I use this to catch VB6 error, for instance division by zero, in which case the program stops
this is not a VB6 error, this is a DLL error : how can...
-
Hi,
I'm trying to make it work : it's really faster than FTP !
I've tried to disconnect the Internet cable to see what happens.
On .send VB6 raises the error 0x800C0005 : Le système ne trouve...
-
It's what I'm doing
Public Function UploadFile(Src As String, Dst As String) As Boolean
if it returns false the reason is in a global variable.
I still doubt whether I will use http or keep...
-
Do you mean
With CreateObject("Microsoft.XMLHTTP")
.Open "POST", "https://www.rudyv.be/Upload.php?id=" & Dst, bAsync
.setRequestHeader "Content-Type", "multipart/form-data;...
-
I still have to find a way ton inform VB6 that it succeeds or not.
How, in php, can I know that the upload is ok ?
Something like this
if (move_uploaded_file ...)
{
echo "UploadOK";
}
-
Yes I understand.
As I told you all the uploded files does not go in the same final directory on the server, so I must find a way to say to php which one he must use.
To avoid mis-usage I can code...
-
Thank you,
Meanwhile I go on testing.
I would like the file to be finally stored on different locations, so I would like to specify that location upon call.
The destination folder already exists,...
-
Well, I've tried something else.
VB6
Retxt = pvPostFile(Src, Dst, False)
Private Function pvPostFile(Src As String, Dst As String, Optional ByVal bAsync As Boolean) As String
Const...
-
Good morning wqweto,
Sorry, I still don't understand how to use your VB6 code.
I've uploaded a Upload.php script with your code, I try
Retxt = pvPostFile("https://www.rudyv.be/Upload.php",...
-
Good morning,
Thank you for trying to help me.
Searching for "php file upload" I've read this https://www.w3schools.com/php/php_file_upload.asp
I've added "file_uploads = On" to my php.ini file....
-
OK
Is it normal that SB64 is empty ?
What does the upload.php script contains ?
How do I (VB6) know that it has succeed or not, thanks to an echo from upload.php ?
For instance to send a mail...
-
I don't know, it happens very rarely, but it seems to me it's a wise precaution.
Do you mean you put the contents of the file as URL parameter ?
What if the file is a 1 MB .jpg ?
You can see how...
-
@wqweto : I'm already using XMLHTTP to start a php script on the server.
I still don't understand how I can send a file to the server using that method because php only knows files located on the...
-
The server is a remote server (one.com); my VB6 program is used by more than 5.000 users to upload files.
Trying to upload a file to that server is pecisely what I do.
Most of the time this works...
-
How do you use php tu upload a file from VB6 ?
I know how to invoke a php script from VB6, but I don't understand how I can transmit the file to upload with php;
I think that to be uploaded by php...
-
Hi,
Strange problem uploading file with Inet : most of the time it works fine but sometimes when a firewall blocks uploading the software closes .
This is my code
Private Sub Form_Load()
38630...
-
Sorry, I am French speaking, I have trouble understanding your sentence.
-
Thank you for the explanation.
So in the error handler I should do
Err.Clear ' to clear the error object
On Error GoTo -1 ' to reactivate the current error handler
On Error Resume Next ' to...
-
Good idea but it should exist because I'm working like this
17210 If fPath.FolderExists(G_AppData & "\Templates") Then fPath.DeleteFolder (G_AppData & "\Templates"), True
17220 DoEvents
17230...
-
-
OK, I'll do that.
The message is useless because the whole sub concerns the same directory : if an error occurs I try to delete the directory but never mind if an error occurs again.
Thanks a lot...
-
Thank you for trying to help.
If it arrives at the line 17480 fPath.DeleteFolder (G_AppData & "\Templates"), True
it means there was an error 58 ou 76 before
so I've tried to simulate an...
-
Well, I understand what you mean, I reformulate
Private Sub Form_Load()
14590 On Error GoTo Form_Load_Error
...
15360 If Myver <> G_TempVer Then DownloadTemplates <== Error 76
......
-
I understand but doesn't this clear the error ?
17490 On Error GoTo 0
-
This is already done in error handler : how can this let me know which is the concerned path ?
Public Sub ErrHdl(ByVal ProcMod As String)
If Err.Number < 0 Then ErrString = "0x" & Hex(Err.Number)...
-
What do you mean by "clearing" ?
-
As already said if I split the line I'm sure the error will not occur on "If Myver <> G_TempVer Then"
Myver being locally declared and G_TempVer public in a module, both as string
how could that...
-
I'm sure the error does not occur in the DownloadTemplates
because it begins with "on error goto errHandler"
and errHandler would give an error message that I don't receive.
On the other hand...
|
Click Here to Expand Forum to Full Width
|