Search:

Type: Posts; User: Herve_be

Page 1 of 6 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    2,106

    Re: Font used by MsgBox

    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....
  2. Replies
    10
    Views
    2,106

    Re: Font used by MsgBox

    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.
  3. Replies
    10
    Views
    2,106

    Re: Font used by MsgBox

    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 ?
  4. Replies
    10
    Views
    2,106

    Re: Font used by MsgBox

    Thanks,
    Can you tell me how you find this informations ?
  5. Replies
    10
    Views
    2,106

    [RESOLVED] Font used by MsgBox

    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...
  6. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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",...
  7. Replies
    6
    Views
    1,238

    Re: Downloading file via HTTP

    LGTM https://www.vbforums.com/images/ieimages/2021/03/4.gif
  8. Replies
    6
    Views
    1,238

    Re: Downloading file via HTTP

    http, for instance
    URLDownloadToFile(0, "https://www.leforumrecifal.com/images/Banniere700.jpg", LocalFilename, 0, 0)
  9. Replies
    6
    Views
    1,238

    Re: Downloading file via HTTP

    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...
  10. Replies
    6
    Views
    1,238

    Downloading file via HTTP

    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...
  11. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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 ?
  12. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  13. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  14. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  15. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  16. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    Do you mean

    With CreateObject("Microsoft.XMLHTTP")
    .Open "POST", "https://www.rudyv.be/Upload.php?id=" & Dst, bAsync
    .setRequestHeader "Content-Type", "multipart/form-data;...
  17. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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";
    }
  18. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  19. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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,...
  20. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  21. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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",...
  22. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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....
  23. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  24. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  25. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    @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...
  26. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  27. Replies
    40
    Views
    6,554

    Re: Inet stops responding with Firewall

    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...
  28. Replies
    40
    Views
    6,554

    Inet stops responding with Firewall

    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...
  29. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    Sorry, I am French speaking, I have trouble understanding your sentence.
  30. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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...
  31. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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...
  32. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    Good idea.
  33. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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...
  34. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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...
  35. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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
    ......
  36. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    I understand but doesn't this clear the error ?

    17490 On Error GoTo 0
  37. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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)...
  38. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    What do you mean by "clearing" ?
  39. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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...
  40. Replies
    30
    Views
    4,454

    Re: Error 76 Path not found : which path ?

    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...
Results 1 to 40 of 203
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width