473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

wininet.dll FtpFindFirstFile function FTP programming using VB.Net

I am using "FtpFindFirstFile" function of wininet.dll in my application. I
had the Declare statement for this function in my code but when I executed my
applicaiton, it gave me an error saying "Unable to find the entry point for
FtpFindFirstFile in the DLL wininet.dll". Then, instead of Declare, I used
<DllImport("wininet.dll">Public Shared Function FtpFindFirstFile..... End
Function - which is a dummy implementation. Then, I got that error resolved
but I could see that the return handle of the function is set to 0 once the
FtpFindFirstFile is executed. When I did, Err.GetLastError, it gives me 997
error which is ERROR_IO_PENDING. I am not sure what could be the problem. I
checked by closing the return handle also by using
InternetCloseHandle(returnHandle) where returnHandle is the handle returned
by the FtpFindFirstFile function.

Please let me know what could be the problem. Also, if I don't use
<DllImport>, am getting the error for not able to find entry point. Is the
usage of <DllImportright? If it is right, then what else could be the
problem?

Note: I have allocated memory using Marshal.AllocHGloabal(instance of
WIN32_FIND_DATA) and I created a long pointer for it by again using
Marshal.StructuretoPtr(...). I am passing this structure only to the
FtpFindFirstFile function. I hope there is no error in this approach.
Aug 24 '06 #1
0 3276

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Midhun K Menon | last post by:
Is there anyone who could direct me to an absolute beginners course in Windows Programming using C++? Links would be more welcome than Book names, because much of the foreign books aren't locally...
2
by: Henry | last post by:
Hi guys, I want to write some global functions which can be called from different asp.net page. In Visual Basic, there is a global module which allow me to do that. In Visual Basic .net, I...
1
by: deepthy_raj | last post by:
How to write client-Server programming using Web request and web response.I want to send a request to server by giving url and my server will pick up that url and will give a response to client...
0
by: rsr | last post by:
Hi folks, Can any one of u suggest some material or ebooks for serial port programming using VC++.. RAMESH
2
by: _A_C-ker_ | last post by:
Hello geek(s), I'm in desperate need of graphics programming using C language. Does anyone have material or web-links that explain graphics programming in- detail? I would appreciate your help...
11
by: dolphin | last post by:
Hi All! I have a question that how to call a function just using a string. For example There is a .cpp file named a.cpp.There are some functions::fun1() fun2() fun3(). I have another fucntion...
0
by: Dutt | last post by:
Windows System Tray Programming using C# and VB.NET http://msdotnetsupport.blogspot.com/2008/02/cnet-application-windows-system-tray.html
0
by: ragsnayak | last post by:
Hi, I'm looking for reference material for "client server programming using C on windows environment". I'm using eclipse CDT IDE and Migwin for the development. Can anyone help me out? ...
0
by: Martha Pagka | last post by:
Hello. Me and my colleagues are trying to program an AutoCAD application using VB.NET (actually, VB 2008). We followed the below procedure closely: AutoCAD programming using VB.Net, C#.Net,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.