View previous topic :: View next topic |
Author |
Message |
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 8:39 pm Post subject: |
|
|
But you get the occasional customer who complains about some strange
error, and when you troubleshoot it you find it's due to Windows 95. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 8:42 pm Post subject: |
|
|
Skit3000 wrote: | You just said nobody is using Windows 95 anymore... |
OK You win.
There's people out there who use Win 95, I'm sure, but hardly any. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 8:48 pm Post subject: |
|
|
This code doesn't seem to work for the IsValidURL function of that library.
Code: | #should show an invalid url
%U = sfdsf
loadlib urlmon.dll
%A = @lib(urlmon,IsValidURL,NIL:,INT:,@ADDR("%U"),INT:0)
freelib urlmon.dll
info %A
# HRESULT IsValidURL( LPBC pBC,
# LPCWSTR szURL,
# DWORD dwReserved
# ); |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 9:13 pm Post subject: |
|
|
I think I found a bit of a drawback to using this api to get a file from
online. It seems to be grabbing it from cache and not directing from
the site being called. That is, at least with .php files. What I'm doing,
is grabbing pages from the forums here, and I noticed that I'm not
getting the most recent page by doing this. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 11:35 pm Post subject: |
|
|
You might look at the code in the VDS HTTP Project in the Open Source
forum - you can just grab the page and get it into a variable, then save
it for processing or even do it all internally in your application without
having to download the file to disk first. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 11:39 pm Post subject: |
|
|
Thanks FreezingFire. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Feb 06, 2004 3:25 pm Post subject: |
|
|
Garrett wrote: | It seems to be grabbing it from cache and not directing from the site being called. That is, at least with .php files. |
In the code, I used the "$10" number to let the function know it should not use the cache file, but I guess something is wrong with it then.. _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Feb 06, 2004 7:03 pm Post subject: |
|
|
Not sure the code can do anything about it. I had to go into my internet
settings and set it to check for new version every visit. I was set to
Automatic. Now the api gets the new version of the page every time. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Mar 11, 2004 2:55 pm Post subject: |
|
|
It works in Win95 - with VDSug.dll anyway.
http://forum.vdsworld.com/viewtopic.php?p=19021#19021
It doesn't download php files for me - I assume because they
are created "on the fly" as you log on. It seems to works fine
for existing files though.
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 11, 2004 5:23 pm Post subject: |
|
|
Mac, what does it look like when you download PHP files? Does it just not
work?
I think it should not have a problem since all output from the server is
HTML, there's no PHP code sent from the server.
Just wondering. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Mar 11, 2004 11:02 pm Post subject: |
|
|
It tries to dload a php file (accesses the internet anyway)
just doesn't retrieve it. No errors, just no file.
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Thu Mar 11, 2004 11:30 pm Post subject: |
|
|
That's strange because php, cgi and asp scripts simply are outputting html back to the browser window. These scripts are parsed and interpreted by the server before any output is sent back to browser.
I imagine the urlmon is not sending required information to the server to tell it what sort of client it is. |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Mar 11, 2004 11:41 pm Post subject: |
|
|
Could be PK - here's the info on the params. We are using null
in the first one, but maybe this would give the server more info
(if anyone knows what to put in it?).
Quote: |
Parameters
pCaller
Pointer to the controlling IUnknown interface of the calling Microsoft® ActiveX® component (if the caller is an ActiveX component). If the calling application is not an ActiveX component, this value can be set to NULL. Otherwise, the caller is a Component Object Model (COM) object that is contained in another component (such as an ActiveX control within the context of an HTML page). This parameter represents the outermost IUnknown of the calling component. The function attempts the download within the context of the ActiveX client framework and allows the caller's container to receive callbacks on the progress of the download.
szURL
Pointer to a string value containing the URL to be downloaded. Cannot be set to NULL.
szFileName
Pointer to a string value containing the name of the file to create for bits that come from the download.
dwReserved
Reserved. Must be set to 0.
lpfnCB
Pointer to the caller's IBindStatusCallback interface. URLDownloadToFile calls this interface's IBindStatusCallback::OnProgress method on a connection activity, including the arrival of data. IBindStatusCallback::OnDataAvailable is never called. Implementing IBindStatusCallback::OnProgress allows a caller to implement a user interface or other progress monitoring functionality. It also allows the download operation to be canceled by returning E_ABORT from the IBindStatusCallback::OnProgress call. This can be set to NULL.
Return Value is one of the following values:
E_OUTOFMEMORY The buffer length is invalid or there was insufficient memory to complete the operation.
S_OK The operation succeeded.
|
BTW, in Skit's example - I think he put the $10 in the reserved param
that should be zero.
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
|