Questions tagged [urlmon]

38 questions
1
vote
2 answers

Not able to use char* with URLDownloadToFile

#include "stdafx.h" #include #include #include #include #include #include #pragma comment(lib, "UrlMon.lib") using namespace std; int main() { char* appdata = getenv("APPDATA");…
user2699298
  • 1,446
  • 3
  • 17
  • 33
1
vote
0 answers

Delphi XE2 winapi.urlmon.CoInternetSetFeatureEnabled not found?

Possible Duplicate: CoInternetIsFeatureEnabled in Delphi2010 I am trying to disable the annoying click on navigate sound in twebbrowser control but i can't seem to see the winapi.urlmon. CoInternetSetFeatureEnabled anywhere?
ckglobalroaming
  • 267
  • 3
  • 10
1
vote
1 answer

How can the Accept-Encoding header be changed in IE with Url Monikers or other method?

I'm developing a browser plugin and server component system that streams content with a custom encoding type. Now I would like to be able to detect on the server side whether the client can handle the special encoding, and would like to keep it…
Gerald
  • 23,011
  • 10
  • 73
  • 102
0
votes
3 answers

How to do "Public Declare Ansi Function" in Visual Basic 6.0?

I'm trying to convert this VB.NET / C# declaration into a Visual Basic 6.0 one, having trouble (included is the C# version, converting to VB.NET not a problem): [DllImport("urlmon.dll", CharSet = CharSet.Ansi)] private static extern int…
Erx_VB.NExT.Coder
  • 4,838
  • 10
  • 56
  • 92
0
votes
0 answers

Download a sharepoint file using urlmon.DLL download file

I’m trying to download files using sharepoint link(path link) using urlmon.DLL in C#. It’s downloading full file sometimes and sometimes it’s creating corrupted file. Any solutions to resolve this? I tried in vscode c#, it’s definitely downloading…
Suzie
  • 1
  • 2
0
votes
0 answers

Urlmon header in visual studio code?

so im trying to download a file from a url link using URLDownloadToFile, and that needs the urlmon when i include urlmon.h and the urlmon.lib it cant find the headers. I am using visual studio code, anyone know how could i get the header and the…
stephan
  • 9
  • 3
0
votes
0 answers

EXCEL VBA (URLDownloadToFile) Not working Due to Site not allowing IE11

I was wondering if anyone had an idea about how to get URLtoDownloadfile to work but get it to use Microsoft Edge as opposed to IE11. The websites trying to pull PDF's from now doesn't support IE11 so it just takes you to an error page. Plus I…
S123C22
  • 11
  • 1
0
votes
1 answer

Excel VBA URLDownloadToFile Does Not Retrieve Full File (Sharepoint API)

I am trying to link Sharepoint 365 into an Excel Workbook. Previously, I was using wshell to mount the Sharepoint drive to my computer and access everything locally. Sharepoint 365 doesn't allow you to do that, so I am using the API. Here are my…
Andrew
  • 43
  • 1
  • 6
0
votes
1 answer

syntax error: 'constant' for a windows sdk file

I'm getting this weird error when compiling a project: . But urlmon.h is a windows sdk, why is it erroring? when I click it, it brings me here: which is very odd Path of urlmon.h: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include Urlmon…
0
votes
0 answers

FindMimeFromData function giving incorrect result in some machine

I have a VB.net code to check mime type of a file and cross check the mime file type with it's extension to validate the file. It is working fine on many machines but not working on some. I have used urlmon.dll's function FindMimeFromData. 1)…
Wasif
  • 13
  • 3
0
votes
1 answer

Webquery is persisting/caching http auth failures albeit URL changes

I do have a weird issue here, looking for someone with an elegant solution. I use something like With destCell.Parent.QueryTables.Add(Connection:="TEXT;" & exportUrl, Destination:=destCell) 'all these have sane defaults, yes, but if the…
0
votes
1 answer

Using urlmon API Function to download data from Quandl.com to access database, using VBA

Overview I am using www.quandl.com free financial data to attempt to predict Asset price movements Approach I have built a function to download the data using the quandl API. I am declaring a windows API function located in urlmon.dll system 32…
ZacAttack
  • 1,035
  • 2
  • 12
  • 29
0
votes
1 answer

Download to current directory

I want to download the file to current directory instead of "c://". How would that be done? My code: using namespace std; #pragma comment(lib, "urlmon.lib") int main() { cout << "downloading update"; HRESULT hr = URLDownloadToFile(NULL,…
John Doe
  • 41
  • 5
0
votes
0 answers

URLDownloadToFile issues

Okay, so I have been trying to do some simple stuff like downloading and transferring files in Visual C++, and I had been using the URLDownloadToFile() function. The code compiled, and it didn't give any errors, however it would not download…
0
votes
0 answers

urldownloadtofile only prefetch

I am making a program that downloads files to a windows. To do so i used urlmon and the urldownload to file function. Whenever i download a file with the function in question in my windows i only get a prefetch file, but i can't find the file on my…
p4p1
  • 31
  • 5