You can do this by following steps: You can type simpely in header #pragma comment(lib, "wininet.lib") --------OR--------- In the your Project in VC++ 6.0 Go to Project -> Settings -> Links In the Object/Library Modules type: Wininet.lib It will definately work. Divesh K. Jain
Are you going to use a NOTEPAD to use this code? Thanks
ReplyI tried to use your code in order to read the content of a dynamic web page (written in PHP), which always has a different content. I used your Clear Histoy code and it works, but this function doesn't work... I get the following erros: --------------------Configuration: HS_VC - Win32 Debug-------------------- Compiling... HS_VCDlg.cpp Linking... HS_VCDlg.obj : error LNK2001: unresolved external symbol __imp__FindCloseUrlCache@4 HS_VCDlg.obj : error LNK2001: unresolved external symbol __imp__DeleteUrlCacheEntry@4 HS_VCDlg.obj : error LNK2001: unresolved external symbol __imp__FindNextUrlCacheEntryA@12 HS_VCDlg.obj : error LNK2001: unresolved external symbol __imp__FindFirstUrlCacheEntryA@12 Debug/HS_VC.exe : fatal error LNK1120: 4 unresolved externals Error executing link.exe. HS_VC.exe - 5 error(s), 0 warning(s) ---------------------------------------- I'm using IE 6.0 ... under Windows XP with VC++ 6.0. This code is only for IE5??? Why it doesn't work for me ??? It's really strange...
Look at my Topic Solution To Delete Temporary Internet Files in IE 6
ReplyI'm also using IE 6.0. it not working for me. Please provide the solution for IE 6.0.
ReplyOriginally posted by: sami
i'm doing project
how to delete cookie and temporary internet files using java
send me mail ..
Originally posted by: Brent
I am making a programme that is expected to be able to fetch the pictures files in the Internet Temporary Files folder, such as .jpg and .gif etc. My thoughts is to use winInet API to recognise each cacheEntry's extension, if it is .jpg or .gif then do the further manipulation.
The CacheEntry variable is definded as:
In a loop, when each item is fetched by FindNextUrlCacheEntry , and then I wish to use lpCacheEntry -> lpszFileExtension to find out the extension of the cached entry. The problem is lpCacheEntry -> lpszFileExtension seems cannot contain some extention like "jpg" or "gif", (but I found no prolem with "htm" or "css" etc.)so I cannot use something like:
the date type of lpszFileExtension is LPTSTR.
Does anyone can help me, please. Thank you
HI, there
LPINTERNET_CACHE_ENTRY_INFO lpCacheEntry = NULL;
if (lpCacheEntry -> lpszFileExtension is "jpg") then do....
Reply
Originally posted by: Nilesh
Help...How To Recover The The Deleted URL Cache .......?
Plz Help Me.....
Originally posted by: Ray Johnson
This is exactly what I need to do. But I need to do it as part of a larger C# app. I've been trying to set up the DLLImport stuff to call the wininet dll from C#. Works for some of the simplier calls in winint - like InternetGetConnectedState.
Where I'm stumped is how to declare the functions and structures for calls to FindFirstUrlCacheEntry and such. The memory allocation and such makes this not nearly as straight forward.
Has anyone done this for C#?
Ray
this is exactly what i need to do but these things need to be do in C#. Please post the code.
ReplyOriginally posted by: milind
Greate Solution... works perfect ... thanks for code
...
Originally posted by: 박진삼
정말 좋네요
임시파일들이 모두 지워졌습니다..
그리고 아쉬운 점이 있다면 임의의 파일만 지울수 있었으면
하는 소망이 있네요...^^
Bye...
ReplyOriginally posted by: SA
I have included the following at the start of the file:
Here is the command I use to create the dll:
Can someone tell me what am I doing wrong?
Thanks
Hello All,
I am trying to create a DLL from this clear temp files program using Visual Studio .NET and I get a lot of errors like:
<error>
error C2061: syntax error : identifier 'HINTERNET'
error C2059: syntax error : ';'
error C2061: syntax error : identifier 'DWORD'
.....
more than 100 errors.
</error>
<code>
#pragma comment(lib, "WinInet.lib")
</code>
<code>
cl -I -LD ClearTempFile.c -Fecookie.dll
</code>
Originally posted by: adlubadlu
suggest me how to find ip address of user connected to internet using visual basic 6
Reply